unit test mocha Visual Studio Code describe is not defined : <p>If i run in the console the test runs fine</p>

<pre><code>        mocha --require ts-node/register tests/**/*.spec.ts
</code></pre>

<p>Note: I installed mocha and mocha -g</p>

<p>I want to run unit test from Visual Studio Code</p>

<p>launcgh.js file</p>

<pre><code>            "version": "0.2.0",
            "configurations": [
                {
                    "type": "node",
                    "request": "launch",
                    "name": "Mocha Tests",
                    "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
                    "args": [
                        "--require", 
                        "ts-node/register",
                        "-u",
                        "tdd",
                        "--timeout",
                        "999999",
                        "--colors",
                        "${workspaceFolder}/tests/**/*.spec.ts"
                    ],
                    "internalConsoleOptions": "openOnSessionStart"
                },
</code></pre>

<p>Very simple Test file</p>

<pre><code>            import { expect } from 'chai';
            const hello = () =&gt; 'Hello world!'; 
            describe('Hello function', () =&gt; {
                it('should return hello world', () =&gt; {
                    const result = hello();
                    expect(result).to.equal('Hello world!');
                });
            });
</code></pre>

<p>but in the Visual studio Code debug console</p>

<pre><code>            /usr/local/bin/node --inspect-brk=15767 node_modules/mocha/bin/_mocha --require ts-node/register -u tdd --timeout 999999 --colors /Applications/MAMP/htdocs/ddd-board-game/backend/tests/**/*.spec.ts 
            Debugger listening on ws://127.0.0.1:15767/bdec2d9c-39a7-4fb7-8968-8cfed914ea8d
            For help, see: https://nodejs.org/en/docs/inspector
            Debugger attached.
            /Applications/MAMP/htdocs/ddd-board-game/backend/tests/dummy.spec.ts:3
            source-map-support.js:441
            describe('Hello function', () =&gt; {
            ^
            ReferenceError: describe is not defined
            source-map-support.js:444
                at Object.&lt;anonymous&gt; (/Applications/MAMP/htdocs/ddd-board-game/backend/tests/dummy.spec.ts:1:1)
                at Module._compile (internal/modules/cjs/loader.js:701:30)
                at Module.m._compile (/Applications/MAMP/htdocs/ddd-board-game/backend/node_modules/ts-node/src/index.ts:414:23)                
</code></pre>
