Skip to content

Commit 8c405b9

Browse files
committed
chore: make tests passing when running with latest Svelte 5
1 parent c27716f commit 8c405b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/loader.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ describe('loader', () => {
5050
addDependency: dependencySpy,
5151
resourcePath: fileName,
5252
version,
53-
query
53+
query,
54+
emitWarning: () => {}
5455
},
5556
fileContents,
5657
null
@@ -86,6 +87,7 @@ describe('loader', () => {
8687
if (isSvelte5Plus) {
8788
expect(err.message).to.eql(d`
8889
CompileError: block_unexpected_close: Unexpected block closing tag
90+
https://svelte.dev/e/block_unexpected_close
8991
test/fixtures/parse-error.html:1:22
9092
1: <p>Count: {count}</p>{/if}
9193
^`);
@@ -113,6 +115,7 @@ describe('loader', () => {
113115
if (isSvelte5Plus) {
114116
expect(err.message.trim().replace(/\r/g, '')).to.eql(d`
115117
CompileError: module_illegal_default_export: A component cannot have a default export
118+
https://svelte.dev/e/module_illegal_default_export
116119
test/fixtures/validation-error.html:2:1
117120
1: <script>
118121
2: export default {};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy