Skip to content

Commit

Permalink
test: remove Svelte 5 + HappyDOM skips after bugfix (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous authored Apr 18, 2024
1 parent d4e60f7 commit e951b9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"eslint-plugin-svelte": "2.35.1",
"eslint-plugin-vitest-globals": "1.4.0",
"expect-type": "^0.17.3",
"happy-dom": "^13.3.1",
"happy-dom": "^14.7.1",
"jsdom": "^22.1.0",
"npm-run-all": "^4.1.5",
"prettier": "3.2.4",
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { render } from '@testing-library/svelte'
import { expect, test } from 'vitest'

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

test.skipIf(IS_SVELTE_5 && IS_HAPPYDOM)('can set a context', () => {
test('can set a context', () => {
const message = 'Got it'

const { getByText } = render(Comp, {
Expand Down
3 changes: 1 addition & 2 deletions src/__tests__/mount.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { act, render, screen } from '@testing-library/svelte'
import { describe, expect, test, vi } from 'vitest'

import Mounter from './fixtures/Mounter.svelte'
import { IS_HAPPYDOM, IS_SVELTE_5 } from './utils.js'

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

describe.skipIf(IS_SVELTE_5 && IS_HAPPYDOM)('mount and destroy', () => {
describe('mount and destroy', () => {
test('component is mounted', async () => {
renderSubject()

Expand Down

0 comments on commit e951b9a

Please sign in to comment.