`\`destination\` is missing for route {"source":"/hello","permanent":false}`
conststderr=awaitgetStderr()
)
expect(stderr).toContain(
expect(stderr).toContain(
`\`source\` is not a string for route {"source":123,"destination":"/another","permanent":false}`
`\`destination\` is missing for route {"source":"/hello","permanent":false}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`\`statusCode\` is not undefined or valid statusCode for route {"source":"/hello","destination":"/another","statusCode":"301"}`
`\`source\` is not a string for route {"source":123,"destination":"/another","permanent":false}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`\`statusCode\` is not undefined or valid statusCode for route {"source":"/hello","destination":"/another","statusCode":404}`
`\`statusCode\` is not undefined or valid statusCode for route {"source":"/hello","destination":"/another","statusCode":"301"}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`\`permanent\` is not set to \`true\` or \`false\` for route {"source":"/hello","destination":"/another","permanent":"yes"}`
`\`statusCode\` is not undefined or valid statusCode for route {"source":"/hello","destination":"/another","statusCode":404}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`\`destination\` has unnamed params :0 for route {"source":"/hello/world/(.*)","destination":"/:0","permanent":true}`
`\`permanent\` is not set to \`true\` or \`false\` for route {"source":"/hello","destination":"/another","permanent":"yes"}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`The route null is not a valid object with \`source\` and \`destination\``
`\`destination\` has unnamed params :0 for route {"source":"/hello/world/(.*)","destination":"/:0","permanent":true}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`The route "string" is not a valid object with \`source\` and \`destination\``
`The route null is not a valid object with \`source\` and \`destination\``
)
)
expect(stderr).toContain('Invalid `has` item:')
expect(stderr).toContain(
expect(stderr).toContain(
`The route "string" is not a valid object with \`source\` and \`destination\``
`invalid type "cookiee" for {"type":"cookiee","key":"loggedIn"}`
)
)
expect(stderr).toContain(
`invalid \`has\` item found for route {"source":"/hello","destination":"/another","has":[{"type":"cookiee","key":"loggedIn"}],"permanent":false}`
)
expect(stderr).toContain('Invalid `has` items:')
expect(stderr).toContain('Invalid `has` item:')
expect(stderr).toContain(
expect(stderr).toContain(
`invalid type "headerr", invalid key "undefined" for {"type":"headerr"}`
`invalid type "cookiee" for {"type":"cookiee","key":"loggedIn"}`
)
)
expect(stderr).toContain(
expect(stderr).toContain(
`invalid type "queryr" for {"type":"queryr","key":"hello"}`
`invalid \`has\` item found for route {"source":"/hello","destination":"/another","has":[{"type":"cookiee","key":"loggedIn"}],"permanent":false}`
)
)
expect(stderr).toContain(
`invalid \`has\` items found for route {"source":"/hello","destination":"/another","permanent":false,"has":[{"type":"headerr"},{"type":"queryr","key":"hello"}]}`
)
expect(stderr).toContain(`Valid \`has\` object shape is {`)
`invalid type "headerr", invalid key "undefined" for {"type":"headerr"}`
)
expect(stderr).toContain(
`invalid type "queryr" for {"type":"queryr","key":"hello"}`
)
expect(stderr).toContain(
`invalid \`has\` items found for route {"source":"/hello","destination":"/another","permanent":false,"has":[{"type":"headerr"},{"type":"queryr","key":"hello"}]}`
)
expect(stderr).toContain(`Valid \`has\` object shape is {`)