Skip to content

Commit

Permalink
fixed direct access to node_modules folder
Browse files Browse the repository at this point in the history
 - use require.resole to access node module jestDom
  • Loading branch information
Marco Farine committed May 23, 2023
1 parent 66955a8 commit fa2ef97
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 fa2ef97

Please sign in to comment.