Skip to content

Commit 54009bd

Browse files
authored
fix: get tests passing on Svelte 5 again (#242)
1 parent 92cfd3f commit 54009bd

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

test/index.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,10 @@ test('respects `sourcemapExcludeSources` Rollup option', async () => {
100100

101101
assert.ok(map);
102102
assert.is(map.file, 'bundle.js');
103-
if (isSvelte5Plus) {
104-
// Svelte 5 has less mappings right now, maybe we can make it so that it has all three sources referenced at some point
105-
assert.is(map.sources.length, 2);
106-
assert.ok(map.sources.includes('../src/main.js'));
107-
assert.ok(map.sources.includes('../src/Foo.svelte'));
108-
} else {
109-
assert.is(map.sources.length, 3);
110-
assert.ok(map.sources.includes('../src/main.js'));
111-
assert.ok(map.sources.includes('../src/Foo.svelte'));
112-
assert.ok(map.sources.includes('../src/Bar.svelte'));
113-
}
103+
assert.is(map.sources.length, 3);
104+
assert.ok(map.sources.includes('../src/main.js'));
105+
assert.ok(map.sources.includes('../src/Foo.svelte'));
106+
assert.ok(map.sources.includes('../src/Bar.svelte'));
114107
assert.is(map.sourcesContent, null);
115108
});
116109

0 commit comments

Comments
 (0)