Skip to content

Commit a7d7097

Browse files
committed
tests updated
1 parent 21a7cad commit a7d7097

3 files changed

Lines changed: 65 additions & 31 deletions

File tree

jest.config.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ const customJestConfig = {
1414
'^@/(.*)$': '<rootDir>/src/$1',
1515
},
1616
testMatch: ['**/__tests__/**/*.test.[jt]s?(x)'],
17-
collectCoverage: true,
18-
collectCoverageFrom: [
19-
'src/**/*.{js,jsx,ts,tsx}',
20-
'!src/**/*.d.ts',
21-
'!src/**/_*.{js,jsx,ts,tsx}',
22-
'!src/**/*.stories.{js,jsx,ts,tsx}',
23-
'!**/node_modules/**',
24-
'!**/.next/**',
25-
],
17+
collectCoverage: false, // Disabled due to test-exclude incompatibility with glob 10.4.6+
18+
// Coverage can be re-enabled after migrating to Django or when test-exclude is updated
19+
// collectCoverageFrom: [
20+
// 'src/**/*.{js,jsx,ts,tsx}',
21+
// '!src/**/*.d.ts',
22+
// '!src/**/_*.{js,jsx,ts,tsx}',
23+
// '!src/**/*.stories.{js,jsx,ts,tsx}',
24+
// '!**/node_modules/**',
25+
// '!**/.next/**',
26+
// ],
2627
};
2728

2829
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async

package-lock.json

Lines changed: 54 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"jest-environment-jsdom": "^29.5.0",
4545
"postcss": "^8.5.4",
4646
"tailwindcss": "^3.4.1",
47+
"test-exclude": "^7.0.1",
4748
"ts-jest": "^29.1.0",
4849
"typescript": "^5"
4950
},

0 commit comments

Comments
 (0)