CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
The Payload CLI failed with ERR_REQUIRE_ASYNC_MODULE on Node 22 and 26 alike: without "type": "module" it loaded payload.config.ts as CommonJS and could not require the top-level-await ESM @payloadcms/richtext-lexical. Following the official Payload template: "type": "module", CommonJS jest files and the content schema renamed to .cjs, ESLint globs updated. Next's standalone server.js is ESM and starts; 516 unit tests, tsc, lint and build are green. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.')
|
|
})
|