ArtiomTr / jest-coverage-report-action

Track your code coverage in every pull request.
https://www.covbot.dev
MIT License
486 stars 139 forks source link

Syntax Error: Unexpected Token #181

Closed LRR1993 closed 2 years ago

LRR1993 commented 2 years ago

Describe a bug

failing job run

Expected behavior

to produce code coverage (i understand this isnt supproted yet)

Details

Additional context

node version 14.x

Screenshot 2021-10-20 at 01 15 45

node version 16.x

Screenshot 2021-10-20 at 01 10 14
ArtiomTr commented 2 years ago

Hello @LRR1993,

Thank you for reporting the bug. This issue will be queued for fix.

adamwardecki commented 2 years ago

Having the same issue. I can share a repo with reproduction steps, if needed

ArtiomTr commented 2 years ago

Hello @adamwardecki,

Thank you for taking the initiative, but I've encountered this issue many times before - it's related to the optional chaining operator (?), which only appeared in node 14.0 (MDN). This issue requires only few small tweaks to build configuration.