Skip to content

[BUG]: some test cases are failing..... #176

Description

@dev-madhurendra

Description

`Summary of all failing tests
FAIL backtracking/test/generateparentheses.test.ts
● Test suite failed to run

backtracking/test/generateparentheses.test.ts:1:37 - error TS2307: Cannot find module '../generateParentheses' or its corresponding type declarations.

1 import { generateParentheses } from "../generateParentheses";
                                      ~~~~~~~~~~~~~~~~~~~~~~~~

FAIL backtracking/test/all_combinations_of_size_k.test.ts
● Test suite failed to run

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";
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

FAIL maths/test/ugly_numbers.test.ts
● Ugly Numbers

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)

Test Suites: 3 failed, 77 passed, 80 total
Tests: 1 failed, 691 passed, 692 total
Snapshots: 0 total
Time: 23.258 s
Ran all test suites.
Error: Process completed with exit code 1.`

Expected Behavior

All test cases should pass and all the build for each and every PRs should run successfully !

Actual Behavior

But in this case test cases are faling and build is failing due this.
need to fix it.

Steps to reproduce (if applicable)

No response

Specifications

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions