it('should catch invalid element from a browser only component',async()=>{
it('should catch invalid element from a browser only component',async()=>{
constbrowser=awaitnext.browser('/browser')
constbrowser=awaitnext.browser('/browser')
awaitassertHasRedbox(browser)
awaitexpect(browser).toDisplayRedbox(`
constsource=awaitgetRedboxSource(browser)
{
"count": 1,
"description": "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
"description": "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
"description": "Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.