Raathigesh / majestic

⚡ Zero config GUI for Jest
MIT License
7.49k stars 173 forks source link

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

Open ojaoc opened 2 years ago

ojaoc commented 2 years ago

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.