chore: use ava.config.js to split ava config for node@lts/node@10
This commit is contained in:
parent
494e870226
commit
a3c191f8d4
1 changed files with 11 additions and 0 deletions
11
ava.config.js
Normal file
11
ava.config.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const configuration = {
|
||||
extensions: ['ts', 'tsx'],
|
||||
files: ['test_module/__test__/**/*.spec.ts'],
|
||||
require: ['@swc-node/register'],
|
||||
}
|
||||
|
||||
if (parseInt(process.versions.napi, 10) < 4) {
|
||||
configuration.compileEnhancements = false
|
||||
}
|
||||
|
||||
export default configuration
|
Loading…
Reference in a new issue