build: 🔧 created debug enviroment for cypress for VSC

This commit is contained in:
Simon Priet 2021-09-05 13:24:31 +02:00
parent e3c79d66d3
commit 490c196f49
2 changed files with 21 additions and 1 deletions

19
.vscode/launch.json vendored Normal file
View File

@ -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"
]
}
]
}

View File

@ -3,7 +3,8 @@
"version": "0.0.1", "version": "0.0.1",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "nodemon index.js" "start": "nodemon index.js",
"test": "cypress open"
}, },
"devDependencies": { "devDependencies": {
"cypress": "^8.3.0", "cypress": "^8.3.0",