Skip to content

Eliminate TS errors, improve passkey name consistency, and other stuff #57

Eliminate TS errors, improve passkey name consistency, and other stuff

Eliminate TS errors, improve passkey name consistency, and other stuff #57

Triggered via push October 22, 2024 01:32
Status Failure
Total duration 3m 50s
Artifacts

test.yaml

on: push
Matrix: Build / Mobile / build
Waiting for pending jobs
Build  /  ...  /  Build Next.js Site
Build / Web / Build Next.js Site
End-to-End Tests
0s
End-to-End Tests
Fit to window
Zoom out
Zoom in

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/