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 8b64821 commit 58b61c9Copy full SHA for 58b61c9
test.js
@@ -24,6 +24,7 @@ import {mdxFromMarkdown} from 'mdast-util-mdx'
24
import {mdxjs} from 'micromark-extension-mdxjs'
25
import {visit} from 'unist-util-visit'
26
import {toEstree} from './index.js'
27
+import * as mod from './index.js'
28
29
/** @type {(value: unknown, options?: import('@babel/generator').GeneratorOptions) => {code: string}} */
30
// @ts-expect-error Types are wrong.
@@ -38,7 +39,13 @@ const passThrough = [
38
39
'mdxjsEsm'
40
]
41
-test('hast-util-to-estree', () => {
42
+test('toEstree', () => {
43
+ assert.deepEqual(
44
+ Object.keys(mod).sort(),
45
+ ['toEstree'],
46
+ 'should expose the public api'
47
+ )
48
+
49
assert.throws(
50
() => {
51
// @ts-expect-error: runtime.
0 commit comments