Skip to content

Commit 630df8a

Browse files
committed
chore: use esm format for tests
1 parent 569955d commit 630df8a

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ jobs:
2222
if: matrix.nodejs >= 14
2323
run: npm install -g c8
2424

25-
# - name: Build
26-
# run: npm run build
25+
- name: Build
26+
run: npm run build
2727

2828
- name: Test
2929
run: npm test
3030
if: matrix.nodejs < 14
3131

3232
- name: (coverage) Test
33-
# run: c8 --include=src npm test
34-
run: c8 npm test
33+
run: c8 --include=src npm test
3534
if: matrix.nodejs >= 14
3635

3736
- name: (coverage) Report

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
},
2020
"scripts": {
2121
"build": "bundt",
22-
"pretest": "npm run build",
23-
"test": "uvu test"
22+
"test": "uvu -r esm test"
2423
},
2524
"files": [
2625
"*.d.ts",
@@ -37,6 +36,7 @@
3736
],
3837
"devDependencies": {
3938
"bundt": "1.1.2",
39+
"esm": "3.2.25",
4040
"uvu": "0.5.1"
4141
}
4242
}

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { suite } = require('uvu');
2-
const assert = require('uvu/assert');
3-
const dset = require('../dist/dset');
1+
import { suite } from 'uvu';
2+
import * as assert from 'uvu/assert';
3+
import dset from '../src';
44

55
const API = suite('API');
66

0 commit comments

Comments
 (0)