Fix tests after introduction of babel step
This commit is contained in:
6
src/lib/components/tabs/tabs.test.ts
vendored
6
src/lib/components/tabs/tabs.test.ts
vendored
@@ -6,14 +6,14 @@ import { assertActiveElement, assertTabs, getByText, getTabs } from "$lib/test-u
|
||||
import { click, Keys, press, shift } from "$lib/test-utils/interactions";
|
||||
import Button from "$lib/internal/elements/Button.svelte";
|
||||
|
||||
let id = 0;
|
||||
let mockId = 0;
|
||||
jest.mock('../../hooks/use-id', () => {
|
||||
return {
|
||||
useId: jest.fn(() => ++id),
|
||||
useId: jest.fn(() => ++mockId),
|
||||
}
|
||||
})
|
||||
|
||||
beforeEach(() => id = 0)
|
||||
beforeEach(() => mockId = 0)
|
||||
beforeAll(() => {
|
||||
// jest.spyOn(window, 'requestAnimationFrame').mockImplementation(setImmediate as any)
|
||||
// jest.spyOn(window, 'cancelAnimationFrame').mockImplementation(clearImmediate as any)
|
||||
|
||||
Reference in New Issue
Block a user