mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 06:57:49 +00:00
1867b74bd7
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.
15 lines
403 B
JavaScript
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',
|
|
};
|