Skip to content

Commit be08185

Browse files
authored
chore: squelch hydration warning in test suite (#16336)
1 parent 616d29f commit be08185

File tree

1 file changed

+7
-1
lines changed
  • packages/svelte/tests/runtime-runes/samples/error-boundary-9

1 file changed

+7
-1
lines changed

packages/svelte/tests/runtime-runes/samples/error-boundary-9/_config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { test } from '../../test';
22

33
export default test({
4-
test({ assert, target, logs }) {
4+
test({ assert, target, logs, warnings, variant }) {
5+
if (variant === 'hydrate') {
6+
assert.deepEqual(warnings, [
7+
'Hydration failed because the initial UI does not match what was rendered on the server'
8+
]);
9+
}
10+
511
assert.deepEqual(logs, ['error caught']);
612
assert.htmlEqual(target.innerHTML, `<div>Error!</div><button>Retry</button>`);
713
}

0 commit comments

Comments
 (0)