# Pastebin aAlrjH9V In .vscode/launch.json: { "type": "node", "request": "launch", "name": "Mocha API Tests", "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", "args": [ "--timeout", "999999", "--colors", // If you want to run only on test file, put the path here: // "${workspaceFolder}/test/src/api/routes/test-search.js" ], "env": {"NODE_ENV":"test","SSR":true}, "internalConsoleOptions": "openOnSessionStart", "preLaunchTask": "build-api-with-sourcemaps" } In .vscode/tasks.json: { "label": "build-api-with-sourcemaps", "command": "${workspaceFolder}/node_modules/.bin/babel", "args": [ "src", "--ignore 'src/server','src/client'", "--source-maps", "--out-dir", "lib" ], "isBackground": false }