Has anyone experienced the "Declaration or statement expected" error whilst writing tests?
w
wonderful-match-15836
07/25/2022, 11:39 AM
This seems like a regular JS syntax error. One of the lines mentions an “invalid character”, I’d start by looking at that. What’s on the screen doesn’t seem to be the actual source of the problem, but it looks like there are more lines below.
l
loud-city-40050
07/25/2022, 1:10 PM
Thanks, @wonderful-match-15836 . I even pasted Cypress.io sample code in, and got it. Weird one, but solved!