Skip to content

Commit 5fbb8c6

Browse files
committed
wip: revert to check out latest prerelease
1 parent fa7a207 commit 5fbb8c6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/release.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
# ignore all-contributors PRs
1919
if: ${{ !contains(github.head_ref, 'all-contributors') }}
2020
name: Node ${{ matrix.node }}, Svelte ${{ matrix.svelte }}, ${{ matrix.test-runner }}
21-
runs-on: ${{ matrix.os }}
21+
runs-on: ubuntu-latest
2222
continue-on-error: ${{ matrix.experimental }}
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: ['ubuntu-latest']
2726
node: ['16', '18', '20']
2827
svelte: ['3', '4']
2928
test-runner: ['vitest:jsdom', 'vitest:happy-dom']
@@ -33,12 +32,10 @@ jobs:
3332
svelte: 'next'
3433
test-runner: 'vitest:jsdom'
3534
experimental: true
36-
os: 'macos-latest'
3735
- node: '20'
3836
svelte: 'next'
3937
test-runner: 'vitest:happy-dom'
4038
experimental: true
41-
os: 'ubuntu-latest'
4239

4340
steps:
4441
- name: ⬇️ Checkout repo

src/__tests__/rerender.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { act, render, screen, waitFor } from '@testing-library/svelte'
1+
import { act, render, screen } from '@testing-library/svelte'
22
import { VERSION as SVELTE_VERSION } from 'svelte/compiler'
33
import { describe, expect, test, vi } from 'vitest'
44

@@ -45,6 +45,6 @@ describe('rerender', () => {
4545
component.name = 'Planet'
4646
})
4747

48-
await waitFor(() => expect(element).toHaveTextContent('Hello Planet!'))
48+
expect(element).toHaveTextContent('Hello Planet!')
4949
})
5050
})

0 commit comments

Comments
 (0)