Skip to content

Commit

Permalink
wip: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 12, 2023
1 parent 1690dc3 commit cc70dd4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playground/js-sourcemap/__tests__/js-sourcemap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ if (!isBuild) {
test('js', async () => {
const res = await page.request.get(new URL('./foo.js', page.url()).href)
const js = await res.text()
expect(js).not.toContain('sourceMappingURL')
const map = extractSourcemap(js)
expect(formatSourcemapForSnapshot(map)).toMatchInlineSnapshot(`
{
"mappings": "AAAA,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;",
"sources": [
"/foo.js",
],
"version": 3,
}
`)
})

test('ts', async () => {
Expand Down

0 comments on commit cc70dd4

Please sign in to comment.