Skip to content

Commit

Permalink
chore: reinstate importmap test
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Aug 23, 2022
1 parent 8cc1ec2 commit f4ccb59
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion playground/html/__tests__/html.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { beforeAll, describe, expect, test } from 'vitest'
import { editFile, getColor, isBuild, isServe, page, viteTestUrl } from '~utils'
import {
browserLogs,
editFile,
getColor,
isBuild,
isServe,
page,
viteTestUrl
} from '~utils'

function testPage(isNested: boolean) {
test('pre transform', async () => {
Expand Down Expand Up @@ -242,3 +250,9 @@ describe.runIf(isServe)('invalid', () => {
expect(content).toBeTruthy()
})
})

test('importmap', () => {
expect(browserLogs).not.toContain(
'An import map is added after module script load was triggered.'
)
})

0 comments on commit f4ccb59

Please sign in to comment.