stable

Clone or download

Read-only

Closes request #27548: Introduce Vitest as the new default JS test runner

This contribution comes with an ADR explaining the rationale behing this choice and it introduces the necessary architecture to use it. One small library is migrated as a demonstration. Other migrations will be handled in dedicated requests. Vite is upgraded to 2.9.14 from 2.9.1 to avoid issues with the types. Changelog can be seen here: https://github.com/vitejs/vite/blob/v2.9.14/packages/vite/CHANGELOG.md Change-Id: I9c322b10660ac19183b131e2fe98e85e1770798b

Modified Files

Name
M .eslintrc.js +3 −0 Go to diff View file
A adr/0014-js-unit-test-runner.md +67 −0 Go to diff View file
M adr/index.md +1 −0 Go to diff View file
M lib/frontend/build-system-configurator/src/vite-configurator.ts +54 −7 Go to diff View file
A lib/frontend/build-system-configurator/src/vitest/fail-console-error-warning.ts +42 −0 Go to diff View file
R lib/frontend/fault/jest.config.js Go to diff View file
A lib/frontend/build-system-configurator/src/vitest/setup-snapshot-serializer.ts +24 −0 Go to diff View file
M lib/frontend/fault/package.json +1 −1 Go to diff View file
M lib/frontend/fault/src/Fault.test.ts +1 −0 Go to diff View file
M package.json +3 −1 Go to diff View file
M pnpm-lock.yaml +214 −30 Go to diff View file