Skip to content

Commit

Permalink
Update paths for test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vin0401 committed May 13, 2024
1 parent b9510a7 commit fd91244
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 29 deletions.
4 changes: 2 additions & 2 deletions assets/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const config: JestConfigWithTsJest = {
'./js/test-utils/jest-setup.ts'
],
moduleNameMapper: {
'^@Pimcore/(.*)$': '<rootDir>/js/src/$1',
'^@Pimcore/(.*)$': '<rootDir>/js/src/core/$1',
'^@test-utils/(.*)$': '<rootDir>/js/test-utils/$1'
}
},
}

export default config
25 changes: 0 additions & 25 deletions assets/js/src/core/components/example/__tests__/example.spec.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build-api-client": "npx @rtk-query/codegen-openapi ./js/build/api/openapi-config.ts",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./js",
"lint-fix": "eslint --ext .js,.jsx,.ts,.tsx ./js --fix",
"test": "jest --passWithNoTests",
"test": "jest ./js/src --passWithNoTests",
"storybook": "storybook dev -p 6006"
},
"types": "./dist/build/types/src/sdk/main.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion assets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"target": "es2017",
"moduleResolution": "Node",
"types": ["reflect-metadata", "@types/webpack-env"],
"types": ["reflect-metadata", "@types/webpack-env", "jest"],
"baseUrl": "./js/",
"paths": {
"@Pimcore/*": ["./src/core/*"],
Expand Down

0 comments on commit fd91244

Please sign in to comment.