support esm modules
This commit is contained in:
parent
765cc0c7cf
commit
dcbdb0ccb7
11 changed files with 43 additions and 38 deletions
|
|
@ -1,14 +0,0 @@
|
|||
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