perf: improve Jest caching and configuration in web tests (#29881)

This commit is contained in:
yyh
2025-12-19 12:00:46 +08:00
committed by GitHub
parent 95a2b3d088
commit 80f11471ae
33 changed files with 496 additions and 111 deletions

View File

@@ -20,7 +20,7 @@ const config: Config = {
// bail: 0,
// The directory where Jest should store its cached dependency information
// cacheDirectory: "/private/var/folders/9c/7gly5yl90qxdjljqsvkk758h0000gn/T/jest_dx",
cacheDirectory: '<rootDir>/.cache/jest',
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,