Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
fix: unit tests not working (#24)
Browse files Browse the repository at this point in the history
this commit was made because after moving the whole repo from packages/theme to
the template-magento repo unit tests stopped working

this is because all packages in magento2 repo are in the repo root's
node_modules, so packages/theme doesn't contain them normally. this changes in
the context of template-magento

also reverted some changes made during the rc7 release which attempted to fix
the issue
  • Loading branch information
sethidden authored Jun 2, 2022
1 parent 22ec281 commit 661c368
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
4 changes: 0 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
module.exports = {
globals: {
__DEV__: true,
'ts-jest': {
tsConfig: 'tsconfig.spec.json'
}
},

coverageReporters: ['lcov'],

coverageThreshold: { global: {} },
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
"cypress-tags": "^0.3.0",
"deepmerge": "^4.2.2",
"ejs": "^3.1.6",
"jest": "^28.1.0",
"jest": "^27.5.1",
"jest-date-mock": "^1.0.8",
"jest-environment-jsdom": "^28.1.0",
"jest-environment-jsdom": "^27.5.1",
"jest-localstorage-mock": "^2.4.19",
"jest-silent-reporter": "^0.5.0",
"jest-transform-stub": "^2.0.0",
Expand All @@ -91,7 +91,7 @@
"mochawesome-merge": "^4.2.1",
"mochawesome-report-generator": "^6.0.1",
"npm-check-updates": "^12.1.0",
"ts-jest": "^28.0.3",
"ts-jest": "^27.1.5",
"ts-loader": "^8.1.0",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@nuxt/image",
"jest"
],
"typeRoots": ["../../node_modules/@types"],
"typeRoots": ["../../node_modules/@types", "./node_modules/@types"],
"resolveJsonModule": true,
"rootDir": "./",
"declarationDir": "./lib",
Expand Down
6 changes: 0 additions & 6 deletions tsconfig.spec.json

This file was deleted.

0 comments on commit 661c368

Please sign in to comment.