Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Jun 22, 2024
1 parent 18dbc4c commit b0d88f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ import fs from 'node:fs/promises'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { expectTypeOf } from 'tomer'
import { parseImports, parseImportsSync } from '../src/index.js'
import {
parseImports,
parseImportsSync,
wasmLoadPromise,
} from '../src/index.js'
import type { Import } from '../src/index.js'

const currentDirectoryPath = dirname(fileURLToPath(import.meta.url))
Expand Down Expand Up @@ -601,6 +605,7 @@ test.each([
join(currentDirectoryPath, `fixtures`, path),
`utf8`,
)
await wasmLoadPromise

const parsedImportsSync = [...parseImportsSync(code, { resolveFrom })]
const parsedImports = [...(await parseImports(code, { resolveFrom }))]
Expand Down

0 comments on commit b0d88f8

Please sign in to comment.