orbitkit icon indicating copy to clipboard operation
orbitkit copied to clipboard

Vitest integration

Open ixahmedxi opened this issue 1 year ago • 4 comments

ixahmedxi avatar Apr 05 '24 21:04 ixahmedxi

Why vitest over Jest? Just curious.

imCorfitz avatar Apr 06 '24 18:04 imCorfitz

I was actually anticipating a "why vitest over bun?" question more than this haha.

To put it simply, jest is a far older, much slower and doesn't natively support ESM, which the monorepo is only ESM and so vitest would be much easier there, plus we also have packages/config/vite so we are all in on the vite ecosystem (outside of nextjs i guess) anywho I would actually even be interested in a bun:test implementation because that is the fastest unit testing framework out there currently and orbitkit should access newness with stability and functionality when a decision is made that's why i think vitest strikes that perfect balance between speed (bun) and stability (jest)

ixahmedxi avatar Apr 06 '24 19:04 ixahmedxi

let me do you the honors:

why vitest over bun:test??

duttaoindril avatar Apr 29 '24 05:04 duttaoindril

Actually I don't mind any, I think both are great

ixahmedxi avatar Apr 29 '24 22:04 ixahmedxi