Skip to content

Commit 01fcbf6

Browse files
committed
test: remove redundant carousel timer cleanup
Amp-Thread-ID: https://ampcode.com/threads/T-01a02581-5939-70ee-9867-37aed3d43d47
1 parent f7833fd commit 01fcbf6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

apps/website/src/components/blocks/FeaturedCarousel02.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @vitest-environment happy-dom
22
import userEvent from '@testing-library/user-event'
33
import { render, screen } from '@testing-library/vue'
4-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
4+
import { beforeEach, describe, expect, it, vi } from 'vitest'
55
import { nextTick } from 'vue'
66

77
import { prefersReducedMotion } from '../../composables/useReducedMotion'
@@ -83,10 +83,6 @@ describe('FeaturedCarousel02', () => {
8383
vi.useFakeTimers({ shouldAdvanceTime: false })
8484
})
8585

86-
afterEach(() => {
87-
vi.useRealTimers()
88-
})
89-
9086
it('advances after DEFAULT_AUTOPLAY_MS, honors per-slide delays, and wraps to the first slide', async () => {
9187
render(FeaturedCarousel02, { props: { slides: makeSlides() } })
9288
await nextTick()

0 commit comments

Comments
 (0)