Skip to content

Commit

Permalink
Fixes client tests
Browse files Browse the repository at this point in the history
The issue was the imported TypeScript file, which is now ignored by Jest.
  • Loading branch information
ajmeese7 committed Oct 26, 2023
1 parent 64dcd0a commit 3473bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build": "echo \"There is no build command for server\" && exit 0",
"eslint": "eslint index.js src",
"jest": "jest --runInBand --silent false --verbose true --useStderr=true --detectOpenHandles --forceExit",
"jest": "jest --detectOpenHandles --forceExit",
"jest:debug": "jest --runInBand --silent false --verbose true --useStderr=true --detectOpenHandles --forceExit",
"coverage": "jest --coverage",
"test": "npm run eslint && npm run jest",
"prepublishOnly": "npm run test"
Expand Down
5 changes: 3 additions & 2 deletions frontend/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "meeseOS client",
"scripts": {
"test": "npm run eslint && npm run stylelint && npm run jest",
"jest": "jest --runInBand --silent false --verbose true --useStderr=true",
"jest": "jest",
"jest:debug": "jest --runInBand --silent false --verbose true --useStderr=true",
"coverage": "jest --coverage",
"eslint": "eslint index.js src/**/*.js",
"build": "webpack",
Expand Down Expand Up @@ -134,7 +135,7 @@
"moduleNameMapper": {
"^meeseOS$": "<rootDir>/__mocks__/core.js",
"^.+\\.html?$": "html-loader-jest",
"^.+\\.scss$": "<rootDir>/__mocks__/null-module.js",
"^.+\\.(scss|d.ts)$": "<rootDir>/__mocks__/null-module.js",
"^.+\\.(png|jpe?g|gif)$": "<rootDir>/__mocks__/null-module.js"
},
"coveragePathIgnorePatterns": [
Expand Down

0 comments on commit 3473bfd

Please sign in to comment.