Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
5.8 KiB
5.8 KiB
RUN v3.2.4 /Users/vlad/Developer/madapes/madbase/tests/integration
stdout | functions.test.ts > Edge Functions > should invoke a function
Invoke response: {
result: 'Hello from WASM!',
error: null,
logs: [],
status: 200,
headers: {}
}
❯ functions.test.ts (8 tests | 6 failed) 75052ms
✓ Edge Functions > should deploy a function 18ms
✓ Edge Functions > should invoke a function 7ms
× Edge Functions > should deploy and invoke a Deno function 5010ms
→ Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
× Edge Functions > Unit Tests (Component Logic) > should handle missing environment variables 5003ms
→ Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
× Edge Functions > Unit Tests (Component Logic) > should validate request body 5002ms
→ Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
× Edge Functions > Integration Tests (System Interactions) > should handle CORS preflight requests 20005ms
→ Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
× Edge Functions > E2E Workflows (User Flows) > should execute invite staff workflow 20002ms
→ Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
× Edge Functions > should deploy and invoke a complex Polar Checkout-like function 20003ms
→ Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 6 ⎯⎯⎯⎯⎯⎯⎯
FAIL functions.test.ts > Edge Functions > should deploy and invoke a Deno function
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:66:3
64| });
65|
66| it('should deploy and invoke a Deno function', async () => {
| ^
67| const name = `deno-hello-${Date.now()}`;
68| // Simple Deno function that uses Deno.serve shim
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/6]⎯
FAIL functions.test.ts > Edge Functions > Unit Tests (Component Logic) > should handle missing environment variables
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:115:5
113|
114| describe('Unit Tests (Component Logic)', () => {
115| it('should handle missing environment variables', async () => {
| ^
116| const name = `env-check-${Date.now()}`;
117| const code = createMockedFunction(`
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/6]⎯
FAIL functions.test.ts > Edge Functions > Unit Tests (Component Logic) > should validate request body
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:156:5
154| });
155|
156| it('should validate request body', async () => {
| ^
157| const name = `body-check-${Date.now()}`;
158| const code = createMockedFunction(`
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/6]⎯
FAIL functions.test.ts > Edge Functions > Integration Tests (System Interactions) > should handle CORS preflight requests
Error: Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:199:5
197|
198| describe('Integration Tests (System Interactions)', () => {
199| it('should handle CORS preflight requests', async () => {
| ^
200| const name = `cors-check-${Date.now()}`;
201| const code = createMockedFunction(`
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/6]⎯
FAIL functions.test.ts > Edge Functions > E2E Workflows (User Flows) > should execute invite staff workflow
Error: Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:248:5
246|
247| describe('E2E Workflows (User Flows)', () => {
248| it('should execute invite staff workflow', async () => {
| ^
249| const name = `invite-staff-${Date.now()}`;
250| const code = createMockedFunction(`
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/6]⎯
FAIL functions.test.ts > Edge Functions > should deploy and invoke a complex Polar Checkout-like function
Error: Test timed out in 20000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ functions.test.ts:302:3
300| });
301|
302| it('should deploy and invoke a complex Polar Checkout-like function'…
| ^
303| const name = `polar-checkout-${Date.now()}`;
304| const code = createMockedFunction(`
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/6]⎯
Test Files 1 failed (1)
Tests 6 failed | 2 passed (8)
Start at 11:08:33
Duration 75.35s (transform 40ms, setup 0ms, collect 54ms, tests 75.05s, environment 0ms, prepare 52ms)