refactored to move bcrypt into infra layer #95
Annotations
10 errors
Unhandled error:
tests/unit/interface-adapters/controllers/auth/sign-in.controller.test.ts#L15
AssertionError: promise rejected "Error: Incorrect username or password" instead of resolving
❯ Assertion.__VITEST_RESOLVES__ node_modules/@vitest/expect/dist/index.js:1749:21
❯ Assertion.propertyGetter node_modules/chai/chai.js:1466:29
❯ Object.proxyGetter [as get] node_modules/chai/chai.js:1550:22
❯ tests/unit/interface-adapters/controllers/auth/sign-in.controller.test.ts:15:3
❯ node_modules/@vitest/runner/dist/index.js:146:14
❯ node_modules/@vitest/runner/dist/index.js:61:7
❯ runTest node_modules/@vitest/runner/dist/index.js:960:17
❯ processTicksAndRejections node:internal/process/task_queues:95:5
❯ runSuite node_modules/@vitest/runner/dist/index.js:1116:15
This error originated in "tests/unit/interface-adapters/controllers/auth/sign-in.controller.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "tests/unit/interface-adapters/controllers/auth/sign-in.controller.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Caused by: Caused by: Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ processTicksAndRejections node:internal/process/task_queues:95:5
❯ src/interface-adapters/controllers/auth/sign-in.controller.ts:287:37
❯ src/interface-adapters/controllers/auth/sign-in.controller.ts:267:12
|
tests/unit/application/use-cases/auth/sign-in.use-case.test.ts > returns session and cookie:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/auth/sign-in.use-case.test.ts:11:18
|
tests/unit/application/use-cases/auth/sign-out.use-case.test.ts > returns blank cookie:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/auth/sign-out.use-case.test.ts:12:23
|
tests/unit/application/use-cases/todos/create-todo.use-case.test.ts > creates todo:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/create-todo.use-case.test.ts:11:23
|
tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts > deletes todo:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts:16:23
|
tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts > throws when unauthorized:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts:41:35
|
tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts > throws for invalid input:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/delete-todo.use-case.test.ts:64:23
|
tests/unit/application/use-cases/todos/get-todos-for-user.use-case.test.ts > returns todos:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/get-todos-for-user.use-case.test.ts:12:23
|
tests/unit/application/use-cases/todos/toggle-todo.use-case.test.ts > toggles todo:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/toggle-todo.use-case.test.ts:15:23
|
tests/unit/application/use-cases/todos/toggle-todo.use-case.test.ts > throws when unauthorized:
src/application/use-cases/auth/sign-in.use-case.ts#L325
Error: Incorrect username or password
❯ src/application/use-cases/auth/sign-in.use-case.ts:325:15
❯ tests/unit/application/use-cases/todos/toggle-todo.use-case.test.ts:35:35
|