Refactor code structure for improved readability and maintainability #4463
ci.yml
on: push
Build Core
36s
Test
13m 33s
Build Docs
40s
E2E Tests
0s
Annotations
20 errors
|
Build Core
Process completed with exit code 2.
|
|
Build Core
@object-ui/example-crm#build: command (/home/runner/work/objectui/objectui/examples/crm) /home/runner/setup-pnpm/node_modules/.bin/pnpm run build exited (2)
|
|
Build Docs
Process completed with exit code 2.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
Property 'defaultValue' does not exist on type 'never'.
|
|
Build Docs
@object-ui/core#build: command (/home/runner/work/objectui/objectui/packages/core) /home/runner/setup-pnpm/node_modules/.bin/pnpm run build exited (2)
|
|
packages/types/src/__tests__/examples-metadata-compliance.test.ts > Example: crm > should import cleanly:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
examples/crm/src/__tests__/crm-metadata.test.ts:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/i18n-translations.test.ts:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/ReportView.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/ObjectGridInteractions.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/ObjectGrid.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/ObjectForm.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/MSWServer.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/Dashboard.test.tsx:
examples/crm/src/apps/crm.app.ts#L3
ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
"expected": "object",
"code": "invalid_type",
"path": [
"actionDef"
],
"message": "Invalid input: expected object, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message"
|
|
apps/console/src/__tests__/BrowserSimulation.test.tsx:
apps/console/src/App.tsx#L10
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ apps/console/src/App.tsx:10:1
❯ apps/console/src/__tests__/BrowserSimulation.test.tsx:133:1
Caused by: Caused by: ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_union",
"errors": [
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"object"
],
"path": [
"type"
],
"message": "Invalid input: expected \"object\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"objectName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"page"
],
"path": [
"type"
],
"message": "Invalid input: expected \"page\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"pageName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"url"
],
"path": [
"type"
],
"message": "Invalid input: expected \"url\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"url"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"report"
],
"path": [
"type"
],
"message": "Invalid input: expected \"report\""
},
{
"expected": "string",
"code": "invalid_type",
"path": [
"reportName"
],
"message": "Invalid input: expected string, received undefined"
}
],
[
{
"expected": "string",
"code": "invalid_type",
"path": [
"label"
],
"message": "Invalid input: expected string, received object"
},
{
"code": "invalid_value",
"values": [
"action"
],
"path": [
"type"
],
"message": "Invalid input: expected \"action\""
},
{
|