Skip to content

Commit 101c78d

Browse files
authored
Remove unit tests as being run as part of the pre-commit hook (microsoft#2032)
1 parent 03ec394 commit 101c78d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

gulpfile.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,5 @@ exports.hygiene = hygiene;
516516

517517
// this allows us to run hygiene as a git pre-commit hook.
518518
if (require.main === module) {
519-
const result = run({ exitOnError: true, mode: 'staged' });
520-
// Run unit tests and ensure they pass as well.
521-
if (result && result.on) {
522-
result.on('end', () => {
523-
const main = require('./out/test/unittests');
524-
main.runTests();
525-
})
526-
}
519+
run({ exitOnError: true, mode: 'staged' });
527520
}

news/3 Code Health/1986.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed pre-commit hook that ran unit tests.

0 commit comments

Comments
 (0)