test: fix vitest.config.ts #33
push_main.yml
on: push
build
/
Build
22s
test
/
Lint
15s
test
/
Test (unit)
13s
test
/
Test (e2e)
16s
Matrix: test / Test (integration)
deploy
/
Build and Push to Dockerhub
Annotations
4 errors
src/app.module.spec.ts:
src/config/configuration.ts#L45
ZodError: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_literal",
"expected": "s3",
"path": [
"STORAGE_PROVIDER"
],
"message": "Invalid literal value, expected \"s3\""
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_BUCKET"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_ACCESS_KEY_ID"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_SECRET_ACCESS_KEY"
],
"message": "Required"
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_literal",
"expected": "local",
"path": [
"STORAGE_PROVIDER"
],
"message": "Invalid literal value, expected \"local\""
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"LOCAL_STORAGE_PATH"
],
"message": "Required"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
❯ Object.get error [as error] node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:587:31
❯ ZodEffects.parse node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:692:22
❯ Object.validate src/config/configuration.ts:45:30
❯ Function.forRoot node_modules/.pnpm/@nestjs[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@nestjs/config/dist/config.module.js:78:45
❯ src/app.module.ts:9:18
❯ src/app.module.spec.ts:3:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_union', unionErrors: [ { stack: 'ZodError: [\n {\n "code": "invalid_literal",\n "expected": "s3",\n "path": [\n "STORAGE_PROVIDER"\n ],\n "message": "Invalid literal value, expected \"s3\""\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_BUCKET"\n ],\n "message": "Required"\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_ACCESS_KEY_ID"\n ],\n "message": "Required"\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_SECRET_ACCESS_KEY"\n ],\n "message": "Required"\n }\n]\n at file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:2762:56\n at Array.map (<anonymous>)\n at ZodUnion._parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:2762:40)\n at ZodUnion._parseSync (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:678:29)\n at ZodEffects._parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:3717:47)\n at ZodEffects._parseSync (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:678:29)\n at ZodEffects.safeParse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:708:29)\n at ZodEffects.parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:689:29)\n at Object.validate (/home/runner/work/garden-snail/garden-snail/src/
|
test / Test (unit)
Process completed with exit code 1.
|
test/app.e2e-spec.ts:
src/config/configuration.ts#L45
ZodError: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_literal",
"expected": "s3",
"path": [
"STORAGE_PROVIDER"
],
"message": "Invalid literal value, expected \"s3\""
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_BUCKET"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_ACCESS_KEY_ID"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"S3_SECRET_ACCESS_KEY"
],
"message": "Required"
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_literal",
"expected": "local",
"path": [
"STORAGE_PROVIDER"
],
"message": "Invalid literal value, expected \"local\""
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"LOCAL_STORAGE_PATH"
],
"message": "Required"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
❯ Object.get error [as error] node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:587:31
❯ ZodEffects.parse node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:692:22
❯ Object.validate src/config/configuration.ts:45:30
❯ Function.forRoot node_modules/.pnpm/@nestjs[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@nestjs/config/dist/config.module.js:78:45
❯ src/app.module.ts:9:18
❯ test/app.e2e-spec.ts:5:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_union', unionErrors: [ { stack: 'ZodError: [\n {\n "code": "invalid_literal",\n "expected": "s3",\n "path": [\n "STORAGE_PROVIDER"\n ],\n "message": "Invalid literal value, expected \"s3\""\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_BUCKET"\n ],\n "message": "Required"\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_ACCESS_KEY_ID"\n ],\n "message": "Required"\n },\n {\n "code": "invalid_type",\n "expected": "string",\n "received": "undefined",\n "path": [\n "S3_SECRET_ACCESS_KEY"\n ],\n "message": "Required"\n }\n]\n at file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:2762:56\n at Array.map (<anonymous>)\n at ZodUnion._parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:2762:40)\n at ZodUnion._parseSync (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:678:29)\n at ZodEffects._parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:3717:47)\n at ZodEffects._parseSync (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:678:29)\n at ZodEffects.safeParse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:708:29)\n at ZodEffects.parse (file:///home/runner/work/garden-snail/garden-snail/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:689:29)\n at Object.validate (/home/runner/work/garden-snail/garden-snail/src/co
|
test / Test (e2e)
Process completed with exit code 1.
|