Has anyone experienced the "Declaration or stateme...
# best-practices
l
Has anyone experienced the "Declaration or statement expected" error whilst writing tests?
w
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
Thanks, @wonderful-match-15836 . I even pasted Cypress.io sample code in, and got it. Weird one, but solved!