Skip to content

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

Open
ojaoc wants to merge 1 commit into
Raathigesh:masterfrom
ojaoc:numeric-separator-support
Open

Added babel plugin to support numeric separators in test files#224
ojaoc wants to merge 1 commit into
Raathigesh:masterfrom
ojaoc:numeric-separator-support

Conversation

@ojaoc

@ojaoc ojaoc commented May 3, 2022

Copy link
Copy Markdown

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.

1 participant