mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-25 09:09:35 +01:00
18 lines
381 B
JavaScript
18 lines
381 B
JavaScript
const is_unit_test = process.env.UNIT_TEST;
|
|
|
|
module.exports = {
|
|
file: is_unit_test ? [] : ['test/test.js'],
|
|
require: [
|
|
'sucrase/register'
|
|
],
|
|
"node-option": [
|
|
"experimental-modules"
|
|
]
|
|
};
|
|
|
|
// 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');
|
|
}
|