balena-supervisor/test/integration/.mocharc.js
Felipe Lalanne 1867b74bd7 Migrate config module tests to integration
This commit also changes the test:integration command to run integration
tests as different processes. This allows to avoid any test leaking into
each-other because of the use of singletons. This however has the side
effect of tests being slower, but that is a forcing function to refactor
the code.
2022-09-28 10:37:41 -03:00

15 lines
403 B
JavaScript

module.exports = {
bail: true, // Exit test script on first error
exit: true, // Force Mocha to exit after tests complete
recursive: true, // Look for tests in subdirectories
require: [
// Files to execute before running suites
'ts-node/register/transpile-only',
'tsconfig-paths/register',
'mocha-pod/skip-setup',
'test/lib/chai.ts',
'test/lib/mocha-hooks.ts',
],
timeout: '30000',
};