[Tests] Fix tests

This commit is contained in:
Alexander Zinchuk 2021-10-22 13:49:27 +03:00
parent b874082250
commit 016bc3b83d
4 changed files with 13 additions and 1 deletions

View File

@ -73,6 +73,7 @@
"project": "./tsconfig.json"
},
"ignorePatterns": [
"webpack.config.js"
"webpack.config.js",
"jest.config.js"
]
}

View File

@ -10,4 +10,8 @@ module.exports = {
'<rootDir>/client/src/stylesheets/',
],
testEnvironment: 'jsdom',
transform: {
'\\.(jsx?|tsx?)$': 'babel-jest',
'\\.txt$': 'jest-raw-loader',
},
};

6
package-lock.json generated
View File

@ -12851,6 +12851,12 @@
"integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==",
"dev": true
},
"jest-raw-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/jest-raw-loader/-/jest-raw-loader-1.0.1.tgz",
"integrity": "sha1-zp9W1UZQ8VfEp9FtIkul1hO81iY=",
"dev": true
},
"jest-regex-util": {
"version": "27.0.6",
"resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.0.6.tgz",

View File

@ -78,6 +78,7 @@
"html-webpack-plugin": "^5.3.2",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jest-raw-loader": "^1.0.1",
"lint-staged": "^11.1.2",
"mini-css-extract-plugin": "^2.2.0",
"node-sass": "^6.0.1",