Skip to content

Commit

Permalink
fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed Nov 2, 2023
1 parent 38ad4ce commit 232c6da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"data-portal": "pnpm --filter data-portal",
"dev": "pnpm data-portal dev",
"lint": "pnpm -r lint",
"lint:fix": "pnpm -r lint:fix"
"lint:fix": "pnpm -r lint:fix",
"test": "pnpm -r test"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/data-portal/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'jsdom',

moduleNameMapper: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/data-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint:stylelint": "stylelint 'app/**/*.css'",
"lint:stylelint:fix": "pnpm lint:stylelint --fix",
"start": "NODE_ENV=production node --loader ts-node/esm server.ts",
"test": "jest",
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
"type-check": "tsc -p tsconfig.json --noEmit"
},
"//": "note: SDS 18.1.2 has bug in Button component",
Expand Down

0 comments on commit 232c6da

Please sign in to comment.