From 2fba2d93a1dabb93cf34b9ddfcc0244804cdeefb Mon Sep 17 00:00:00 2001 From: Julian Lu Date: Tue, 27 Feb 2024 00:40:07 +0800 Subject: [PATCH] chore: add mocha tests launch configuration (#5609) * chore: add mocha tests launch configuration * fix: Use Prettier code style --- .vscode/launch.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0ea2e43053..ca164da542 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,24 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "args": [ + "mocha", + "--require", + "${workspaceFolder}/config/babel/register.cjs", + "${workspaceFolder}/packages/{slate,slate-history,slate-hyperscript}/test/**/*.{js,ts}", + "--grep", + "${fileBasenameNoExtension}", + "--timeout", + "999999" + ], + "internalConsoleOptions": "openOnSessionStart", + "name": "Mocha Tests", + "program": "${workspaceFolder}/.yarn/releases/yarn-4.0.2.cjs", + "request": "launch", + "skipFiles": ["/**"], + "type": "node" + }, { "type": "firefox", "request": "launch",