-
Notifications
You must be signed in to change notification settings - Fork 34
/
jest.config.js
24 lines (24 loc) · 962 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
22
23
24
module.exports = {
collectCoverage: false,
collectCoverageFrom: [
"src/**/*.{ts,tsx,js,jsx}",
"scripts/**/*.{ts,tsx,js,jsx}",
"!src/**/*.spec.{ts,tsx,js,jsx}",
"!src/**/*.stories.tsx",
],
coverageDirectory: "<rootDir>/.coverage/",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/_mocks_/fileMock.js",
"\\.(css|sass|scss)$": "identity-obj-proxy",
"^swiper/css(/.*)?$": "<rootDir>/_mocks_/fileMock.js",
},
testEnvironment: "jest-environment-jsdom",
setupFiles: ["<rootDir>/jest.setup.ts"],
setupFilesAfterEnv: ["<rootDir>/jest.dom.setup.ts"],
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)test.[jt]s?(x)"],
transformIgnorePatterns: ["node_modules/?!(@tradetrust-tt).*/"],
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/tests/"],
testTimeout: 10000,
};