UNPKG
@codai/memorai
Version:
beta (8.0.2-cbd)
latest (8.0.2)
8.0.2
8.0.2-cbd
8.0.1-cbd
8.0.0-cbd
1.1.0
Universal Database & Storage Service for CODAI Ecosystem - CBD Backend
@codai/memorai
/
tests
/
setup.ts
13 lines
(10 loc)
•
222 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ vi }
from
'vitest'
;
// Global test setup
beforeEach
(
() =>
{ vi.
clearAllMocks
(); });
// Mock global objects if needed
Object
.
defineProperty
(
global
,
'fetch'
, {
value
: vi.
fn
(),
writable
:
true
});