Skip to content

Commit

Permalink
Tests are broken in the react app
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaFirsova committed Feb 12, 2024
1 parent 8e836f1 commit 3bdc6a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
1 change: 1 addition & 0 deletions packages/app/__mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
23 changes: 9 additions & 14 deletions packages/app/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
module.exports = {
verbose: true,
transform: {
'^.+\\.jsx?$': './tools/babel-jest-wrapper.js',
"^.+\\.jsx?$": "./tools/babel-jest-wrapper.js",
},
reporters: [["jest-simple-dot-reporter", { color: true }]],
collectCoverageFrom: ["src/**/*.jsx"],
moduleDirectories: ["node_modules"],
coverageReporters: ["lcov", "text-summary"],
coverageDirectory: "coverage",
moduleNameMapper: {
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js",
},
reporters: [
['jest-simple-dot-reporter', { color: true }],
],
collectCoverageFrom: [
'src/**/*.jsx',
],
moduleDirectories: [
'node_modules',
],
coverageReporters: [
'lcov', 'text-summary',
],
coverageDirectory: 'coverage',
};
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "dist/main.js",
"license": "MIT",
"scripts": {
"ci": "run-s clean lint build",
"ci": "run-s clean lint test-cover build",
"clean": "rimraf 'build/*'",
"lint": "eslint -f unix --ext .js,.jsx src/ ",
"lint:css": "stylelint '**/*.scss'",
Expand Down

0 comments on commit 3bdc6a3

Please sign in to comment.