We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77158cd commit 7b3f558Copy full SHA for 7b3f558
packages/loader/test/index.js
@@ -15,9 +15,13 @@ const webpack = await promisify(webpackCallback)
15
16
test('@mdx-js/loader', async function (t) {
17
await t.test('should expose the public api', async function () {
18
- assert.deepEqual(Object.keys(await import('@mdx-js/loader')).sort(), [
19
- 'default'
20
- ])
+ const keys = Object.keys(await import('@mdx-js/loader'))
+ .sort()
+ // To do: when Node 23 is the lowest baseline,
21
+ // drop this.
22
+ .filter((key) => key !== 'module.exports')
23
+
24
+ assert.deepEqual(keys, ['default'])
25
})
26
27
await t.test('should work', async function () {
0 commit comments