We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5ec04e commit 69f0a8dCopy full SHA for 69f0a8d
test.js
@@ -1,8 +1,15 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {interactive} from './index.js'
4
+import * as mod from './index.js'
5
6
test('interactive', () => {
7
+ assert.deepEqual(
8
+ Object.keys(mod).sort(),
9
+ ['interactive'],
10
+ 'should expose the public api'
11
+ )
12
+
13
// @ts-expect-error runtime.
14
assert.equal(interactive(), false, 'should return `false` without node')
15
0 commit comments