You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//lib/utils/setup.js
const {environment} = require('./environment.js');
const {TIMEOUT_DURATION, TEST_USERS} = require('../configs/test-config.js');
const { cacheCookies } = require('./cookie-jar');
const roles = Object.keys(TEST_USERS[environment]);
// for the current environment create login session for all the test users
before(async function() {``
this.timeout(TIMEOUT_DURATION * roles.length);
console.log('warming up cookie jar for all the test users');
return cacheCookies(environment);
});
When I run mocha --exit it works fine, however when I run mocha -p --exit I get the following error
ERROR: --parallel runs test files in a non-deterministic order, and is mutually exclusive with --file
How can I have a global before in parallel mode?
Thanks!
The text was updated successfully, but these errors were encountered:
mocha version: 8.10
When I run
mocha --exit
it works fine, however when I runmocha -p --exit
I get the following errorERROR: --parallel runs test files in a non-deterministic order, and is mutually exclusive with --file
How can I have a global before in parallel mode?
Thanks!
The text was updated successfully, but these errors were encountered: