Skip to content

Commit

Permalink
Merge pull request #100 from marcofarine/master
Browse files Browse the repository at this point in the history
Fixed direct access to node_modules to get jestDom
  • Loading branch information
ryansolid authored Oct 10, 2023
2 parents d1557f9 + fa2ef97 commit 7d0c5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
[options.ssr ? 'ssr' : 'web']: [/\.[jt]sx?$/],
},
...(isJestDomInstalled()
? { setupFiles: ['node_modules/@testing-library/jest-dom/extend-expect.js'] }
? { setupFiles: [require.resolve('@testing-library/jest-dom/extend-expect.js')] }
: {}),
deps: { registerNodeLoader: true },
...(userConfig as UserConfig & { test: Record<string, any> }).test,
Expand Down

0 comments on commit 7d0c5de

Please sign in to comment.