You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/.mocharc.js

15 lines
334 B

const is_unit_test = process.env.UNIT_TEST;
module.exports = {
file: is_unit_test ? [] : ['test/test.ts'],
require: [
'sucrase/register'
]
};
// add coverage options when running 'npx c8 mocha'
if (process.env.NODE_V8_COVERAGE) {
module.exports.fullTrace = true;
module.exports.require.push('source-map-support/register');
}