- Number of tests : 37
- Each test case runs 1000 times
Command :
nx generate @nrwl/react:application --directory=apps webpack-jest
App Name : webpack-jest
Bundler : Webpack (default)
Unit Test Runner : Jest (default)
Trial | Test Execution | Test Execution (--skip-nx-cache) | Watch Mode |
---|---|---|---|
1 | 7.902s | 7.786 s | 6.855s |
2 | 7.902s | 7.961 s | 8.594s |
3 | 7.902s | 8.245 s | 8.415s |
Result | 7.902s | ~7.998s | ~7.955s |
Command:
nx generate @nrwl/react:application --directory=apps webpack-vitest --unitTestRunner=vitest
App Name : webpack-vitest
Bundler : Webpack (default)
Unit Test Runner : Vitest
Trial | Test Execution | Test Execution (--skip-nx-cache) | Watch Mode |
---|---|---|---|
1 | 1.83s | 1.84s | 1.79s |
2 | 1.83s | 1.81s | 1.78s |
3 | 1.83s | 1.75s | 1.79s |
Result | 1.83s | 1.8s | ~1.79s |
Command :
nx generate @nrwl/react:application --bundler=vite --directory=apps vite-vitest --unitTestRunner=vitest
App Name : vite-vitest
Bundler : Vite
Unit Test Runner : Vitest
Trial | Test Execution | Test Execution (--skip-nx-cache) | Watch Mode |
---|---|---|---|
1 | 1.81s | 1.89s | 1.76s |
2 | 1.81s | 1.81s | 1.87s |
3 | 1.81s | 1.82s | 1.77s |
Result | 1.81s | 1.84s | ~1.8s |
- reference : https://nx.dev/packages/nx/documents/run-many
- command :
npx nx run-many --target=test --skip-nx-cache
Application | Test Execution Time |
---|---|
jest + webpack | 5s |
vitest + webpack | 3s |
vitest + vite | 3s |
✨ This workspace has been generated by Nx, a Smart, fast and extensible build system. ✨
Run nx serve jest-app
for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run nx graph
to see a diagram of the dependencies of the projects.
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.
Visit the Nx Documentation to learn more.