add: tests
This commit is contained in:
15
jest.config.js
Normal file
15
jest.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
testEnvironment: "jsdom",
|
||||
setupFilesAfterEnv: ["@testing-library/jest-dom", "<rootDir>/jest.setup.js"],
|
||||
moduleNameMapper: {
|
||||
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
||||
},
|
||||
transform: {
|
||||
"^.+\\.[t|j]sx?$": "babel-jest",
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(@thi.ng)/)',
|
||||
"node_modules/(?!node-fetch|katex|react-markdown|remark-math|rehype-katex|rehype-raw)"
|
||||
],
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user