Skip to content

SyntaxError: Unexpected token 'export' when running jest tests #7113

Description

@pimmee

Reduced Test Case

https://stackblitz.com/edit/github-sgjd3r?file=src/demo.test.jsx&view=editor

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

React

Bug Description

Since upgrading to FullCalendar v6, all my react test in jest are failing with the following error:

SyntaxError: Unexpected token 'export'

image

Here's the error when I run 'npm run test' in StackBlitz
image

Edit:
Here's a StackBlitz with v5.11.3 where the test is working. The following release (v6.0.0-beta.2) is not working.

Metadata

Metadata

Assignees

Type

No type

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions