Skip to content

Commit e951b9a

Browse files
authored
test: remove Svelte 5 + HappyDOM skips after bugfix (#348)
1 parent d4e60f7 commit e951b9a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"eslint-plugin-svelte": "2.35.1",
9494
"eslint-plugin-vitest-globals": "1.4.0",
9595
"expect-type": "^0.17.3",
96-
"happy-dom": "^13.3.1",
96+
"happy-dom": "^14.7.1",
9797
"jsdom": "^22.1.0",
9898
"npm-run-all": "^4.1.5",
9999
"prettier": "3.2.4",

src/__tests__/context.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { render } from '@testing-library/svelte'
22
import { expect, test } from 'vitest'
33

44
import Comp from './fixtures/Context.svelte'
5-
import { IS_HAPPYDOM, IS_SVELTE_5 } from './utils.js'
65

7-
test.skipIf(IS_SVELTE_5 && IS_HAPPYDOM)('can set a context', () => {
6+
test('can set a context', () => {
87
const message = 'Got it'
98

109
const { getByText } = render(Comp, {

src/__tests__/mount.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { act, render, screen } from '@testing-library/svelte'
22
import { describe, expect, test, vi } from 'vitest'
33

44
import Mounter from './fixtures/Mounter.svelte'
5-
import { IS_HAPPYDOM, IS_SVELTE_5 } from './utils.js'
65

76
const onMounted = vi.fn()
87
const onDestroyed = vi.fn()
98
const renderSubject = () => render(Mounter, { onMounted, onDestroyed })
109

11-
describe.skipIf(IS_SVELTE_5 && IS_HAPPYDOM)('mount and destroy', () => {
10+
describe('mount and destroy', () => {
1211
test('component is mounted', async () => {
1312
renderSubject()
1413

0 commit comments

Comments
 (0)