Skip to content

Commit 283b09b

Browse files
authored
Merge branch 'main' into networkclientid-polling
2 parents 9b53d8c + 91f37e1 commit 283b09b

File tree

26 files changed

+30
-1
lines changed

26 files changed

+30
-1
lines changed

constraints.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ gen_enforced_field(WorkspaceCwd, 'scripts.changelog:validate', ProperChangelogVa
257257
gen_enforced_field(WorkspaceCwd, 'scripts.test', 'jest') :-
258258
WorkspaceCwd \= '.'.
259259

260+
% All non-root packages must have the same "test:clean" script.
261+
gen_enforced_field(WorkspaceCwd, 'scripts.test:clean', 'jest --clearCache') :-
262+
WorkspaceCwd \= '.'.
263+
260264
% All non-root packages must have the same "test:watch" script.
261265
gen_enforced_field(WorkspaceCwd, 'scripts.test:watch', 'jest --watch') :-
262266
WorkspaceCwd \= '.'.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"prepare-preview-builds": "./scripts/prepare-preview-builds.sh",
2828
"publish-previews": "yarn workspaces foreach --parallel --verbose run publish:preview",
2929
"setup": "yarn install",
30-
"test": "yarn workspaces foreach --parallel --verbose run test"
30+
"test": "yarn workspaces foreach --parallel --verbose run test",
31+
"test:clean": "yarn workspaces foreach --parallel --verbose run test:clean && yarn test"
3132
},
3233
"simple-git-hooks": {
3334
"pre-push": "yarn lint"

packages/accounts-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/accounts-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/address-book-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/address-book-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/announcement-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/announcement-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/approval-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/approval-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/assets-controllers/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/assets-controllers",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/base-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/base-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/composable-controller/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/composable-controller",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

packages/controller-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/controller-utils",
2626
"publish:preview": "yarn npm publish --tag preview",
2727
"test": "jest",
28+
"test:clean": "jest --clearCache",
2829
"test:watch": "jest --watch"
2930
},
3031
"dependencies": {

0 commit comments

Comments
 (0)