Skip to content

Commit 58154c6

Browse files
committed
test: fix test failing with latest testing-library/svlete version
1 parent 0c0f042 commit 58154c6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/webview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@tailwindcss/vite": "^4.1.15",
3939
"@testing-library/dom": "^10.4.0",
4040
"@testing-library/jest-dom": "^6.7.0",
41-
"@testing-library/svelte": "^5.2.7",
41+
"@testing-library/svelte": "^5.2.9",
4242
"@testing-library/user-event": "^14.6.1",
4343
"@tsconfig/svelte": "^5.0.5",
4444
"@types/humanize-duration": "^3.27.4",

packages/webview/src/component/objects/details/EventsTable.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ test('expect the events are displayed reactively', async () => {
8282
expect(within(rows[2]).getByText('a second message')).toBeInTheDocument();
8383

8484
// refresh the component
85+
events[0] = { ...events[0] };
86+
events[1] = { ...events[1] };
8587
events.push({
8688
count: 1,
8789
type: 'Normal',

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)