mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
chore: use ava.config.js to split ava config for node@lts/node@10
This commit is contained in:
parent
494e870226
commit
a3c191f8d4
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…
x
Reference in New Issue
Block a user