backtracking/test/generateparentheses.test.ts:1:37 - error TS2307: Cannot find module '../generateParentheses' or its corresponding type declarations.
1 import { generateParentheses } from "../generateParentheses";
~~~~~~~~~~~~~~~~~~~~~~~~
backtracking/test/all_combinations_of_size_k.test.ts:1:38 - error TS2307: Cannot find module '../all-combinations-of-size-k' or its corresponding type declarations.
1 import { generateCombinations } from "../all-combinations-of-size-k";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
expect(received).toEqual(expected) // deep equality
- Expected - 11
+ Received + 44
Array [
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 8,
- 9,
- 10,
- 12,
- 15,
+ Object {
+ "done": false,
+ "value": 1,
+ },
+ Object {
+ "done": false,
+ "value": 2,
+ },
+ Object {
+ "done": false,
+ "value": 3,
+ },
+ Object {
+ "done": false,
+ "value": 4,
+ },
+ Object {
+ "done": false,
+ "value": 5,
+ },
+ Object {
+ "done": false,
+ "value": 6,
+ },
+ Object {
+ "done": false,
+ "value": 8,
+ },
+ Object {
+ "done": false,
+ "value": 9,
+ },
+ Object {
+ "done": false,
+ "value": 10,
+ },
+ Object {
+ "done": false,
+ "value": 12,
+ },
+ Object {
+ "done": false,
+ "value": 15,
+ },
]
3 | test('Ugly Numbers', () => {
4 | const uglyNumbers = UglyNumbers();
> 5 | expect(Array(11).fill(undefined).map(() => uglyNumbers.next())).toEqual([1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15]);
| ^
6 | })
7 |
at Object.<anonymous> (maths/test/ugly_numbers.test.ts:5:67)
All test cases should pass and all the build for each and every PRs should run successfully !
But in this case test cases are faling and build is failing due this.
need to fix it.