Next.js Discord

Discord Forum

No Dev error, just Jest error

Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
hello anyone around? i have some strange behavior. When I run my nextjs project it runs fine, but when i run jest, i get a number of errors starting with
SyntaxError: await is only valid in async functions and the top level bodies of modules

are they using different typescript compilers?

0 Replies