I would like to pass variables to a mocha test, which is not as simple as expected. Passing a variable like this:
npm run test --scope=28
is not possible, because mocha will catch the input. I also tried to use the npm minimist package and using a user prompt failed also.
Anyway my colleagues are using a mac and are able to pass an env variable by using this command
export testscope="18" && npm run test
But unfortunately this will not work in Windows. So my question is, is there a similar export command for Windows?