Skip to content

Commit aa38245

Browse files
committed
Update Jest config paths and dev script command
Adjusted moduleNameMapper paths in Jest configs for express-server, enterprise-erp, and project-tracker examples to point to the new packages directory structure. Also updated the 'dev' script in package.json to use 'objectql:tracker' instead of 'example:tracker'.
1 parent fca4d8f commit aa38245

File tree

4 files changed

+1
-19
lines changed

4 files changed

+1
-19
lines changed

examples/integrations/express-server/jest.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ module.exports = {
33
testEnvironment: 'node',
44
testMatch: ['**/__tests__/**/*.test.ts'],
55
moduleNameMapper: {
6-
'^@objectql/core$': '<rootDir>/../../foundation/core/src',
7-
'^@objectql/types$': '<rootDir>/../../foundation/types/src',
8-
'^@objectql/platform-node$': '<rootDir>/../../foundation/platform-node/src',
9-
'^@objectql/driver-sql$': '<rootDir>/../../drivers/sql/src',
10-
'^@objectql/driver-mongo$': '<rootDir>/../../drivers/mongo/src',
11-
'^@objectql/server$': '<rootDir>/../../runtime/server/src',
126
},
137
transform: {
148
'^.+\\.ts$': ['ts-jest', {

examples/showcase/enterprise-erp/jest.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ module.exports = {
33
testEnvironment: 'node',
44
testMatch: ['**/__tests__/**/*.test.ts'],
55
moduleNameMapper: {
6-
'^@objectql/core$': '<rootDir>/../../foundation/core/src',
7-
'^@objectql/types$': '<rootDir>/../../foundation/types/src',
8-
'^@objectql/platform-node$': '<rootDir>/../../foundation/platform-node/src',
9-
'^@objectql/driver-sql$': '<rootDir>/../../drivers/sql/src',
10-
'^@objectql/driver-mongo$': '<rootDir>/../../drivers/mongo/src',
11-
'^@objectql/server$': '<rootDir>/../../runtime/server/src',
126
},
137
transform: {
148
'^.+\\.ts$': ['ts-jest', {

examples/showcase/project-tracker/jest.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ module.exports = {
33
testEnvironment: 'node',
44
testMatch: ['**/__tests__/**/*.test.ts'],
55
moduleNameMapper: {
6-
'^@objectql/core$': '<rootDir>/../../foundation/core/src',
7-
'^@objectql/types$': '<rootDir>/../../foundation/types/src',
8-
'^@objectql/platform-node$': '<rootDir>/../../foundation/platform-node/src',
9-
'^@objectql/driver-sql$': '<rootDir>/../../drivers/sql/src',
10-
'^@objectql/driver-mongo$': '<rootDir>/../../drivers/mongo/src',
11-
'^@objectql/server$': '<rootDir>/../../runtime/server/src',
126
},
137
transform: {
148
'^.+\\.ts$': ['ts-jest', {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "objectql-monorepo",
33
"private": true,
44
"scripts": {
5-
"dev": "pnpm example:tracker",
5+
"dev": "pnpm objectql:tracker",
66
"build": "tsc -b && pnpm -r run build",
77
"clean": "rm -rf dist packages/*/dist packages/*/node_modules node_modules",
88
"test": "pnpm run check-versions && pnpm -r run test",

0 commit comments

Comments
 (0)