23 lines
528 B
JavaScript
Executable File
23 lines
528 B
JavaScript
Executable File
// Jest setup for integration tests
|
|
const { fetch, Headers, Request, Response } = require('undici')
|
|
|
|
// Polyfill fetch for Node.js environment
|
|
if (!global.fetch) {
|
|
global.fetch = fetch
|
|
global.Headers = Headers
|
|
global.Request = Request
|
|
global.Response = Response
|
|
}
|
|
|
|
// Set longer timeout for integration tests
|
|
jest.setTimeout(30000)
|
|
|
|
// Global test environment setup
|
|
beforeAll(() => {
|
|
console.log('🚀 Starting integration test suite...')
|
|
})
|
|
|
|
afterAll(() => {
|
|
console.log('✅ Integration test suite completed.')
|
|
})
|