chore: add unit test to high frequency hooks (#17617)

This commit is contained in:
Joel
2025-04-08 16:39:11 +08:00
committed by GitHub
parent 4124e804a0
commit 5a6219c726
3 changed files with 185 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ const config: Config = {
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
moduleNameMapper: {
'^@/components/(.*)$': '<rootDir>/components/$1',
'^@/(.*)$': '<rootDir>/$1',
'^lodash-es$': 'lodash',
},
@@ -133,7 +133,7 @@ const config: Config = {
// restoreMocks: false,
// The root directory that Jest should scan for tests and modules within
// rootDir: undefined,
rootDir: './',
// A list of paths to directories that Jest should use to search for files in
// roots: [