mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-10 21:46:27 +02:00
Initial commit
This commit is contained in:
1
jest/assetMock.ts
Executable file
1
jest/assetMock.ts
Executable file
@@ -0,0 +1 @@
|
||||
module.exports = "IMAGE_MOCK"
|
25
jest/config.js
Normal file
25
jest/config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
module.exports = {
|
||||
preset: "ts-jest",
|
||||
rootDir: "../",
|
||||
testEnvironment: "node",
|
||||
setupFilesAfterEnv: ["<rootDir>/jest/setup.ts"],
|
||||
collectCoverageFrom: [
|
||||
"src/app/**/*.tsx",
|
||||
"src/pages/**/*.tsx",
|
||||
"!src/pages/**/index.tsx",
|
||||
"src/components/**/*.tsx",
|
||||
"src/store/**/*.ts",
|
||||
"!src/store/index.ts",
|
||||
"!src/store/rootReducer.ts",
|
||||
],
|
||||
moduleNameMapper: {
|
||||
".*\\.(css|scss|sass)$": "<rootDir>/jest/styleMock.ts",
|
||||
".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||
"<rootDir>/jest/assetMock.ts",
|
||||
},
|
||||
globals: {
|
||||
__DEV__: true,
|
||||
},
|
||||
maxConcurrency: 50,
|
||||
maxWorkers: 1,
|
||||
}
|
1
jest/setup.ts
Executable file
1
jest/setup.ts
Executable file
@@ -0,0 +1 @@
|
||||
import "@testing-library/jest-dom/extend-expect"
|
4
jest/styleMock.ts
Executable file
4
jest/styleMock.ts
Executable file
@@ -0,0 +1,4 @@
|
||||
// @ts-ignore
|
||||
import idObj from "identity-obj-proxy"
|
||||
|
||||
export default idObj
|
Reference in New Issue
Block a user