From d1cb2cb28027e7063f6648a7515920a69c0b1231 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 2 Dec 2025 13:44:13 -0800 Subject: [PATCH] fix: get tests passing on Svelte 5 again --- test/index.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/index.js b/test/index.js index 0c281f9..55ce8dc 100644 --- a/test/index.js +++ b/test/index.js @@ -100,17 +100,10 @@ test('respects `sourcemapExcludeSources` Rollup option', async () => { assert.ok(map); assert.is(map.file, 'bundle.js'); - if (isSvelte5Plus) { - // Svelte 5 has less mappings right now, maybe we can make it so that it has all three sources referenced at some point - assert.is(map.sources.length, 2); - assert.ok(map.sources.includes('../src/main.js')); - assert.ok(map.sources.includes('../src/Foo.svelte')); - } else { - assert.is(map.sources.length, 3); - assert.ok(map.sources.includes('../src/main.js')); - assert.ok(map.sources.includes('../src/Foo.svelte')); - assert.ok(map.sources.includes('../src/Bar.svelte')); - } + assert.is(map.sources.length, 3); + assert.ok(map.sources.includes('../src/main.js')); + assert.ok(map.sources.includes('../src/Foo.svelte')); + assert.ok(map.sources.includes('../src/Bar.svelte')); assert.is(map.sourcesContent, null); });