Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CourageScores/ClientApp/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createJsWithTsPreset } from 'ts-jest';
const presetConfig = createJsWithTsPreset({});

export default {
...presetConfig,
testEnvironment: 'jest-environment-jsdom',
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
maxWorkers: '50%',
Expand All @@ -22,5 +23,4 @@ export default {
'!src/interfaces/models/**/*.ts',
],
setupFiles: ['<rootDir>/setup.jest.js'],
...presetConfig,
} satisfies Config;
5 changes: 3 additions & 2 deletions CourageScores/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
"compile-ts": "tsc",
"build": "tsc && vite build --emptyOutDir",
"preview": "vite preview",
"test": "env TZ=Europe/London jest",
"compile-and-test": "tsc && env TZ=Europe/London jest"
"test": "env TZ=Europe/London node node_modules/jest/bin/jest.js",
"test-experimental": "env TZ=Europe/London node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js",
"compile-and-test": "tsc && env TZ=Europe/London node node_modules/jest/bin/jest.js"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion CourageScores/ClientApp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"module": "esnext",
Comment thread
laingsimon marked this conversation as resolved.
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"moduleResolution": "bundler",
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"rootDir": "./src/",
"ignoreDeprecations": "6.0", // to silence warning about moduleResolution=node10
},
"exclude": [
"node_modules", "dist"
Expand Down
Loading