Skip to content

Commit b838838

Browse files
committed
run test/bench on the original source (without build step)
1 parent e3bcdee commit b838838

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import TinyQueue from './';
2+
import TinyQueue from './index.js';
33

44
const N = 1000000;
55

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"unpkg": "tinyqueue.min.js",
99
"scripts": {
1010
"lint": "eslint index.js test.js bench.js rollup.config.js",
11-
"pretest": "npm run lint && npm run build",
12-
"test": "tape test.js",
11+
"pretest": "npm run lint",
12+
"test": "tape -r esm test.js",
1313
"bench": "node -r esm bench.js",
1414
"build": "rollup -c",
1515
"watch": "rollup -cw",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
const test = require('tape').test;
3-
const TinyQueue = require('./');
2+
import {test} from 'tape';
3+
import TinyQueue from './index.js';
44

55
const data = [];
66
for (let i = 0; i < 100; i++) {

0 commit comments

Comments
 (0)