Refactor TS to use the same paths for build&test for loading package.json #151
Annotations
6 errors and 2 notices
Type Tests
Process completed with exit code 1.
|
Linting:
src/lib/generator.ts#L16
Unexpected string value in conditional. An explicit empty string check is required
|
Linting:
src/lib/generator.ts#L28
Unexpected trailing comma
|
Linting
Process completed with exit code 1.
|
returns 200 for authorized user:
src/tests/e2e/auth.test.ts#L49
[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/ai-warp/ai-warp/src/tests/e2e/auth.test.ts:49:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:640:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 404,
expected: 200,
operator: 'strictEqual'
}
}
|
E2E Tests
Process completed with exit code 1.
|
E2E Tests
Total Tests: 19
Suites 📂: 4
Passed ✅: 18
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 5738.663ms
|
Unit Tests
Total Tests: 16
Suites 📂: 6
Passed ✅: 16
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 1651.602ms
|