Open siluo opened 4 years ago
there is probably some es6 syntax there in the spec file that breaks the current parser
try commenting out code in your spec file until you find what syntax breaks it. Also to fix this I would need to know that syntax to test against it
try commenting out code in your spec file until you find what syntax breaks it. Also to fix this I would need to know that syntax to test against it
@bahmutov i tried to comment out all codes line by line except those lines with "const" like:
const userFile = require('../../fixtures/test_user_datafile');
including it the test failed at the unexpected token as above, but without including it the test passed by skipping all codes.
and I think you are right that it is some es6 syntax causing the issue.
Btw, i tried to replace the only one line code in my spec file
const userFile = require('../../fixtures/test_user_datafile')
to
var userFile = require('../../fixtures/test_user_datafile')
I still got the same error. Not sure if it helps our debug.
Hey,
I updated the latest cypress-select-tests package, and now my plugins/index.js file is(I assume this is the only place i need to update):
However after running the command:
DEBUG=cypress-select-tests npm run test:cypress:vp:tag
(test:cypress:vp:tag is defined in package.json file:
"test:cypress:vp:tag": "cypress run --env grep=xyz,myEnv=${ENV:-qa},useTool=false"
)I got the below error:
Could you please help me point out why it throws error?
Thanks.