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

jest test runner throws node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message); #50383

Closed
MaissaTouili opened this issue Oct 25, 2023 · 6 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. net Issues and PRs related to the net subsystem.

Comments

@MaissaTouili
Copy link

Version

Node.js v20.8.1

Platform

Windows

Subsystem

jest

What steps will reproduce the bug?

image
create a jest unit test for a react functionnal component and run in watch mode

How often does it reproduce? Is there a required condition?

I have like 50 jest unit tests and 10 of them are not even running

What is the expected behavior? Why is that the expected behavior?

test should run the suite
image

What do you see instead?

I don't use another library instead I have a coverage with jest so need this to be fixed

Additional information

No response

@mertcanaltin mertcanaltin added the test_runner Issues and PRs related to the test runner subsystem. label Oct 25, 2023
@bnoordhuis
Copy link
Member

@ShogunPanda

@ShogunPanda
Copy link
Contributor

@bnoordhuis Thanks for the heads up.
I'm narrowing down this bug to a probable conflict in TLS.

@MaissaTouili Are your jest tests using TLS?

@MaissaTouili
Copy link
Author

MaissaTouili commented Oct 27, 2023

@bnoordhuis Thanks for the heads up. I'm narrowing down this bug to a probable conflict in TLS.

@MaissaTouili Are your jest tests using TLS?

@ShogunPanda no I am not using TLS in my jest tests also I am using a simple jest configuration nothing configured on the server level : "jest": {
"collectCoverageFrom": [
"src//*.{ts,tsx}",
"!src/
/.stories.tsx",
"!src/serviceWorker.ts",
"!src/utils/test-utils.tsx"
],
"coverageReporters": [
"html"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"html",
"json"
],
"moduleNameMapper": {
"\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
},
"modulePaths": [
"/src"
],
"setupFiles": [
"./src/setupMocks.ts"
],
"setupFilesAfterEnv": [
"./src/setupTests.ts"
],
"snapshotFormat": {
"escapeString": true,
"printBasicPrototype": true
},
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"testEnvironment": "jsdom",
"testMatch": [
"**/+(
.)+(spec|test).+(ts|js)?(x)"
],
"testTimeout": 15000,
"transform": {
"\.[jt]sx?$": "babel-jest",
"^.+\.(ts|js|html)$": "ts-jest"
}
},

@cjihrig cjihrig removed the test_runner Issues and PRs related to the test runner subsystem. label Nov 16, 2023
@tniessen tniessen added net Issues and PRs related to the net subsystem. duplicate Issues and PRs that are duplicates of other issues or PRs. labels Dec 2, 2023
@tniessen
Copy link
Member

tniessen commented Dec 2, 2023

I am going to close this as a duplicate of #48763, which is due to #44731. cc @ShogunPanda

@tniessen tniessen closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
@ShogunPanda
Copy link
Contributor

This should have been fixed in #51045. Once it gets in 21.x or 20.x please let me know if you have additional problems.

@MaissaTouili
Copy link
Author

MaissaTouili commented Jan 17, 2024 via email

joshlarson added a commit to mbta/skate that referenced this issue Feb 14, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 21, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

No branches or pull requests

6 participants