diff --git a/wallet-web/package-lock.json b/wallet-web/package-lock.json index b52d863cef..1338468435 100644 --- a/wallet-web/package-lock.json +++ b/wallet-web/package-lock.json @@ -27,6 +27,7 @@ "@types/node": "^14.6.4", "@types/react": "^16.9.49", "babel-jest": "^27.0.6", + "husky": "^7.0.1", "jest": "^27.0.6", "typescript": "^4.2.2" } @@ -5965,6 +5966,21 @@ "node": ">=10.17.0" } }, + "node_modules/husky": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz", + "integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/hyphenate-style-name": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", @@ -15401,6 +15417,12 @@ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, + "husky": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz", + "integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==", + "dev": true + }, "hyphenate-style-name": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", diff --git a/wallet-web/package.json b/wallet-web/package.json index 79b45ed006..7f3e9291b5 100644 --- a/wallet-web/package.json +++ b/wallet-web/package.json @@ -8,7 +8,8 @@ "dev": "next dev", "build": "next build && next export", "start": "next start", - "test": "jest --watch" + "test": "jest", + "test:watch": "jest --watch" }, "dependencies": { "@material-ui/core": "^4.11.3", @@ -30,7 +31,13 @@ "@types/node": "^14.6.4", "@types/react": "^16.9.49", "babel-jest": "^27.0.6", + "husky": "^7.0.1", "jest": "^27.0.6", "typescript": "^4.2.2" + }, + "husky": { + "hooks": { + "pre-push": "npm run test" + } } } diff --git a/wallet-web/yarn.lock b/wallet-web/yarn.lock index e308b3c824..75cd691862 100644 --- a/wallet-web/yarn.lock +++ b/wallet-web/yarn.lock @@ -3119,6 +3119,11 @@ "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" "version" "2.1.0" +"husky@^7.0.1": + "integrity" "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==" + "resolved" "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz" + "version" "7.0.1" + "hyphenate-style-name@^1.0.3": "integrity" "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==" "resolved" "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz"