Skip to content

Commit 7b3f558

Browse files
committed
Fix tests for Node 23
1 parent 77158cd commit 7b3f558

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/loader/test/index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ const webpack = await promisify(webpackCallback)
1515

1616
test('@mdx-js/loader', async function (t) {
1717
await t.test('should expose the public api', async function () {
18-
assert.deepEqual(Object.keys(await import('@mdx-js/loader')).sort(), [
19-
'default'
20-
])
18+
const keys = Object.keys(await import('@mdx-js/loader'))
19+
.sort()
20+
// To do: when Node 23 is the lowest baseline,
21+
// drop this.
22+
.filter((key) => key !== 'module.exports')
23+
24+
assert.deepEqual(keys, ['default'])
2125
})
2226

2327
await t.test('should work', async function () {

0 commit comments

Comments
 (0)