Skip to content

Commit

Permalink
Fixed Backend Tests Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
R1c4rdCo5t4 committed Mar 25, 2024
1 parent 1fe1a47 commit 7272796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/server/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { pathsToModuleNameMapper } = require('ts-jest');

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testEnvironment: 'jest-environment-node',
moduleNameMapper: pathsToModuleNameMapper({ '@src/*': ['./src/*'] }, { prefix: '<rootDir>/' }),
transform: {}
};
2 changes: 1 addition & 1 deletion code/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"serve": "tsc && node dist/server.js",
"start": "tsx watch -r tsconfig-paths/register src/server.ts",
"test": "jest --detectOpenHandles --config jest.config.js",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"knip": "knip",
"format": "prettier --write . && eslint . --ext .ts"
},
Expand Down

0 comments on commit 7272796

Please sign in to comment.