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