Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supertest use case with error "SyntaxError: Unexpected identifier" #803

Open
brunolnetto opened this issue Nov 30, 2022 · 0 comments
Open

Comments

@brunolnetto
Copy link

I write a boilerplate NodeJS app, and use supertest+jest as tester. After writing some tests, I starter having the issue below by command run npm run test:

SyntaxError: Unexpected identifier
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
    at async link (node:internal/modules/esm/module_job:67:21)

It does not give me any hint where the problem is in my code. Do you understand it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant