From db7ab370d9b685b007c7465e7dbb47aa78221e16 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Tue, 9 Apr 2024 15:23:47 -0400 Subject: [PATCH] [REFACTOR] Eslint warnings fixed --- src/hackerrank/implementation/betweenTwoSets.test.ts | 1 + src/hackerrank/implementation/birthday.test.ts | 1 + src/hackerrank/implementation/bonAppetit.test.ts | 1 + src/hackerrank/implementation/breakingRecords.test.ts | 1 + src/hackerrank/implementation/countApplesAndOranges.test.ts | 1 + src/hackerrank/implementation/countingValleys.test.ts | 1 + src/hackerrank/implementation/dayOfProgrammer.test.ts | 1 + src/hackerrank/implementation/divisibleSumPairs.test.ts | 1 + src/hackerrank/implementation/gradingStudents.test.ts | 1 + src/hackerrank/implementation/jumpingOnClouds.test.ts | 1 + src/hackerrank/implementation/kangaroo.test.ts | 1 + src/hackerrank/implementation/migratoryBirds.test.ts | 1 + src/hackerrank/implementation/minimumAbsoluteDifference.test.ts | 1 + src/hackerrank/implementation/repeatedString.test.ts | 1 + src/hackerrank/implementation/sockMerchant.test.ts | 1 + src/hackerrank/projecteuler/euler001.test.ts | 1 + src/hackerrank/warmup/aVeryBigSum.test.ts | 1 + src/hackerrank/warmup/birthdayCakeCandles.test.ts | 1 + src/hackerrank/warmup/compareTriplets.test.ts | 1 + src/hackerrank/warmup/diagonalDifference.test.ts | 1 + src/hackerrank/warmup/miniMaxSum.test.ts | 1 + src/hackerrank/warmup/plusMinus.test.ts | 1 + src/hackerrank/warmup/simpleArraySum.test.ts | 1 + src/hackerrank/warmup/solveMeFirst.test.ts | 1 + src/hackerrank/warmup/staircase.test.ts | 1 + src/hackerrank/warmup/timeConversion.test.ts | 1 + src/hello_world.test.ts | 2 ++ src/logger.test.ts | 1 + src/problem0000.test.ts | 1 + src/projecteuler/helpers/bigNumbers.test.ts | 2 ++ src/projecteuler/helpers/collatz.test.ts | 2 ++ src/projecteuler/helpers/divisors.test.ts | 2 ++ src/projecteuler/helpers/isPalindrome.test.ts | 2 ++ src/projecteuler/helpers/matrix.test.ts | 2 ++ src/projecteuler/helpers/minmax.test.ts | 2 ++ src/projecteuler/helpers/numberToWord.test.ts | 2 ++ src/projecteuler/helpers/product.test.ts | 2 ++ src/projecteuler/helpers/sum.test.ts | 2 ++ src/projecteuler/helpers/wordScore.test.ts | 2 ++ src/projecteuler/lib/BNode.test.ts | 1 + src/projecteuler/lib/BNodeBuilder.test.ts | 1 + src/projecteuler/problem0001.test.ts | 1 + src/projecteuler/problem0002.test.ts | 1 + src/projecteuler/problem0003.test.ts | 1 + src/projecteuler/problem0004.test.ts | 1 + src/projecteuler/problem0005-simple.test.ts | 1 + src/projecteuler/problem0005.bruteforce-test.ts | 1 + src/projecteuler/problem0005.test.ts | 1 + src/projecteuler/problem0006.test.ts | 1 + src/projecteuler/problem0007.bruteforce-test.ts | 1 + src/projecteuler/problem0007.test.ts | 1 + src/projecteuler/problem0008.test.ts | 1 + src/projecteuler/problem0009.test.ts | 1 + src/projecteuler/problem0010.bruteforce-test.ts | 1 + src/projecteuler/problem0010.test.ts | 1 + src/projecteuler/problem0011.test.ts | 1 + src/projecteuler/problem0012.test.ts | 1 + src/projecteuler/problem0013.test.ts | 1 + src/projecteuler/problem0014.test.ts | 1 + src/projecteuler/problem0015.test.ts | 1 + src/projecteuler/problem0016.test.ts | 1 + src/projecteuler/problem0017.test.ts | 1 + src/projecteuler/problem0018.test.ts | 1 + src/projecteuler/problem0019.test.ts | 1 + src/projecteuler/problem0020.test.ts | 2 ++ src/projecteuler/problem0021.test.ts | 1 + src/projecteuler/problem0022.test.ts | 1 + src/projecteuler/problem0023.test.ts | 1 + src/projecteuler/problem0024.test.ts | 1 + src/projecteuler/problem0025.test.ts | 1 + 70 files changed, 82 insertions(+) diff --git a/src/hackerrank/implementation/betweenTwoSets.test.ts b/src/hackerrank/implementation/betweenTwoSets.test.ts index 759bf94e..5e81e79e 100644 --- a/src/hackerrank/implementation/betweenTwoSets.test.ts +++ b/src/hackerrank/implementation/betweenTwoSets.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { getTotalX, factorOf, isFactor } from './betweenTwoSets'; diff --git a/src/hackerrank/implementation/birthday.test.ts b/src/hackerrank/implementation/birthday.test.ts index ccf14c90..df86eb62 100644 --- a/src/hackerrank/implementation/birthday.test.ts +++ b/src/hackerrank/implementation/birthday.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { birthday } from './birthday'; diff --git a/src/hackerrank/implementation/bonAppetit.test.ts b/src/hackerrank/implementation/bonAppetit.test.ts index dc474b50..5fb6f841 100644 --- a/src/hackerrank/implementation/bonAppetit.test.ts +++ b/src/hackerrank/implementation/bonAppetit.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { bonAppetit } from './bonAppetit'; diff --git a/src/hackerrank/implementation/breakingRecords.test.ts b/src/hackerrank/implementation/breakingRecords.test.ts index f29f9614..4993ce6d 100644 --- a/src/hackerrank/implementation/breakingRecords.test.ts +++ b/src/hackerrank/implementation/breakingRecords.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { breakingRecords } from './breakingRecords'; diff --git a/src/hackerrank/implementation/countApplesAndOranges.test.ts b/src/hackerrank/implementation/countApplesAndOranges.test.ts index dbcd6f7a..48fb1aea 100644 --- a/src/hackerrank/implementation/countApplesAndOranges.test.ts +++ b/src/hackerrank/implementation/countApplesAndOranges.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { countApplesAndOranges } from './countApplesAndOranges'; diff --git a/src/hackerrank/implementation/countingValleys.test.ts b/src/hackerrank/implementation/countingValleys.test.ts index a68662b3..7a715fd6 100644 --- a/src/hackerrank/implementation/countingValleys.test.ts +++ b/src/hackerrank/implementation/countingValleys.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { countingValleys } from './countingValleys'; diff --git a/src/hackerrank/implementation/dayOfProgrammer.test.ts b/src/hackerrank/implementation/dayOfProgrammer.test.ts index ee7f52e6..23f8978d 100644 --- a/src/hackerrank/implementation/dayOfProgrammer.test.ts +++ b/src/hackerrank/implementation/dayOfProgrammer.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { dayOfProgrammer } from './dayOfProgrammer'; diff --git a/src/hackerrank/implementation/divisibleSumPairs.test.ts b/src/hackerrank/implementation/divisibleSumPairs.test.ts index e17b034a..929e1382 100644 --- a/src/hackerrank/implementation/divisibleSumPairs.test.ts +++ b/src/hackerrank/implementation/divisibleSumPairs.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { divisibleSumPairs } from './divisibleSumPairs'; diff --git a/src/hackerrank/implementation/gradingStudents.test.ts b/src/hackerrank/implementation/gradingStudents.test.ts index 64334891..40c1b2b8 100644 --- a/src/hackerrank/implementation/gradingStudents.test.ts +++ b/src/hackerrank/implementation/gradingStudents.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { gradingStudents } from './gradingStudents'; diff --git a/src/hackerrank/implementation/jumpingOnClouds.test.ts b/src/hackerrank/implementation/jumpingOnClouds.test.ts index c161d369..d59b3c8a 100644 --- a/src/hackerrank/implementation/jumpingOnClouds.test.ts +++ b/src/hackerrank/implementation/jumpingOnClouds.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { jumpingOnClouds } from './jumpingOnClouds'; diff --git a/src/hackerrank/implementation/kangaroo.test.ts b/src/hackerrank/implementation/kangaroo.test.ts index 05b7bb40..7dc8c23a 100644 --- a/src/hackerrank/implementation/kangaroo.test.ts +++ b/src/hackerrank/implementation/kangaroo.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { kangaroo } from './kangaroo'; diff --git a/src/hackerrank/implementation/migratoryBirds.test.ts b/src/hackerrank/implementation/migratoryBirds.test.ts index 8b52414c..ab6e7205 100644 --- a/src/hackerrank/implementation/migratoryBirds.test.ts +++ b/src/hackerrank/implementation/migratoryBirds.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { migratoryBirds } from './migratoryBirds'; diff --git a/src/hackerrank/implementation/minimumAbsoluteDifference.test.ts b/src/hackerrank/implementation/minimumAbsoluteDifference.test.ts index aa541d5a..d2371149 100644 --- a/src/hackerrank/implementation/minimumAbsoluteDifference.test.ts +++ b/src/hackerrank/implementation/minimumAbsoluteDifference.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { minimumAbsoluteDifference } from './minimumAbsoluteDifference'; diff --git a/src/hackerrank/implementation/repeatedString.test.ts b/src/hackerrank/implementation/repeatedString.test.ts index 3076b84f..931cdd31 100644 --- a/src/hackerrank/implementation/repeatedString.test.ts +++ b/src/hackerrank/implementation/repeatedString.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { repeatedString } from './repeatedString'; diff --git a/src/hackerrank/implementation/sockMerchant.test.ts b/src/hackerrank/implementation/sockMerchant.test.ts index a691e2cb..768cbb6f 100644 --- a/src/hackerrank/implementation/sockMerchant.test.ts +++ b/src/hackerrank/implementation/sockMerchant.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { sockMerchant } from './sockMerchant'; diff --git a/src/hackerrank/projecteuler/euler001.test.ts b/src/hackerrank/projecteuler/euler001.test.ts index 34e04b9c..31729c39 100755 --- a/src/hackerrank/projecteuler/euler001.test.ts +++ b/src/hackerrank/projecteuler/euler001.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { euler001 } from './euler001'; diff --git a/src/hackerrank/warmup/aVeryBigSum.test.ts b/src/hackerrank/warmup/aVeryBigSum.test.ts index 4207a5a2..d7e51c81 100644 --- a/src/hackerrank/warmup/aVeryBigSum.test.ts +++ b/src/hackerrank/warmup/aVeryBigSum.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { aVeryBigSum } from './aVeryBigSum'; diff --git a/src/hackerrank/warmup/birthdayCakeCandles.test.ts b/src/hackerrank/warmup/birthdayCakeCandles.test.ts index 32a93af0..0141f456 100644 --- a/src/hackerrank/warmup/birthdayCakeCandles.test.ts +++ b/src/hackerrank/warmup/birthdayCakeCandles.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { birthdayCakeCandles } from './birthdayCakeCandles'; diff --git a/src/hackerrank/warmup/compareTriplets.test.ts b/src/hackerrank/warmup/compareTriplets.test.ts index 1cf1c42a..6f5b30d7 100644 --- a/src/hackerrank/warmup/compareTriplets.test.ts +++ b/src/hackerrank/warmup/compareTriplets.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { compareTriplets } from './compareTriplets'; diff --git a/src/hackerrank/warmup/diagonalDifference.test.ts b/src/hackerrank/warmup/diagonalDifference.test.ts index dd86ecee..4e3c6ca8 100644 --- a/src/hackerrank/warmup/diagonalDifference.test.ts +++ b/src/hackerrank/warmup/diagonalDifference.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { diagonalDifference } from './diagonalDifference'; diff --git a/src/hackerrank/warmup/miniMaxSum.test.ts b/src/hackerrank/warmup/miniMaxSum.test.ts index dca37d1a..7d654c49 100644 --- a/src/hackerrank/warmup/miniMaxSum.test.ts +++ b/src/hackerrank/warmup/miniMaxSum.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { miniMaxSum } from './miniMaxSum'; diff --git a/src/hackerrank/warmup/plusMinus.test.ts b/src/hackerrank/warmup/plusMinus.test.ts index 6c057595..6cbdb556 100644 --- a/src/hackerrank/warmup/plusMinus.test.ts +++ b/src/hackerrank/warmup/plusMinus.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { plusMinus } from './plusMinus'; diff --git a/src/hackerrank/warmup/simpleArraySum.test.ts b/src/hackerrank/warmup/simpleArraySum.test.ts index e262049d..0249bded 100644 --- a/src/hackerrank/warmup/simpleArraySum.test.ts +++ b/src/hackerrank/warmup/simpleArraySum.test.ts @@ -2,6 +2,7 @@ import { logger as console } from '../../logger'; import { simpleArraySum } from './simpleArraySum'; +import { describe, expect, it } from '@jest/globals'; describe('problem simpleArraySum', () => { it('problem simpleArraySum Test case 0', () => { expect.assertions(1); diff --git a/src/hackerrank/warmup/solveMeFirst.test.ts b/src/hackerrank/warmup/solveMeFirst.test.ts index d539da35..ba01b48a 100644 --- a/src/hackerrank/warmup/solveMeFirst.test.ts +++ b/src/hackerrank/warmup/solveMeFirst.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { solveMeFirst } from './solveMeFirst'; diff --git a/src/hackerrank/warmup/staircase.test.ts b/src/hackerrank/warmup/staircase.test.ts index e1594c31..9f204b18 100644 --- a/src/hackerrank/warmup/staircase.test.ts +++ b/src/hackerrank/warmup/staircase.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../../logger'; import { staircase } from './staircase'; diff --git a/src/hackerrank/warmup/timeConversion.test.ts b/src/hackerrank/warmup/timeConversion.test.ts index 76df3081..6fd38c0e 100644 --- a/src/hackerrank/warmup/timeConversion.test.ts +++ b/src/hackerrank/warmup/timeConversion.test.ts @@ -2,6 +2,7 @@ import { logger as console } from '../../logger'; import { timeConversion } from './timeConversion'; +import { describe, expect, it } from '@jest/globals'; describe('timeConversion', () => { it('timeConversion example', () => { expect.assertions(2); diff --git a/src/hello_world.test.ts b/src/hello_world.test.ts index 073ac520..7ad0edbe 100644 --- a/src/hello_world.test.ts +++ b/src/hello_world.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { hello } from '../src/hello_world'; describe('test hello', () => { diff --git a/src/logger.test.ts b/src/logger.test.ts index 98a67118..03e6eb26 100644 --- a/src/logger.test.ts +++ b/src/logger.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from './logger'; describe('logger', () => { diff --git a/src/problem0000.test.ts b/src/problem0000.test.ts index 2fafe84b..1d433c21 100644 --- a/src/problem0000.test.ts +++ b/src/problem0000.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from './logger'; import { problem0000 } from './problem0000'; diff --git a/src/projecteuler/helpers/bigNumbers.test.ts b/src/projecteuler/helpers/bigNumbers.test.ts index c634a151..b38e1a6b 100644 --- a/src/projecteuler/helpers/bigNumbers.test.ts +++ b/src/projecteuler/helpers/bigNumbers.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { bigMultiply, bigMultiplyRowToString, diff --git a/src/projecteuler/helpers/collatz.test.ts b/src/projecteuler/helpers/collatz.test.ts index dc53e5b7..5e01ef7d 100644 --- a/src/projecteuler/helpers/collatz.test.ts +++ b/src/projecteuler/helpers/collatz.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { collatz } from './'; // 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1 diff --git a/src/projecteuler/helpers/divisors.test.ts b/src/projecteuler/helpers/divisors.test.ts index afdaaa2e..84132d34 100644 --- a/src/projecteuler/helpers/divisors.test.ts +++ b/src/projecteuler/helpers/divisors.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { abundance, divisors, diff --git a/src/projecteuler/helpers/isPalindrome.test.ts b/src/projecteuler/helpers/isPalindrome.test.ts index 4ae8dc37..1affb7a8 100644 --- a/src/projecteuler/helpers/isPalindrome.test.ts +++ b/src/projecteuler/helpers/isPalindrome.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { isPalindrome } from './'; describe('number is Palindrome', () => { diff --git a/src/projecteuler/helpers/matrix.test.ts b/src/projecteuler/helpers/matrix.test.ts index 7b562398..cedb8cd1 100644 --- a/src/projecteuler/helpers/matrix.test.ts +++ b/src/projecteuler/helpers/matrix.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { matrix } from './'; describe('matrix generator', () => { diff --git a/src/projecteuler/helpers/minmax.test.ts b/src/projecteuler/helpers/minmax.test.ts index 1f80ec85..4503c98c 100644 --- a/src/projecteuler/helpers/minmax.test.ts +++ b/src/projecteuler/helpers/minmax.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { minimum, maximum } from './'; describe('maximum and minimum', () => { diff --git a/src/projecteuler/helpers/numberToWord.test.ts b/src/projecteuler/helpers/numberToWord.test.ts index 5feca96e..44897228 100644 --- a/src/projecteuler/helpers/numberToWord.test.ts +++ b/src/projecteuler/helpers/numberToWord.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { numberToWord } from './'; describe('transform numbers to word representation in british english', () => { diff --git a/src/projecteuler/helpers/product.test.ts b/src/projecteuler/helpers/product.test.ts index f0eced39..f172f43f 100644 --- a/src/projecteuler/helpers/product.test.ts +++ b/src/projecteuler/helpers/product.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { product } from './'; describe('product of all numbers in array', () => { diff --git a/src/projecteuler/helpers/sum.test.ts b/src/projecteuler/helpers/sum.test.ts index 37233d3a..3d719c2f 100644 --- a/src/projecteuler/helpers/sum.test.ts +++ b/src/projecteuler/helpers/sum.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { sum } from './'; describe('sum all numbers in array', () => { diff --git a/src/projecteuler/helpers/wordScore.test.ts b/src/projecteuler/helpers/wordScore.test.ts index bfa2c157..0a072e59 100644 --- a/src/projecteuler/helpers/wordScore.test.ts +++ b/src/projecteuler/helpers/wordScore.test.ts @@ -1,3 +1,5 @@ +import { describe, expect, it } from '@jest/globals'; + import { wordScore } from './'; describe('wordScore', () => { diff --git a/src/projecteuler/lib/BNode.test.ts b/src/projecteuler/lib/BNode.test.ts index 1bcb4c90..368196f2 100644 --- a/src/projecteuler/lib/BNode.test.ts +++ b/src/projecteuler/lib/BNode.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { BNode } from './BNode'; describe('class BNode for binary trees', () => { diff --git a/src/projecteuler/lib/BNodeBuilder.test.ts b/src/projecteuler/lib/BNodeBuilder.test.ts index 36033b34..2e7d970a 100644 --- a/src/projecteuler/lib/BNodeBuilder.test.ts +++ b/src/projecteuler/lib/BNodeBuilder.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { BNode } from './BNode'; import { BNodeBuilder } from './BNodeBuilder'; diff --git a/src/projecteuler/problem0001.test.ts b/src/projecteuler/problem0001.test.ts index 85f83b2a..60d7c21b 100644 --- a/src/projecteuler/problem0001.test.ts +++ b/src/projecteuler/problem0001.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0001 } from './problem0001'; diff --git a/src/projecteuler/problem0002.test.ts b/src/projecteuler/problem0002.test.ts index fb6bb370..8625abac 100644 --- a/src/projecteuler/problem0002.test.ts +++ b/src/projecteuler/problem0002.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0002 } from './problem0002'; diff --git a/src/projecteuler/problem0003.test.ts b/src/projecteuler/problem0003.test.ts index e25b363d..3f87f785 100644 --- a/src/projecteuler/problem0003.test.ts +++ b/src/projecteuler/problem0003.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0003 } from './problem0003'; diff --git a/src/projecteuler/problem0004.test.ts b/src/projecteuler/problem0004.test.ts index 30994f77..f7a58259 100644 --- a/src/projecteuler/problem0004.test.ts +++ b/src/projecteuler/problem0004.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0004 } from './problem0004'; diff --git a/src/projecteuler/problem0005-simple.test.ts b/src/projecteuler/problem0005-simple.test.ts index 1c02a9b3..955b41ac 100644 --- a/src/projecteuler/problem0005-simple.test.ts +++ b/src/projecteuler/problem0005-simple.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0005Simple } from './problem0005-simple'; diff --git a/src/projecteuler/problem0005.bruteforce-test.ts b/src/projecteuler/problem0005.bruteforce-test.ts index b7fd77f9..4a9bac11 100644 --- a/src/projecteuler/problem0005.bruteforce-test.ts +++ b/src/projecteuler/problem0005.bruteforce-test.ts @@ -2,6 +2,7 @@ import { logger as console } from '../logger'; import { problem0005Simple } from './problem0005-simple'; +import { describe, expect, it } from '@jest/globals'; describe('problem 0005 simple', () => { it('problem 0005 simple solution found by BRUTE FORCE FULL', async () => { expect.assertions(1); diff --git a/src/projecteuler/problem0005.test.ts b/src/projecteuler/problem0005.test.ts index 7db62de8..a572667c 100644 --- a/src/projecteuler/problem0005.test.ts +++ b/src/projecteuler/problem0005.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0005 } from './problem0005'; diff --git a/src/projecteuler/problem0006.test.ts b/src/projecteuler/problem0006.test.ts index 2eff449e..3c57d954 100644 --- a/src/projecteuler/problem0006.test.ts +++ b/src/projecteuler/problem0006.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0006 } from './problem0006'; diff --git a/src/projecteuler/problem0007.bruteforce-test.ts b/src/projecteuler/problem0007.bruteforce-test.ts index c557c279..732192f0 100644 --- a/src/projecteuler/problem0007.bruteforce-test.ts +++ b/src/projecteuler/problem0007.bruteforce-test.ts @@ -6,6 +6,7 @@ import { logger as console } from '../logger'; import { problem0007 } from './problem0007'; +import { describe, expect, it } from '@jest/globals'; describe('problem 0007 BRUTEFORCE', () => { it('problem 0007 BRUTEFORCE large', () => { expect.assertions(1); diff --git a/src/projecteuler/problem0007.test.ts b/src/projecteuler/problem0007.test.ts index 07bc7db3..b344e968 100644 --- a/src/projecteuler/problem0007.test.ts +++ b/src/projecteuler/problem0007.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0007 } from './problem0007'; diff --git a/src/projecteuler/problem0008.test.ts b/src/projecteuler/problem0008.test.ts index b1596568..fe7c5ef3 100644 --- a/src/projecteuler/problem0008.test.ts +++ b/src/projecteuler/problem0008.test.ts @@ -2,6 +2,7 @@ import { logger as console } from '../logger'; import { problem0008 } from './problem0008'; +import { describe, expect, it } from '@jest/globals'; describe('problem 0008', () => { it('problem 0008 solution found', () => { expect.assertions(1); diff --git a/src/projecteuler/problem0009.test.ts b/src/projecteuler/problem0009.test.ts index 3010ab17..69a07fb4 100644 --- a/src/projecteuler/problem0009.test.ts +++ b/src/projecteuler/problem0009.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0009 } from './problem0009'; diff --git a/src/projecteuler/problem0010.bruteforce-test.ts b/src/projecteuler/problem0010.bruteforce-test.ts index e677e4f6..ef8b423b 100644 --- a/src/projecteuler/problem0010.bruteforce-test.ts +++ b/src/projecteuler/problem0010.bruteforce-test.ts @@ -4,6 +4,7 @@ import { logger as console } from '../logger'; import { problem0010 } from './problem0010'; +import { describe, expect, it } from '@jest/globals'; describe('problem 0010', () => { it('problem 0010 solution found BRUTE FORCE', () => { expect.assertions(1); diff --git a/src/projecteuler/problem0010.test.ts b/src/projecteuler/problem0010.test.ts index b45bc8ad..ce22279e 100644 --- a/src/projecteuler/problem0010.test.ts +++ b/src/projecteuler/problem0010.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0010 } from './problem0010'; diff --git a/src/projecteuler/problem0011.test.ts b/src/projecteuler/problem0011.test.ts index dd4a473d..4981fb89 100644 --- a/src/projecteuler/problem0011.test.ts +++ b/src/projecteuler/problem0011.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0011 } from './problem0011'; diff --git a/src/projecteuler/problem0012.test.ts b/src/projecteuler/problem0012.test.ts index 04d394bc..7d61625f 100644 --- a/src/projecteuler/problem0012.test.ts +++ b/src/projecteuler/problem0012.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0012 } from './problem0012'; diff --git a/src/projecteuler/problem0013.test.ts b/src/projecteuler/problem0013.test.ts index e642ac31..80bde4e3 100644 --- a/src/projecteuler/problem0013.test.ts +++ b/src/projecteuler/problem0013.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0013 } from './problem0013'; diff --git a/src/projecteuler/problem0014.test.ts b/src/projecteuler/problem0014.test.ts index 52115571..6b699775 100644 --- a/src/projecteuler/problem0014.test.ts +++ b/src/projecteuler/problem0014.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0014 } from './problem0014'; diff --git a/src/projecteuler/problem0015.test.ts b/src/projecteuler/problem0015.test.ts index a8c648fa..19d02f18 100644 --- a/src/projecteuler/problem0015.test.ts +++ b/src/projecteuler/problem0015.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0015 } from './problem0015'; diff --git a/src/projecteuler/problem0016.test.ts b/src/projecteuler/problem0016.test.ts index c5831f8d..ced13fd2 100644 --- a/src/projecteuler/problem0016.test.ts +++ b/src/projecteuler/problem0016.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0016 } from './problem0016'; diff --git a/src/projecteuler/problem0017.test.ts b/src/projecteuler/problem0017.test.ts index 222cbf5a..d32f4a6a 100644 --- a/src/projecteuler/problem0017.test.ts +++ b/src/projecteuler/problem0017.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0017 } from './problem0017'; diff --git a/src/projecteuler/problem0018.test.ts b/src/projecteuler/problem0018.test.ts index 451be3c8..cf016aed 100644 --- a/src/projecteuler/problem0018.test.ts +++ b/src/projecteuler/problem0018.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0018 } from './problem0018'; diff --git a/src/projecteuler/problem0019.test.ts b/src/projecteuler/problem0019.test.ts index 97565c84..ff8b3501 100644 --- a/src/projecteuler/problem0019.test.ts +++ b/src/projecteuler/problem0019.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { __SUNDAY__ } from '../constants'; diff --git a/src/projecteuler/problem0020.test.ts b/src/projecteuler/problem0020.test.ts index 25ef8233..b30da844 100644 --- a/src/projecteuler/problem0020.test.ts +++ b/src/projecteuler/problem0020.test.ts @@ -1,4 +1,6 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; + import { problem0020 } from './problem0020'; describe('problem 0020', () => { diff --git a/src/projecteuler/problem0021.test.ts b/src/projecteuler/problem0021.test.ts index d7ab5afd..4a13046f 100644 --- a/src/projecteuler/problem0021.test.ts +++ b/src/projecteuler/problem0021.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0021 } from './problem0021'; diff --git a/src/projecteuler/problem0022.test.ts b/src/projecteuler/problem0022.test.ts index 8f348737..52a099d7 100644 --- a/src/projecteuler/problem0022.test.ts +++ b/src/projecteuler/problem0022.test.ts @@ -4,6 +4,7 @@ // - src/data/p022_names.json // //////////////////////////////////////////////////////////////////////////// +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0022 } from './problem0022'; diff --git a/src/projecteuler/problem0023.test.ts b/src/projecteuler/problem0023.test.ts index 56bbd9e8..152b88db 100644 --- a/src/projecteuler/problem0023.test.ts +++ b/src/projecteuler/problem0023.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0023 } from './problem0023'; diff --git a/src/projecteuler/problem0024.test.ts b/src/projecteuler/problem0024.test.ts index e950cd9d..97ca004a 100644 --- a/src/projecteuler/problem0024.test.ts +++ b/src/projecteuler/problem0024.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0024 } from './problem0024'; diff --git a/src/projecteuler/problem0025.test.ts b/src/projecteuler/problem0025.test.ts index 49e3b0e3..05726911 100644 --- a/src/projecteuler/problem0025.test.ts +++ b/src/projecteuler/problem0025.test.ts @@ -1,3 +1,4 @@ +import { describe, expect, it } from '@jest/globals'; import { logger as console } from '../logger'; import { problem0025 } from './problem0025';