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 d1812c8 commit 53d2248Copy full SHA for 53d2248
jest.config.js
@@ -0,0 +1,20 @@
1
+export default {
2
+ testEnvironment: 'jsdom',
3
+ transform: {
4
+ '^.+\\.(t|j)sx?$': 'ts-jest',
5
+ },
6
+ moduleNameMapper: {
7
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8
+ '^@/(.*)$': '<rootDir>/$1',
9
10
+ setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
11
+ testPathIgnorePatterns: ['/node_modules/', '/.next/'],
12
+ preset: 'ts-jest',
13
+ globals: {
14
+ 'ts-jest': {
15
+ tsconfig: {
16
+ jsx: 'react-jsx',
17
18
19
20
+}
package.json
@@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "next lint"
+ "lint": "next lint",
+ "test": "jest --coverage"
},
"engines": {
"node": "22.x"
0 commit comments