chore: fix tests & deps
This commit is contained in:
parent
e7a53a4c39
commit
cd8dc606a8
5 changed files with 18 additions and 17 deletions
14
jest.config.js
Normal file
14
jest.config.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const nextJest = require('next/jest')
|
||||
|
||||
const createJestConfig = nextJest({
|
||||
dir: './',
|
||||
})
|
||||
|
||||
const customJestConfig = {
|
||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
modulePathIgnorePatterns: ["<rootDir>/dist/"],
|
||||
testPathIgnorePatterns: ["<rootDir>/e2e"],
|
||||
}
|
||||
|
||||
module.exports = createJestConfig(customJestConfig)
|
||||
Loading…
Add table
Add a link
Reference in a new issue