🐛 swapping hardcoded key #474
Annotations
9 errors and 2 warnings
Run tests:
server/src/tests/routes/favorite.test.ts#L15
TypeError: generateMockUser is not a function
❯ src/tests/routes/favorite.test.ts:15:12
|
Run tests:
server/src/tests/routes/pack.test.ts#L63
TypeError: Cannot destructure property 'id' of 'pack' as it is undefined.
❯ src/tests/routes/pack.test.ts:63:15
|
Run tests:
server/src/tests/routes/password.test.ts#L17
TypeError: generateMockUser is not a function
❯ src/tests/routes/password.test.ts:17:12
|
Run tests:
server/src/tests/routes/password.test.ts#L17
TypeError: generateMockUser is not a function
❯ src/tests/routes/password.test.ts:17:12
|
Run tests:
server/src/tests/routes/password.test.ts#L17
TypeError: generateMockUser is not a function
❯ src/tests/routes/password.test.ts:17:12
|
Run tests:
server/src/tests/routes/template.test.ts#L54
TypeError: Cannot destructure property 'id' of 'template' as it is undefined.
❯ src/tests/routes/template.test.ts:54:15
|
Run tests:
server/src/drizzle/methods/User.ts#L77
TRPCError: jwtSecret is not defined
❯ User.generateAuthToken src/drizzle/methods/User.ts:77:27
❯ src/controllers/user/userSignUp.ts:42:21
❯ resolveMiddleware home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:421:30
❯ callRecursive home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:451:32
❯ callRecursive home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:451:32
❯ resolve home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:481:24
❯ src/tests/routes/user.spec.ts:13:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'INTERNAL_SERVER_ERROR' }
Caused by: Caused by: Error: jwtSecret is not defined
❯ User.generateAuthToken src/drizzle/methods/User.ts:77:27
❯ src/controllers/user/userSignUp.ts:42:21
❯ resolveMiddleware home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:421:30
❯ callRecursive home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:451:32
❯ callRecursive home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:451:32
❯ resolve home/runner/work/PackRat/PackRat/node_modules/@trpc/server/dist/index.mjs:481:24
❯ src/tests/routes/user.spec.ts:13:16
|
Run tests:
server/src/tests/routes/user.test.ts#L158
TypeError: generateMockUser is not a function
❯ src/tests/routes/user.test.ts:158:43
|
Run tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v2, actions/github-script@v6, actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2, actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Loading