diff --git a/README.md b/README.md index c14bd9df..ec39b774 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,9 @@ "type": "module", "scripts": { "test": "node --loader=esmock --test", - "test-tap": "tap --node-arg=\"--loader=esmock\"", - "test-uvu": "node --loader=esmock ./node_modules/uvu/bin.js ./spec/", - "test-ava": "ava --node-arguments=\"--loader=esmock\"", + "test-tap": "NODE_OPTIONS='--loader=esmock' tap", + "test-uvu": "NODE_OPTIONS='--loader=esmock' uvu ./spec/", + "test-ava": "NODE_OPTIONS='--loader=esmock' ava", "test-mocha": "mocha --loader=esmock" } } diff --git a/package.json b/package.json index f20dc48e..63736ac0 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "test-node": "node --no-warnings --loader=esmock --test ./spec/node/", "test-node18": "if (node -v | grep v18); then npm run test-node; fi;", "test-ava": "npx ava --node-arguments=\"--loader=esmock\" ./spec/ava/*.spec.js", - "test-uvu": "node --no-warnings --loader=esmock ./node_modules/uvu/bin.js ./spec/uvu/", + "test-uvu": "NODE_OPTIONS='--loader=esmock' uvu ./spec/uvu/", "test:default": "npm run test-node18 && npm run test-ava && npm run test-uvu", "test:windows": "npm run test-ava && npm run test-uvu", "test": "run-script-os",