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

Added babel plugin to support numeric separators in test files #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ojaoc
Copy link

@ojaoc ojaoc commented May 3, 2022

When parsing test files that use numeric separators, for intance:
const numberWithSeparators = 3_600_000;

The babel parser throws an error Identifier directly after number.

In my case, this resulted in the omission of a failed test's result.

image

I fixed this by adding @babel/plugin-proposal-numeric-separator to the plugin list.

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

Successfully merging this pull request may close these issues.

None yet

1 participant