ci: add Github Actions test pipeline #6
Annotations
6 errors
|
test
Process completed with exit code 1.
|
|
src/modules/post/post.test.ts > Post API > lists public posts:
src/modules/post/post.test.ts#L77
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ src/modules/post/post.test.ts:77:34
|
|
src/modules/post/post.test.ts > Post API > allows ADMIN to create a post:
tests/helpers/auth.ts#L39
TypeError: Cannot read properties of undefined (reading 'accessToken')
❯ createUserAndLogin tests/helpers/auth.ts:39:29
❯ src/modules/post/post.test.ts:39:19
|
|
src/modules/post/post.test.ts > Post API > blocks USER from creating a post:
tests/helpers/auth.ts#L21
Error: Signup failed: 500 {"success":false,"error":{"code":"INTERNAL_SERVER_ERROR","message":"Something went wrong"}}
❯ createUserAndLogin tests/helpers/auth.ts:21:11
❯ src/modules/post/post.test.ts:25:19
|
|
src/modules/post/post.test.ts > Post API > allows AUTHOR to create a post:
tests/helpers/auth.ts#L21
Error: Signup failed: 500 {"success":false,"error":{"code":"INTERNAL_SERVER_ERROR","message":"Something went wrong"}}
❯ createUserAndLogin tests/helpers/auth.ts:21:11
❯ src/modules/post/post.test.ts:10:19
|
|
src/modules/comment/comment.test.ts > Comment API > creates a comment on a post:
tests/helpers/auth.ts#L39
TypeError: Cannot read properties of undefined (reading 'accessToken')
❯ createUserAndLogin tests/helpers/auth.ts:39:29
❯ src/modules/comment/comment.test.ts:10:19
|