chore: use ava.config.js to split ava config for node@lts/node@10

This commit is contained in:
LongYinan 2020-08-24 18:02:21 +08:00
parent 494e870226
commit a3c191f8d4
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881

11
ava.config.js Normal file
View 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