chore: only test changed packages (#1194)

This commit is contained in:
Roland Hummel
2022-10-20 15:59:09 +02:00
committed by GitHub
parent 73bf91d7e1
commit 16fa774012
6 changed files with 24 additions and 9 deletions

View File

@ -1,10 +1,10 @@
import { problem44 } from '../Problem044.js'
describe('checking nth prime number', () => {
it('should be invalid input if number is negative', () => {
test('should be invalid input if number is negative', () => {
expect(() => problem44(-3)).toThrowError('Invalid Input')
})
it('should be invalid input if number is 0', () => {
test('should be invalid input if number is 0', () => {
expect(() => problem44(0)).toThrowError('Invalid Input')
})
// Project Euler Condition Check
@ -12,6 +12,7 @@ describe('checking nth prime number', () => {
expect(problem44(1)).toBe(5482660)
})
// Project Euler Second Value for Condition Check
// FIXME skip this test for now because it runs very long and clogs up the CI & pre-commit hook
test('if the number is greater or equal to 2167', () => {
expect(problem44(2167)).toBe(8476206790)
})