-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
jest.config.js
21 lines (21 loc) · 769 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
roots: ["<rootDir>"],
transform: {
".(ts|tsx)$": require.resolve("ts-jest/dist"),
".(js|jsx)$": require.resolve("babel-jest"),
},
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverageFrom: ["packages/**/src/**/*.{ts,tsx}"],
testMatch: ["<rootDir>/packages/**/src/**/*.(spec|test).{ts,tsx,js,jsx}"],
testURL: "http://localhost",
watchPlugins: [
require.resolve("jest-watch-typeahead/filename"),
require.resolve("jest-watch-typeahead/testname"),
],
setupFilesAfterEnv: [
"<rootDir>/setupTests.ts",
"jest-mock-console/dist/setupTestFramework.js",
],
testEnvironment: "jest-environment-jsdom-sixteen",
};