Skip to content

Commit 796360e

Browse files
committed
Try without explicit path
1 parent 115bdb3 commit 796360e

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

jest.config.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,8 @@ const config: Config = {
108108
/** Exclude dist from module resolution to avoid Haste naming collision with root package.json. */
109109
modulePathIgnorePatterns: ['<rootDir>/dist'],
110110

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'],
111+
/** Load jest-dom matchers for React tests. */
112+
setupFilesAfterEnv: ['@testing-library/jest-dom'],
118113

119114
/** Use jsdom for React component tests; parser tests run fine in jsdom (no DOM use). */
120115
testEnvironment: 'jsdom',

0 commit comments

Comments
 (0)