mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-24 05:18:25 +00:00
274503feb3
The supervisor used to perform tests both for the transpiled code (after tsc) and one for the typescript code (using ts-node/register/transpile-only). There is not really a reason for this and this added complexity to the test configuration. This used to make testing harder, as the built code didn't include source maps, meaning the tests did not point to the right code. Since we want to split tests in unit and integration tests as the next test improvement, it makes sense to simplify these commands before adding more complexity. Change-type: patch
13 lines
356 B
JavaScript
13 lines
356 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',
|
|
'test/config/fixtures.ts',
|
|
],
|
|
spec: ['test/**/*.spec.ts'],
|
|
timeout: '30000',
|
|
};
|