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

SyntaxError: Unexpected token 'export' on running jest test #1

Open
dnesbala opened this issue Feb 21, 2025 · 0 comments
Open

SyntaxError: Unexpected token 'export' on running jest test #1

dnesbala opened this issue Feb 21, 2025 · 0 comments

Comments

@dnesbala
Copy link

Jest Execution Issue

Description: An error occurs while running Jest in the project.

Environment:
Jest Version: ^29.7.0

Command Used: yarn jest

Attempted Fix
Added the following to package.json:

{
  "type": "module"
}

However, the issue persists.

Expected Behavior: Jest should execute tests without errors.

Actual Behavior: An error occurs during execution.

Any insights or suggestions for resolving this issue would be greatly appreciated!

Issue screenshot:
Image

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