Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
89 lines
2 KiB
Text
89 lines
2 KiB
Text
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`ioTsResolver > should return a single error from ioTsResolver when validation fails 1`] = `
|
|
{
|
|
"errors": {
|
|
"animal": {
|
|
"message": "expected string but got ["dog"]",
|
|
"ref": undefined,
|
|
"type": "string",
|
|
},
|
|
"like": [
|
|
{
|
|
"id": {
|
|
"message": "this id is very important but you passed: string(1)",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
},
|
|
],
|
|
"luckyNumbers": [
|
|
,
|
|
,
|
|
{
|
|
"message": "expected number but got "3"",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
],
|
|
"vehicles": [
|
|
,
|
|
{
|
|
"horsepower": {
|
|
"message": "expected number but got undefined",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"values": {},
|
|
}
|
|
`;
|
|
|
|
exports[`ioTsResolver > should return all the errors from ioTsResolver when validation fails with \`validateAllFieldCriteria\` set to true 1`] = `
|
|
{
|
|
"errors": {
|
|
"animal": {
|
|
"message": "expected "snake" but got ["dog"]",
|
|
"ref": undefined,
|
|
"type": ""snake"",
|
|
"types": {
|
|
""bird"": "expected "bird" but got ["dog"]",
|
|
""snake"": "expected "snake" but got ["dog"]",
|
|
"number": "expected number but got ["dog"]",
|
|
"string": "expected string but got ["dog"]",
|
|
},
|
|
},
|
|
"like": [
|
|
{
|
|
"id": {
|
|
"message": "this id is very important but you passed: string(1)",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
},
|
|
],
|
|
"luckyNumbers": [
|
|
,
|
|
,
|
|
{
|
|
"message": "expected number but got "3"",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
],
|
|
"vehicles": [
|
|
,
|
|
{
|
|
"horsepower": {
|
|
"message": "expected number but got undefined",
|
|
"ref": undefined,
|
|
"type": "number",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
"values": {},
|
|
}
|
|
`;
|