Skip to content

Commit 8a0d92b

Browse files
committed
fix: esm test
1 parent e3dc5b8 commit 8a0d92b

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

test/cli.js renamed to test/cli.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const tap = require('tap')
1+
import tap from 'tap'
22

3-
const { cli } = require('../lib/cli.js')
3+
import { cli } from '../lib/cli.js'
44

55
tap.test('notify is enabled by default', t => {
66
const {

‎test/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('./cli')
2-
require('./log')
1+
require('./cli.mjs')
2+
require('./log.mjs')
33
require('./run')
44
require('./spawn')

test/log.js renamed to test/log.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const tap = require('tap')
1+
import tap from 'tap'
22

3-
const { defaultConfig } = require('../lib/cfg.cjs')
4-
const logFactory = require('../lib/log').default
3+
import { defaultConfig } from '../lib/cfg.cjs'
4+
import { logFactory } from '../lib/log.js'
55

66
const noColorCfg = { ...defaultConfig, noColor: true }
77

0 commit comments

Comments
 (0)