From 044d894db37ebb261a09f38b3d37141db7404931 Mon Sep 17 00:00:00 2001 From: MikeVitik Date: Thu, 24 Feb 2022 11:03:45 +0300 Subject: [PATCH] Configure jest plugin to run only for Devextreme folder in workspace (#21070) --- .vscode/launch.json | 17 ++++++++++++++++- .vscode/settings.json | 5 ++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 789dea8ab064..26a46ab89d16 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -65,5 +65,20 @@ "sourceMaps": true, "cwd": "${workspaceRoot}" }, + { + "type": "node", + "name": "vscode-jest-tests", + "request": "launch", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "disableOptimisticBPs": true, + "sourceMaps": true, + "program": "${workspaceFolder}/node_modules/jest/bin/jest.js", + "cwd": "${workspaceFolder}", + "args": [ + "--runInBand", + "--watchAll=false" + ] + } ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index dc8891d543ca..b26a470b2278 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { + "jest.autoRun": { + "watch": true, + }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true } -} \ No newline at end of file +}