12
test/setup.ts
Normal file
12
test/setup.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// Test setup for Bun test runner
|
||||
import { expect } from "bun:test";
|
||||
|
||||
// Global test setup
|
||||
// This file is loaded before any tests run due to bunfig.toml preload
|
||||
|
||||
// Mock fetch globally for tests
|
||||
global.fetch = global.fetch || (() => {
|
||||
throw new Error('fetch is not available in test environment');
|
||||
});
|
||||
|
||||
// Add any global test utilities here
|
||||
Reference in New Issue
Block a user