shellphone.app/jest.config.js
2021-07-18 23:33:08 +08:00

16 lines
326 B
JavaScript

module.exports = {
collectCoverageFrom: [
"src/**/*.{js,jsx,ts,tsx}",
"lib/**/*.{js,jsx,ts,tsx}",
],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
},
transformIgnorePatterns: [
"/node_modules/",
"/.next/",
],
setupFilesAfterEnv: ["./jest/setup.ts"],
testEnvironment: "node",
};