src: use itty-router for routing requests #224
test.yml
on: pull_request
Unit Tests
8s
E2E Tests
10s
Annotations
10 errors, 2 warnings, and 2 notices
redirects `/dist` to `/dist/` and returns expected html:
tests/e2e/directory.test.ts#L87
Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 301
at async Promise.all (index 0) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:87:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1029:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/dist/`:
tests/e2e/directory.test.ts#L109
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:109:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
allows HEAD `/dist` and returns no body:
tests/e2e/directory.test.ts#L116
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:116:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
redirects `/download` to `/download/`:
tests/e2e/directory.test.ts#L126
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 301
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:126:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/download/`:
tests/e2e/directory.test.ts#L133
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:133:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
allows `/docs/`:
tests/e2e/directory.test.ts#L138
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:138:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
allows `/api/`:
tests/e2e/directory.test.ts#L143
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:143:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
redirects `/metrics` to `/metrics/`:
tests/e2e/directory.test.ts#L150
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 301
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 301
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:150:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 301,
operator: 'strictEqual'
}
}
|
allows `/metrics/`:
tests/e2e/directory.test.ts#L157
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 200
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 200
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:157:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
returns 401 for unrecognized base paths:
tests/e2e/directory.test.ts#L162
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
404 !== 401
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
404 !== 401
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:162:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:688:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:420:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 401,
operator: 'strictEqual'
}
}
|
Unit Tests
Total Tests: 28
Suites 📂: 4
Passed ✅: 28
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 268.547ms
|
E2E Tests
Total Tests: 26
Suites 📂: 4
Passed ✅: 0
Failed ❌: 26
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 1137.232ms
|
Unit Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
E2E Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|