Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests fail on jest version higher than 27.0.6 #1425

Closed
Ilyesbdlala opened this issue Nov 1, 2022 · 1 comment
Closed

Unit tests fail on jest version higher than 27.0.6 #1425

Ilyesbdlala opened this issue Nov 1, 2022 · 1 comment
Assignees
Labels
bug Bugs

Comments

@Ilyesbdlala
Copy link
Member

Ilyesbdlala commented Nov 1, 2022

🐞 Bug report

After the automatic upgrade of Jest to the latest version (29.2.1 at the time), we realized that our CI fails (Example). The temporary fix was to set Jest to known working version 27.0.6 (#1415). This resolved the issue. However, the use of an older version of Jest
allowed the use of vulnerable packages, as seen here and from the Dependabot from the package minimatch@3.0.4.

Steps To Reproduce

Run any hooks unit tests with a "newer" version of jest. It is not clear at which version exactly the issue starts to appear.

Expected behaviour

Tests should run successfully with newer Jest versions. Refactoring of tests is needed

Additional context

@Ilyesbdlala Ilyesbdlala added the bug Bugs label Nov 1, 2022
@Ilyesbdlala Ilyesbdlala self-assigned this Jan 23, 2023
Ilyesbdlala added a commit that referenced this issue Feb 1, 2023
…tests" folder exists

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Ilyesbdlala added a commit that referenced this issue Feb 1, 2023
…age.json and package-lock.json

jest: 27.0.6 --> 29.3.1
ts-jest: 27.03 --> 29.0.5
@types/jest: 26.0.24 --> 29.4.0
jest-runner-eslint: 0.10.1 --> 1.1.0

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Ilyesbdlala added a commit that referenced this issue Feb 1, 2023
… format of jest v29.3.1

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Ilyesbdlala added a commit that referenced this issue Feb 7, 2023
…tests" folder exists

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Ilyesbdlala added a commit that referenced this issue Feb 7, 2023
…age.json and package-lock.json

jest: 27.0.6 --> 29.3.1
ts-jest: 27.03 --> 29.0.5
@types/jest: 26.0.24 --> 29.4.0
jest-runner-eslint: 0.10.1 --> 1.1.0

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Ilyesbdlala added a commit that referenced this issue Feb 7, 2023
… format of jest v29.3.1

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Weltraumschaf pushed a commit that referenced this issue Feb 7, 2023
…tests" folder exists

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Weltraumschaf pushed a commit that referenced this issue Feb 7, 2023
…age.json and package-lock.json

jest: 27.0.6 --> 29.3.1
ts-jest: 27.03 --> 29.0.5
@types/jest: 26.0.24 --> 29.4.0
jest-runner-eslint: 0.10.1 --> 1.1.0

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Weltraumschaf pushed a commit that referenced this issue Feb 7, 2023
… format of jest v29.3.1

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
@Ilyesbdlala
Copy link
Member Author

Closed by #1567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs
Projects
Archived in project
Development

No branches or pull requests

1 participant