sourcegraph/client/build-config
Quinn Slack ae5325e432
switch from jest to vitest for faster, simpler tests (#57886)
Replaces our usage of jest with vitest. Also removes the babel transpiler. This simplifies our test configuration by a lot, makes tests run 10% faster, and makes further modernizations to our build/test stuff possible (such as using vite for frontend builds).

This removes some of the junit exporting for Buildkite, and the vitest bazel defs don't really cleanly implement bazel testing guidelines (like sharding). But vitest is only used for unit tests (all integration/e2e/regression tests have always run in mocha), so none of them are very slow anyway.

## Codemods for vitest imports

fastmod -e js,ts,tsx @jest/globals vitest client/ dev/release/
fastmod -e js,ts,tsx 'jest\.(\w+)\(' 'vi.$1(' client/ dev/release/
fastmod -e js,ts,tsx 'jest,' 'vi,' client/ dev/release/
fastmod -e js,ts,tsx 'jest }' 'vi }' client/ dev/release/
git diff --diff-filter=M --name-only | xargs pnpm exec prettier --write
2023-11-05 21:57:04 -10:00
..
src disable slow eslint rules, remove unused disable directives (#57788) 2023-10-23 13:23:44 -07:00
.eslintignore web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
BUILD.bazel switch from jest to vitest for faster, simpler tests (#57886) 2023-11-05 21:57:04 -10:00
package.json switch from jest to vitest for faster, simpler tests (#57886) 2023-11-05 21:57:04 -10:00
README.md web: add empty build-config package (#25965) 2021-10-12 16:14:50 +00:00
tsconfig.json simplify tsconfig.json files (#57913) 2023-10-26 03:03:11 -07:00

Build config

Shared build configuration.