tests, scripts: cleanup tests and dev environment things #534
test.yml
on: pull_request
Unit Tests
13s
E2E Tests
16s
Annotations
11 errors, 2 warnings, and 1 notice
Unit Tests
Process completed with exit code 1.
|
redirects `/dist` to `/dist/` and returns expected html:
tests/e2e/directory.test.ts#L86
Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 301
at async Promise.all (index 0) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:86:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1310:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/dist/`:
tests/e2e/directory.test.ts#L108
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:108:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
allows HEAD `/dist` and returns no body:
tests/e2e/directory.test.ts#L115
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:115:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
redirects `/download` to `/download/`:
tests/e2e/directory.test.ts#L125
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 301
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:125:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/download/`:
tests/e2e/directory.test.ts#L132
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:132:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
allows `/docs/`:
tests/e2e/directory.test.ts#L137
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:137:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
allows `/api/`:
tests/e2e/directory.test.ts#L142
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:142:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
redirects `/metrics` to `/metrics/`:
tests/e2e/directory.test.ts#L149
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 301
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:149:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/metrics/`:
tests/e2e/directory.test.ts#L156
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:156:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 200,
operator: 'strictEqual'
}
}
|
returns 404 for unknown directory:
tests/e2e/directory.test.ts#L161
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
500 !== 404
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
500 !== 404
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:161:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.run (node:internal/test_runner/test:932:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:629:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 500,
expected: 404,
operator: 'strictEqual'
}
}
|
Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Tests
Total Tests: 21
Suites 📂: 3
Passed ✅: 0
Failed ❌: 21
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 1657.706ms
|