Skip to content

Commit

Permalink
fix(tests): added mocha to repo (needs more improvement)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Aftab committed Apr 8, 2021
1 parent 88f766c commit e2ce211
Show file tree
Hide file tree
Showing 4 changed files with 474 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Program",
"program": "${workspaceFolder}/index.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"args": [
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/test"
],
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
// {
// "type": "node",
// "request": "launch",
// "name": "Mocha Tests",
// "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
// "args": [
// "--require",
// "esm",
// "--require",
// "${workspaceFolder}/your-test-folder/your-setup.js",
// "--reporter",
// "dot",
// "--slow",
// "5000",
// "--colors",
// "${workspaceFolder}/your-test-folder/**/*.spec.js",

// ],
// "internalConsoleOptions": "openOnSessionStart",
// "skipFiles": [
// "<node_internals>/**"
// ]
// },

// {
// "type": "node",
// "request": "launch",
// "name": "Launch Program",
// "skipFiles": [
// "<node_internals>/**"
// ],
// "program": "${workspaceFolder}/src/yourNodeIndex.js"
// }
]
}
Loading

0 comments on commit e2ce211

Please sign in to comment.