From a3c191f8d4c4352a954b51d7197b1916450973ef Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 24 Aug 2020 18:02:21 +0800 Subject: [PATCH] chore: use ava.config.js to split ava config for node@lts/node@10 --- ava.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ava.config.js diff --git a/ava.config.js b/ava.config.js new file mode 100644 index 00000000..411e0efa --- /dev/null +++ b/ava.config.js @@ -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