but when I try to load tests in ui I keep receiving following error:
import chai from 'chai';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:1117:16)
at Module._compile (internal/modules/cjs/loader.js:1165:27)
at Module._compile (/home/node/workspace/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Object.newLoader [as .js] (/home/node/workspace/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Module.require (internal/modules/cjs/loader.js:1090:19)
at require (internal/modules/cjs/helpers.js:75:18)
at /home/node/workspace/node_modules/mocha/lib/mocha.js:384:36
This error indicates that @babel/register was not used
I am trying to use mocha + docker container, however, it seems like @babel/register is not working original command:
I have following vscode settings.json:
and following mocha.opts:
but when I try to load tests in ui I keep receiving following error:
This error indicates that @babel/register was not used