Skip to content

Commit 23096cf

Browse files
authored
test: skip tests that use compiler output snapshots as svelte5 is still too volatile for that (#938)
1 parent b10e7b6 commit 23096cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/e2e-tests/import-queries/__tests__/import-queries.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ function snapshotFilename(name: string) {
1616
return `./__snapshots__/svelte-${svelteMajor}/${name}.txt`;
1717
}
1818

19-
describe('raw', () => {
19+
// TODO remove .skip in this file once svelte5 output is considered stable
20+
describe.skip('raw', () => {
2021
test('does not have failed requests', async () => {
2122
browserLogs.forEach((msg) => {
2223
expect(msg).not.toMatch('404');
@@ -88,7 +89,7 @@ describe('raw', () => {
8889

8990
// vitest prints a warning about obsolete snapshots during build tests, ignore it, they are used in dev tests.
9091
// always regenerate snapshots with `pnpm test:serve import-queries -u` and check the diffs if they are correct
91-
describe.runIf(isBuild)('snapshots not obsolete warning', async () => {
92+
describe.skip.runIf(isBuild)('snapshots not obsolete warning', async () => {
9293
afterAll(() => {
9394
console.log(
9495
'Ignore the obsolete snapshot warnings for ssrLoadModule snapshots from vitest during test:build, they are used in test:serve'
@@ -99,7 +100,7 @@ describe.runIf(isBuild)('snapshots not obsolete warning', async () => {
99100
});
100101
});
101102

102-
describe.runIf(!isBuild)('direct', () => {
103+
describe.skip.runIf(!isBuild)('direct', () => {
103104
test('Dummy.svelte?direct&svelte&type=style&sourcemap&lang.css', async () => {
104105
const response = await fetchFromPage(
105106
'src/Dummy.svelte?direct&svelte&type=style&sourcemap&lang.css',
@@ -127,7 +128,7 @@ describe.runIf(!isBuild)('direct', () => {
127128
});
128129
});
129130

130-
describe.runIf(!isBuild)('ssrLoadModule', () => {
131+
describe.skip.runIf(!isBuild)('ssrLoadModule', () => {
131132
let vite: ViteDevServer;
132133
let ssrLoadDummy;
133134
beforeAll(async () => {

0 commit comments

Comments
 (0)