fix: catch when value is an empty string for relations on lists, clos… #88
deployment.yml
on: push
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.
|