forwardemail / forwardemail/supertest

supertest use case with error "SyntaxError: Unexpected identifier"

Open
#803 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

I write a [boilerplate NodeJS app](https://github.com/web-needle/sappio), 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.