Skip to content

Commit 4d8a507

Browse files
devin-ai-integration[bot]Convex, Inc.
authored and
Convex, Inc.
committed
Merge Jest configs from dashboard and dashboard-common (#35821)
Merge Jest configurations from `dashboard` and `dashboard-common` into a single configuration in the `dashboard` package. Having a single Jest root file is helpful when using the Jest VS Code extension. GitOrigin-RevId: ede2e8bbac5f63a80425e770bdf74a3af53df3f4
1 parent 56065a3 commit 4d8a507

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

npm-packages/dashboard-common/jest.config.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

npm-packages/dashboard-common/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"scripts": {
88
"build": "npm run build:generated && tsc --noEmit",
99
"build:generated": "python3 scripts/build-convexServerTypes.py",
10-
"test": "npm run build:generated && jest",
1110
"storybook": "storybook dev -s ./public -p 6006 --no-open",
1211
"build-storybook": "storybook build",
1312
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx --ignore-pattern '**/*.stories.tsx'",

npm-packages/dashboard/jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const customJestConfig = {
1212
"react-dnd": "<rootDir>/__mocks__/fileMock.js",
1313
"react-dnd-scrolling": "<rootDir>/__mocks__/fileMock.js",
1414
"^dashboard-common/(.*)$": "<rootDir>/../dashboard-common/src/$1",
15+
"^@common/(.*)$": "<rootDir>/../dashboard-common/src/$1",
1516
},
17+
// Add roots for both packages to run all tests
18+
roots: ["<rootDir>", "<rootDir>/../dashboard-common"],
1619
};
1720

1821
const config = createJestConfig(customJestConfig);

0 commit comments

Comments
 (0)