From 5c5ef926494900313038f3bbf7b9d61a2cb6120a Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Wed, 18 Sep 2024 13:18:49 +0200 Subject: [PATCH] Fix Jest config and launch.json --- .vscode/launch.json | 4 ++-- jest.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 087b07217d..9aa8fa6e50 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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", @@ -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", diff --git a/jest.config.js b/jest.config.js index daef5f79a9..8f17310f08 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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: ['/scripts/jest-utils/setup'], transform: { [constants.DEFAULT_JS_PATTERN]: 'babel-jest', '^.+\\.vue$': '@vue/vue3-jest',