Skip to content

fix: catch when value is an empty string for relations on lists, clos… #88

fix: catch when value is an empty string for relations on lists, clos…

fix: catch when value is an empty string for relations on lists, clos… #88

Triggered via push August 14, 2024 10:23
Status Failure
Total duration 45s
Artifacts

deployment.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors
tests/unit/passwords.spec.ts > Passwords > Passwords should be hashed in the database: app/lib/crypto.server.ts#L6
TypeError: The "password" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, or DataView. Received undefined ❯ key app/lib/crypto.server.ts:6:5 ❯ Module.getCryptoSuite app/lib/crypto.server.ts:6:5 ❯ Module.action app/routes/app.passwords.add.tsx:59:17 ❯ tests/unit/passwords.spec.ts:29:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
tests/unit/passwords.spec.ts > Passwords > Passwords should have permissions applied to them: app/lib/crypto.server.ts#L6
TypeError: The "password" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, or DataView. Received undefined ❯ key app/lib/crypto.server.ts:6:5 ❯ Module.getCryptoSuite app/lib/crypto.server.ts:6:5 ❯ Module.action app/routes/app.passwords.add.tsx:59:17 ❯ tests/unit/passwords.spec.ts:76:25 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
🧪Test
Process completed with exit code 1.
⬣ ESLint: app/lib/fields/relation.tsx#L200
React Hook "useQuery" is called conditionally. React Hooks must be called in the exact same order in every component render
⬣ ESLint
Process completed with exit code 1.