diff --git a/package.json b/package.json index b8b76fc..7a053c9 100644 --- a/package.json +++ b/package.json @@ -40,13 +40,12 @@ "punycode.es6.js" ], "scripts": { - "test": "mocha tests", + "test": "node --test", "build": "node scripts/prepublish.js" }, "devDependencies": { "codecov": "^3.8.3", - "nyc": "^15.1.0", - "mocha": "^10.2.0" + "nyc": "^15.1.0" }, "jspm": { "map": { diff --git a/tests/tests.js b/test.js similarity index 99% rename from tests/tests.js rename to test.js index ced85a0..b28caab 100644 --- a/tests/tests.js +++ b/test.js @@ -1,6 +1,8 @@ 'use strict'; -const assert = require('assert'); +const assert = require('node:assert/strict') +const { describe, it } = require('node:test') + const punycode = require('../punycode.js'); const testData = {