Skip to content

Commit b7f34b3

Browse files
committed
chore: reenable tests
1 parent a2d46a7 commit b7f34b3

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

playground/js-sourcemap/__tests__/js-sourcemap.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ if (!isBuild) {
9797
`)
9898
})
9999

100-
// TODO: skip for now https://github.com/oxc-project/oxc/issues/9055
101-
test.skip('multiline import', async () => {
100+
test('multiline import', async () => {
102101
const res = await page.request.get(
103102
new URL('./with-multiline-import.ts', page.url()).href,
104103
)

playground/worker/__tests__/iife/worker-iife.spec.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,17 @@ test('self reference url worker in dependency', async () => {
183183
).toBe('pong: main\npong: nested\n')
184184
})
185185

186-
// TODO: skip for now https://github.com/oxc-project/oxc/issues/9055
187-
test
188-
.runIf(isServe)
189-
.skip('sourcemap is correct after env is injected', async () => {
190-
const response = page.waitForResponse(
191-
/my-worker\.ts\?worker_file&type=module/,
192-
)
193-
await page.goto(viteTestUrl)
194-
const content = await (await response).text()
195-
const { mappings } = decodeSourceMapUrl(content)
196-
expect(mappings).toMatchInlineSnapshot(
197-
`";;AAAA,SAAS,OAAO,kBAAkB,8BAA8B;AAChE,OAAO,YAAY,6BAA6B;AAChD,SAAS,MAAM,WAAW,2BAA2B;AACrD,SAAS,wBAAwB,uBAAuB;AACxD,OAAO,aAAa,YAAY;AAChC,MAAM,UAAU,OAAO,KAAK;AAE5B,KAAK,YAAY,CAAC,MAAM;AACtB,KAAI,EAAE,SAAS,QAAQ;AACrB,OAAK,YAAY;GACf;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC;CACH;AACD,KAAI,EAAE,SAAS,gBAAgB;AAC7B,OAAK,YAAY;GACf,KAAK;GACL;GACA;GACA;GACA;GACA;GACA;EACD,EAAC;CACH;AACF;AACD,KAAK,YAAY;CACf;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,EAAC;AAGF,QAAQ,IAAI,eAAe"`,
198-
)
199-
})
186+
test.runIf(isServe)('sourcemap is correct after env is injected', async () => {
187+
const response = page.waitForResponse(
188+
/my-worker\.ts\?worker_file&type=module/,
189+
)
190+
await page.goto(viteTestUrl)
191+
const content = await (await response).text()
192+
const { mappings } = decodeSourceMapUrl(content)
193+
expect(mappings).toMatchInlineSnapshot(
194+
`";;AAAA,SAAS,OAAO,kBAAkB,8BAA8B;AAChE,OAAO,YAAY,6BAA6B;AAChD,SAAS,MAAM,WAAW,2BAA2B;AACrD,SAAS,wBAAwB,uBAAuB;AACxD,OAAO,aAAa,YAAY;AAChC,MAAM,UAAU,OAAO,KAAK;AAE5B,KAAK,YAAY,CAAC,MAAM;AACtB,KAAI,EAAE,SAAS,QAAQ;AACrB,OAAK,YAAY;GACf;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC;CACH;AACD,KAAI,EAAE,SAAS,gBAAgB;AAC7B,OAAK,YAAY;GACf,KAAK;GACL;GACA;GACA;GACA;GACA;GACA;EACD,EAAC;CACH;AACF;AACD,KAAK,YAAY;CACf;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,EAAC;AAGF,QAAQ,IAAI,eAAe"`,
195+
)
196+
})
200197

201198
function decodeSourceMapUrl(content: string) {
202199
return JSON.parse(

0 commit comments

Comments
 (0)