We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115bdb3 commit 796360eCopy full SHA for 796360e
1 file changed
jest.config.ts
@@ -108,13 +108,8 @@ const config: Config = {
108
/** Exclude dist from module resolution to avoid Haste naming collision with root package.json. */
109
modulePathIgnorePatterns: ['<rootDir>/dist'],
110
111
- /**
112
- * Load jest-dom matchers for React tests.
113
- *
114
- * Using the concrete file path avoids occasional package-name resolution failures during Jest's
115
- * config validation on Windows CI.
116
- */
117
- setupFilesAfterEnv: ['<rootDir>/node_modules/@testing-library/jest-dom/dist/index.js'],
+ /** Load jest-dom matchers for React tests. */
+ setupFilesAfterEnv: ['@testing-library/jest-dom'],
118
119
/** Use jsdom for React component tests; parser tests run fine in jsdom (no DOM use). */
120
testEnvironment: 'jsdom',
0 commit comments