Skip to content

Commit

Permalink
chore: skip sourcemap tests after vitejs/vite/pull/12079 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Mar 1, 2023
1 parent c8a61e3 commit aa96ae4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions playground/vue-sourcemap/__tests__/vue-sourcemap.spec.ts
Expand Up @@ -21,14 +21,16 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
throw new Error('Style not found: ' + content)
}

test('js', async () => {
// Temporal skip after https://github.com/vitejs/vite/pull/12079
test.skip('js', async () => {
const res = await page.request.get(new URL('./Js.vue', page.url()).href)
const js = await res.text()
const map = extractSourcemap(js)
expect(formatSourcemapForSnapshot(map)).toMatchSnapshot('serve-js')
})

test('ts', async () => {
// Temporal skip after https://github.com/vitejs/vite/pull/12079
test.skip('ts', async () => {
const res = await page.request.get(new URL('./Ts.vue', page.url()).href)
const js = await res.text()
const map = extractSourcemap(js)
Expand Down Expand Up @@ -91,7 +93,8 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
)
})

test('no script', async () => {
// Temporal skip after https://github.com/vitejs/vite/pull/12079
test.skip('no script', async () => {
const res = await page.request.get(
new URL('./NoScript.vue', page.url()).href,
)
Expand All @@ -100,7 +103,8 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
expect(formatSourcemapForSnapshot(map)).toMatchSnapshot('serve-no-script')
})

test('no template', async () => {
// Temporal skip after https://github.com/vitejs/vite/pull/12079
test.skip('no template', async () => {
const res = await page.request.get(
new URL('./NoTemplate.vue', page.url()).href,
)
Expand Down

0 comments on commit aa96ae4

Please sign in to comment.