Skip to content

Commit

Permalink
Replace mocha with node:test
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 10, 2024
1 parent 78abb0a commit 98cc048
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/rollup-plugin-copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"node": ">=18.0.0"
},
"scripts": {
"test:node": "mocha test/**/*.test.js --reporter dot",
"test:watch": "mocha test/**/*.test.js --watch --watch-files src,test --reporter dot"
"test": "npm run test:node",
"test:node": "node --test --test-reporter=dot test/**/*.test.js",
"test:watch": "node --test --test-reporter=dot --watch test/**/*.test.js"
},
"files": [
"*.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion packages/rollup-plugin-copy/test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const path = require('path');
const { describe, it } = require('node:test');
const path = require('node:path');

const { expect } = require('chai');
const rollup = require('rollup');

Expand Down
4 changes: 3 additions & 1 deletion packages/rollup-plugin-copy/test/listFiles.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const path = require('path');
const { describe, it } = require('node:test');
const path = require('node:path');

const { expect } = require('chai');

const { listFiles } = require('../src/listFiles.js');
Expand Down
4 changes: 3 additions & 1 deletion packages/rollup-plugin-copy/test/patternsToFiles.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const path = require('path');
const { describe, it } = require('node:test');
const path = require('node:path');

const { expect } = require('chai');

const { patternsToFiles } = require('../src/patternsToFiles.js');
Expand Down

0 comments on commit 98cc048

Please sign in to comment.