Skip to content

Commit

Permalink
test: run all builtin module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed May 12, 2024
1 parent 225095f commit 6bb7f7c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/parse-module-specifier/parse-type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,11 @@ test.prop([
expect(type).toBe(`relative`)
})

test.prop([fc.constantFrom(...builtinModules)])(
`parses builtin imports`,
moduleSpecifier => {
const type = parseType(moduleSpecifier)
test.each(builtinModules)(`parses builtin imports - %p`, moduleSpecifier => {
const type = parseType(moduleSpecifier)

expect(type).toBe(`builtin`)
},
)
expect(type).toBe(`builtin`)
})

test.prop([
fc
Expand Down

0 comments on commit 6bb7f7c

Please sign in to comment.