-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.d.ts
More file actions
36 lines (34 loc) · 1.23 KB
/
global.d.ts
File metadata and controls
36 lines (34 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/// <reference types='bun-types' />
/// <reference types='node' />
export {}
declare global {
var test: typeof import('bun:test').test
var describe: typeof import('bun:test').describe
var it: typeof import('bun:test').it
var expect: typeof import('bun:test').expect
// Hooks
var beforeAll: typeof import('bun:test').beforeAll
var afterAll: typeof import('bun:test').afterAll
var beforeEach: typeof import('bun:test').beforeEach
var afterEach: typeof import('bun:test').afterEach
// Mocking
var mock: typeof import('bun:test').mock
var vi: typeof import('bun:test').vi
var jest: typeof import('bun:test').jest
var spyOn: typeof import('bun:test').spyOn
// Utils
var setSystemTime: typeof import('bun:test').setSystemTime
var setDefaultTimeout: typeof import('bun:test').setDefaultTimeout
// Types
var Test: typeof import('bun:test').Test
var Describe: typeof import('bun:test').Describe
var Expect: typeof import('bun:test').Expect
var Mock: typeof import('bun:test').Mock
var TestOptions: typeof import('bun:test').TestOptions
var Matchers: typeof import('bun:test').Matchers
// Namespace
namespace jest {
var fn: typeof import('bun:test').vi.fn
var mock: typeof import('bun:test').vi.mock
}
}