X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=script%2Fhusky-push-test.js;fp=script%2Fhusky-push-test.js;h=0000000000000000000000000000000000000000;hb=86d81ead97f6ade8e6e6934d6b49d8a8c48efece;hp=0ab7850a0c3223da9a67642ffcc46065d57ef3bf;hpb=adbc3f18b1505f39a5db43b21a5cb11a62640023;p=thirdparty%2Ffoundation%2Ffoundation-sites.git diff --git a/script/husky-push-test.js b/script/husky-push-test.js deleted file mode 100644 index 0ab7850a0..000000000 --- a/script/husky-push-test.js +++ /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); - } -})