Unexpected character #
See original GitHub issue🐛 Bug Report
A clear and concise description of what the bug is.
I am using private fields in the class and it does not recognize the #
To Reproduce
Steps to reproduce the behavior:
Expected behavior
should have know that this is private field name
A clear and concise description of what you expected to happen.
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a minimal repository on GitHub.
https://repl.it/repls/CornsilkMidnightblueGenres
Issues without a reproduction link are likely to stall.
Run npx envinfo --preset jest
Paste the results here:
System:
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.16.0 - /usr/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
npmPackages:
jest: 24.7.1 => 24.7.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Unexpected Character - TV Tropes
They could be a One-Scene Wonder, someone who had succumbed to Chuck Cunningham Syndrome, simply a Living Prop, a Joke Character, or even...
Read more >1:1 error Parsing error: Unexpected character ' ' - Stack Overflow
It look like UTF-8 BOM in the begin of your file. If you have notepad++ you can remove it by click to "Encoding"...
Read more >ParseError: Unexpected character '@' #15832 - GitHub
I'm getting this parsing error (i.e., error Unexpected character '@' ParseError ) returned when running eslint --cache --fix .
Read more >Unexpected character encountered while parsing value
Unexpected character encountered while parsing value: P. Path '', line 0, position 0. Question. Reactive. API. Application Type. Reactive.
Read more >Solved: Unexpected character - Power Platform Community
Unexpected character ;. 05-24-2022 07:44 AM. matthew12333333_0-1653403334141.png. I cannot add another funtion, because I cannot write ;. Did you know why?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you @SimenB !
Setting
transform: {}in jest.config.js did the trick!This is essentially https://github.com/facebook/jest/issues/6829, just another syntax. You’ll need to configure babel or disable babel-jest for this to work