Skip to content

Commit b8c735d

Browse files
committed
Attempt to run tests only for changed files
1 parent 3f83598 commit b8c735d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
npm run style
5-
npm run test
5+
npm run test --onlyChanged

Project-Euler/test/Problem044.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('checking nth prime number', () => {
1313
})
1414
// Project Euler Second Value for Condition Check
1515
// FIXME skip this test for now because it runs very long and clogs up the CI & pre-commit hook
16-
test.skip('if the number is greater or equal to 2167', () => {
16+
test('if the number is greater or equal to 2167', () => {
1717
expect(problem44(2167)).toBe(8476206790)
1818
})
1919
})

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)