]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/blobdiff - script/husky-push-test.js
update husky
[thirdparty/foundation/foundation-sites.git] / script / husky-push-test.js
diff --git a/script/husky-push-test.js b/script/husky-push-test.js
deleted file mode 100644 (file)
index 0ab7850..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-const { yellow, red } = require('kleur');
-const spawn = require('child_process').spawn
-
-console.log(yellow('🐶  Checking tests before pushing...'))
-
-const child = spawn('yarn test', [], { shell: true })
-
-child.stdout.on('data', function (data) {
-  process.stdout.write(data)
-})
-
-child.on('error', function (err) {
-  console.log(red(err))
-})
-
-child.on('exit', function (code) {
-  if(code === 0){
-    console.log(yellow('🐶  ✓ Tests run well, we can push...'))
-  } else {
-    console.log(yellow('🐶  ✗ Tests are failing, please fix them before pushing.'))
-    process.exit(code);
-  }
-})