Eliminate TS errors, improve passkey name consistency, and other stuff #57
test.yaml
on: push
Code Tests
3m 40s
Matrix: Build / Mobile / build
Waiting for pending jobs
End-to-End Tests
0s
Annotations
4 errors and 1 warning
tests/configuration/default-configs-are-schema-compliant.test.ts:
src/lib/env-schema.ts#L194
ZodError: [
{
"received": "test",
"code": "invalid_enum_value",
"options": [
"production",
"testing",
"development"
],
"path": [
"NODE_ENV"
],
"message": "Invalid enum value. Expected 'production' | 'testing' | 'development', received 'test'"
}
]
❯ Object.get error [as error] node_modules/zod/lib/index.mjs:587:31
❯ ZodObject.parse node_modules/zod/lib/index.mjs:692:22
❯ src/lib/env-schema.ts:194:112
❯ src/lib/config/loader-server.ts:5:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { NODE_ENV: [ 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' ] } } }
|
tests/configuration/docker-compose.test.ts:
src/lib/env-schema.ts#L194
ZodError: [
{
"received": "test",
"code": "invalid_enum_value",
"options": [
"production",
"testing",
"development"
],
"path": [
"NODE_ENV"
],
"message": "Invalid enum value. Expected 'production' | 'testing' | 'development', received 'test'"
}
]
❯ Object.get error [as error] node_modules/zod/lib/index.mjs:587:31
❯ ZodObject.parse node_modules/zod/lib/index.mjs:692:22
❯ src/lib/env-schema.ts:194:112
❯ tests/configuration/docker-compose.test.ts:4:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { NODE_ENV: [ 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' ] } } }
|
tests/configuration/example-env.test.ts:
src/lib/env-schema.ts#L194
ZodError: [
{
"received": "test",
"code": "invalid_enum_value",
"options": [
"production",
"testing",
"development"
],
"path": [
"NODE_ENV"
],
"message": "Invalid enum value. Expected 'production' | 'testing' | 'development', received 'test'"
}
]
❯ Object.get error [as error] node_modules/zod/lib/index.mjs:587:31
❯ ZodObject.parse node_modules/zod/lib/index.mjs:692:22
❯ src/lib/env-schema.ts:194:112
❯ tests/configuration/example-env.test.ts:4:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { received: 'test', code: 'invalid_enum_value', options: [ 'production', 'testing', 'development' ], path: [ 'NODE_ENV' ], message: 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { NODE_ENV: [ 'Invalid enum value. Expected \'production\' | \'testing\' | \'development\', received \'test\'' ] } } }
|
Code Tests
Process completed with exit code 1.
|
Code Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: duskmoon314/action-load-env@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|