{
    // 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": [
        {
            "type": "node",
            "request": "launch",
            "name": "Mocha Tests",
            "program": "${workspaceFolder}/node_modules/.bin/mocha",
            "env": {
                "TS_NODE_PROJECT": "./src/test/tsconfig.commonjs.json",
                "TS_NODE_TRANSPILE_ONLY": "true"
            },
            "args": [
                "--require",
                "ts-node/register",
                "--require",
                "mock-local-storage",
                "--require",
                "jsdom-global/register",
                "--allow-uncaught",
                "--colors",
                "--timeout 5000",
                // "--reporter",
                // "mocha-reporter",
                "${workspaceFolder}/src/test/*.ts"
            ],
            "internalConsoleOptions": "openOnSessionStart"
        },
        {
            "name": "Debug Mocha Tests",
            "type": "node",
            "request": "attach",
            "port": 9229,
            "protocol": "inspector",
            "timeout": 30000,
            "stopOnEntry": false
        }
    ]
}