Skip to content

Commit 8b72a0d

Browse files
committed
test: restore stubs
1 parent 03f2a54 commit 8b72a0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/unit/server/api/registry/timeline/pkg.get.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, vi, beforeEach } from 'vitest'
1+
import { describe, expect, it, vi, beforeEach, afterAll } from 'vitest'
22
import { createError, type H3Event } from 'h3'
33
import type { Packument, PackumentVersion } from '#shared/types/npm-registry'
44

@@ -39,6 +39,10 @@ function makePackument(opts: {
3939

4040
const fakeEvent = {} as H3Event
4141

42+
afterAll(() => {
43+
vi.unstubAllGlobals()
44+
})
45+
4246
describe('timeline API', () => {
4347
beforeEach(() => {
4448
vi.clearAllMocks()

0 commit comments

Comments
 (0)