Akryum / peeky

A fast and fun test runner for Vite & Node 🐈️ Powered by Vite ⚡️
https://peeky.dev
MIT License
681 stars 17 forks source link

[BUG] Unexpected token } in JSON at position 439 #17

Closed mathieutu closed 3 years ago

mathieutu commented 3 years ago

Hi, I've an issue with my tests suite. I don't why and when, but the test runner is constantly failing with:

 ERROR  Unexpected token } in JSON at position 439                                                                                                                     11:53:11

  at JSON.parse (<anonymous>)
  at Object.load (node_modules/@peeky/runner/dist/worker.js:6549:19)

You can find the test file here: https://github.com/mathieutu/nodemailer-react/blob/tests/__tests__/index.spec.jsx

And the failing run here: https://github.com/mathieutu/nodemailer-react/runs/3431371103?check_suite_focus=true

Any thoughts?

Thanks!

mathieutu commented 3 years ago

ok nevermind, I had a trailing comma in my tsconfig.json... 🤦