Skip to content

Commit

Permalink
Update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Jan 14, 2025
1 parent 807a649 commit 403a242
Show file tree
Hide file tree
Showing 97 changed files with 248 additions and 197 deletions.
1 change: 1 addition & 0 deletions packages/create-snap/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/create-snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"publish:package": "../../scripts/publish-package.sh",
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../scripts/since-latest-release.sh",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:post": "jest-it-up",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-utils": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/bip32/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/bip32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/key-tree": "^10.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/bip44/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/bip44/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/key-tree": "^10.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/browserify-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/browserify/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/browserify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/client-status/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/client-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/cronjobs/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/cronjobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/dialogs/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/dialogs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/errors/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/ethereum-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/ethers-js/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/ethers-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/file-upload/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/file-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/get-entropy/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/get-entropy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/get-file/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/get-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/home-page/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/home-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^"
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/images/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/packages/interactive-ui/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@typescript-eslint/*",
"eslint-config-*",
"eslint-plugin-*",
"jest",
"jest-silent-reporter",
"prettier-plugin-packagejson",
"ts-node",
Expand Down
8 changes: 4 additions & 4 deletions packages/examples/packages/interactive-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
"test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter",
"test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache",
"test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose",
"test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "workspace:^",
Expand Down
Loading

0 comments on commit 403a242

Please sign in to comment.