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

tsconfig paths mapping ? #36

Closed soulsam480 closed 2 years ago

soulsam480 commented 3 years ago
 ERROR  Running tests failed: Error: Cannot find module 'src/utils/helpers'

Hii @Akryum is it possible to support tsconfig paths mapping. I tried doing this but it din't work

    "test:open": "node -r tsconfig-paths/register node_modules/@peeky/cli/dist/index.js open"

I used this https://www.npmjs.com/package/tsconfig-paths

Akryum commented 2 years ago

Peeky moved to Vite to compile files, so it should respect vite.config.ts in your project. I didn't test path mappings yet though