-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
🐛 Bug Report
From Node.js 12.5.0, there's support for Number separators. However, Jest doesn't seem to recognize it.
It returns this error:
Identifier directly after number
To Reproduce
Steps to reproduce the behavior:
Include a number separator in the code. E.g. const n = {1_000: 'Thousand'};
.
Expected behavior
It should work without problems. I tried in the node.js console and it's working.
Link to repl or repo (highly encouraged)
envinfo
System:
OS: macOS Mojave 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 12.16.1 - ~/.asdf/installs/nodejs/12.16.1/bin/node
npm: 6.14.4 - ~/Code/dsa.js/node_modules/.bin/npm
npmPackages:
jest: 25.2.7 => 25.2.7