Post

@juri.dev @nx.dev any chance that we could get a generator that adds vite/vitest to a monorepo for TESTS ONLY? I really want to get rid of jest it is such a pain

0 reposts0 likes

Sure so we use one nextjs app and a few smaller react apps and everything is using jest, msw and react testing library for tests. Jest is being a huge pain because of ESM woes, monorepo configs, globals, missing node functions etc. I already migrated to jest-fixed-jsdom but'd rather go vitest

So this is a monorepo created with Nx? or is it based on an npm/pnpm workspace and created with the respective CLIs (for Next etc)? Sorry just trying to understand the underlying infra :)

Appreciate it! Original creation is pre-me but it is using yarn workspaces and Nx, yes. Currently it does not use nx/next for the next app but that is basically what I'm working on because our build cache does not cache.