Skip to content

Commit

Permalink
Fix Jest config and launch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Sep 18, 2024
1 parent 571e266 commit 5c5ef92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": ["${file}", "--config", "jest.config.js", "--no-cache"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
Expand All @@ -17,7 +17,7 @@
"type": "node",
"request": "launch",
"name": "Jest Current File (no timeout)",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": [
"${file}",
"--config",
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { constants } = require('jest-config');
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
prettierPath: null,
setupFilesAfterEnv: ['@xstate-repo/jest-utils/setup'],
setupFilesAfterEnv: ['<rootDir>/scripts/jest-utils/setup'],
transform: {
[constants.DEFAULT_JS_PATTERN]: 'babel-jest',
'^.+\\.vue$': '@vue/vue3-jest',
Expand Down

0 comments on commit 5c5ef92

Please sign in to comment.