chore: fix tests & deps

This commit is contained in:
Bart Stefanski 2023-10-17 00:57:14 +02:00
parent e7a53a4c39
commit cd8dc606a8
5 changed files with 18 additions and 17 deletions

14
jest.config.js Normal file
View 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)