balena-supervisor/test/unit/.mocharc.js
Felipe Lalanne c1e6dadeb4 Create test/unit and test/integration folders
This sets up the new `test/unit` and `test/integration` folders
and starts classification of some of the test files.

Note that unit tests include, `fs-utils` and `system-info` tests.

While these tests interact with the filesystem, the implementation
of these modules is simple enough, and the tests are fast enough to
allow these tests to fall under the `unit` test category (according to
test/README)

Change-type: patch
2022-08-24 14:28:36 -04:00

14 lines
383 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',
'test/lib/chai.ts',
],
spec: ['test/unit/**/*.spec.ts'],
timeout: '30000',
};