fix: use same directory listing format as nginx #118
test.yml
on: pull_request
Unit Tests
12s
E2E Tests
12s
Annotations
2 errors and 2 notices
redirects `/dist` to `/dist/` and returns expected html:
tests/e2e/index.test.ts#L1
Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
'<!DOCTYPE html><html>\n' +
'<head><title>Index of /dist/</title></head>\n' +
'<body>\n' +
"<h1>Index of /dist/</h1><hr><pre><a href='../'>../</a>\n" +
"<a href='latest/'>latest/</a> - -\n" +
+ "<a href='/dist/index.json'>index.json</a> 2-Oct-2023 5:43 18 B\n" +
- "<a href='/dist/index.json'>index.json</a> 1-Oct-2023 22:43 18 B\n" +
'</pre><hr /></body>\n' +
'</html>'
at async Promise.all (index 0) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'<!DOCTYPE html><html>\n' +
'<head><title>Index of /dist/</title></head>\n' +
'<body>\n' +
"<h1>Index of /dist/</h1><hr><pre><a href='../'>../</a>\n" +
"<a href='latest/'>latest/</a> - -\n" +
+ "<a href='/dist/index.json'>index.json</a> 2-Oct-2023 5:43 18 B\n" +
- "<a href='/dist/index.json'>index.json</a> 1-Oct-2023 22:43 18 B\n" +
'</pre><hr /></body>\n' +
'</html>'
at TestContext.<anonymous> (/home/runner/work/release-cloudflare-worker/release-cloudflare-worker/tests/e2e/directory.test.ts:96:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:572:9)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:815:7)
at async startSubtest (node:internal/test_runner/harness:202:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: "<!DOCTYPE html><html>\n<head><title>Index of /dist/</title></head>\n<body>\n<h1>Index of /dist/</h1><hr><pre><a href='../'>../</a>\n<a href='latest/'>latest/</a> - -\n<a href='/dist/index.json'>index.json</a> 2-Oct-2023 5:43 18 B\n</pre><hr /></body>\n</html>",
expected: "<!DOCTYPE html><html>\n<head><title>Index of /dist/</title></head>\n<body>\n<h1>Index of /dist/</h1><hr><pre><a href='../'>../</a>\n<a href='latest/'>latest/</a> - -\n<a href='/dist/index.json'>index.json</a> 1-Oct-2023 22:43 18 B\n</pre><hr /></body>\n</html>",
operator: 'strictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
E2E Tests
Process completed with exit code 1.
|
E2E Tests
Total Tests: 24
Suites 📂: 3
Passed ✅: 23
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 2582.872ms
|
Unit Tests
Total Tests: 26
Suites 📂: 4
Passed ✅: 26
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 231.162ms
|