From 490c196f49dd1824ab0a507d6e65af8ada0f9a6d Mon Sep 17 00:00:00 2001 From: Simon Priet Date: Sun, 5 Sep 2021 13:24:31 +0200 Subject: [PATCH] build: :wrench: created debug enviroment for cypress for VSC --- .vscode/launch.json | 19 +++++++++++++++++++ package.json | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2066ef2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. + // Pointez pour afficher la description des attributs existants. + // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Test Cypress via NPM", + "cwd": "${workspaceFolder}", + "type": "node", + "request": "launch", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run-script", + "test" + ] + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 01b774a..d98f2ff 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "0.0.1", "main": "index.js", "scripts": { - "start": "nodemon index.js" + "start": "nodemon index.js", + "test": "cypress open" }, "devDependencies": { "cypress": "^8.3.0",