Refactor view layout sections for consistency and clarity in componen… #736
Annotations
8 errors
|
Test
Process completed with exit code 1.
|
|
src/ui/dashboard.test.ts > DashboardSchema > Real-World Dashboard Examples > should accept sales pipeline dashboard:
packages/spec/src/ui/dashboard.test.ts#L281
AssertionError: expected [Function] to not throw an error but '[\n {\n "received": "donut",\n …' was thrown
- Expected:
undefined
+ Received:
"[
{
\"received\": \"donut\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"metric\",
\"bar\",
\"line\",
\"pie\",
\"funnel\",
\"radar\",
\"scatter\",
\"heatmap\",
\"pivot\",
\"table\",
\"list\",
\"text\",
\"image\",
\"frame\"
],
\"path\": [
\"widgets\",
5,
\"type\"
],
\"message\": \"Invalid enum value. Expected 'metric' | 'bar' | 'line' | 'pie' | 'funnel' | 'radar' | 'scatter' | 'heatmap' | 'pivot' | 'table' | 'list' | 'text' | 'image' | 'frame', received 'donut'\"
}
]"
❯ src/ui/dashboard.test.ts:281:63
|
|
src/ui/dashboard.test.ts > ChartType > should reject invalid chart types:
packages/spec/src/ui/dashboard.test.ts#L21
AssertionError: expected [Function] to throw an error
❯ src/ui/dashboard.test.ts:21:46
|
|
src/ui/dashboard.test.ts > ChartType > should accept all chart types:
packages/spec/src/ui/dashboard.test.ts#L16
AssertionError: expected [Function] to not throw an error but '[\n {\n "received": "donut",\n …' was thrown
- Expected:
undefined
+ Received:
"[
{
\"received\": \"donut\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"metric\",
\"bar\",
\"line\",
\"pie\",
\"funnel\",
\"radar\",
\"scatter\",
\"heatmap\",
\"pivot\",
\"table\",
\"list\",
\"text\",
\"image\",
\"frame\"
],
\"path\": [],
\"message\": \"Invalid enum value. Expected 'metric' | 'bar' | 'line' | 'pie' | 'funnel' | 'radar' | 'scatter' | 'heatmap' | 'pivot' | 'table' | 'list' | 'text' | 'image' | 'frame', received 'donut'\"
}
]"
❯ src/ui/dashboard.test.ts:16:47
❯ src/ui/dashboard.test.ts:15:11
|
|
src/data/field.test.ts > Field Factory Helpers > Enhanced Field Types > should accept geolocation field type:
packages/spec/src/data/field.test.ts#L499
AssertionError: expected [Function] to not throw an error but '[\n {\n "received": "geolocation"…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"received\": \"geolocation\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"text\",
\"textarea\",
\"email\",
\"url\",
\"phone\",
\"password\",
\"markdown\",
\"html\",
\"richtext\",
\"number\",
\"currency\",
\"percent\",
\"date\",
\"datetime\",
\"time\",
\"boolean\",
\"toggle\",
\"select\",
\"multiselect\",
\"radio\",
\"checkboxes\",
\"lookup\",
\"master_detail\",
\"image\",
\"file\",
\"avatar\",
\"video\",
\"audio\",
\"formula\",
\"summary\",
\"autonumber\",
\"location\",
\"address\",
\"code\",
\"json\",
\"color\",
\"rating\",
\"slider\",
\"signature\",
\"qrcode\",
\"progress\",
\"tags\"
],
\"path\": [],
\"message\": \"Invalid enum value. Expected 'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'markdown' | 'html' | 'richtext' | 'number' | 'currency' | 'percent' | 'date' | 'datetime' | 'time' | 'boolean' | 'toggle' | 'select' | 'multiselect' | 'radio' | 'checkboxes' | 'lookup' | 'master_detail' | 'image' | 'file' | 'avatar' | 'video' | 'audio' | 'formula' | 'summary' | 'autonumber' | 'location' | 'address' | 'code' | 'json' | 'color' | 'rating' | 'slider' | 'signature' | 'qrcode' | 'progress' | 'tags', received 'geolocation'\"
}
]"
❯ src/data/field.test.ts:499:56
|
|
src/data/field.test.ts > FieldType > should accept valid field types:
packages/spec/src/data/field.test.ts#L30
AssertionError: expected [Function] to not throw an error but '[\n {\n "received": "geolocation"…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"received\": \"geolocation\",
\"code\": \"invalid_enum_value\",
\"options\": [
\"text\",
\"textarea\",
\"email\",
\"url\",
\"phone\",
\"password\",
\"markdown\",
\"html\",
\"richtext\",
\"number\",
\"currency\",
\"percent\",
\"date\",
\"datetime\",
\"time\",
\"boolean\",
\"toggle\",
\"select\",
\"multiselect\",
\"radio\",
\"checkboxes\",
\"lookup\",
\"master_detail\",
\"image\",
\"file\",
\"avatar\",
\"video\",
\"audio\",
\"formula\",
\"summary\",
\"autonumber\",
\"location\",
\"address\",
\"code\",
\"json\",
\"color\",
\"rating\",
\"slider\",
\"signature\",
\"qrcode\",
\"progress\",
\"tags\"
],
\"path\": [],
\"message\": \"Invalid enum value. Expected 'text' | 'textarea' | 'email' | 'url' | 'phone' | 'password' | 'markdown' | 'html' | 'richtext' | 'number' | 'currency' | 'percent' | 'date' | 'datetime' | 'time' | 'boolean' | 'toggle' | 'select' | 'multiselect' | 'radio' | 'checkboxes' | 'lookup' | 'master_detail' | 'image' | 'file' | 'avatar' | 'video' | 'audio' | 'formula' | 'summary' | 'autonumber' | 'location' | 'address' | 'code' | 'json' | 'color' | 'rating' | 'slider' | 'signature' | 'qrcode' | 'progress' | 'tags', received 'geolocation'\"
}
]"
❯ src/data/field.test.ts:30:47
❯ src/data/field.test.ts:29:16
|
|
Build
Process completed with exit code 2.
|
|
Build
Type '"donut"' is not assignable to type '"list" | "text" | "image" | "metric" | "frame" | "bar" | "line" | "pie" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table"'.
|