You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the integration tests would run parallel, the initialization could bring up flaky tests because the commonly used mockedInputMap could bring up race conditions...
Currently the integration test setup in package.json calls jest --runInBand --testPathPattern='integrationtest.test.ts'
Situation
In our integration tests for the SecHub github action, we use currently a field
mockedInputMap
:sechub/github-actions/scan/__test__/integrationtest.test.ts
Lines 86 to 96 in 987f2a5
Each integrtion test calls this method!
When the integration tests would run parallel, the initialization could bring up flaky tests because the commonly used
mockedInputMap
could bring up race conditions...Currently the integration test setup in
package.json
callsjest --runInBand --testPathPattern='integrationtest.test.ts'
reading https://archive.jestjs.io/docs/en/24.x/cli#--runinband :
But if somebody runs the tests not with the
--runInBand
option, the test will become flaky!Wanted
Even without
--runInBand
the tests shall be not flakySolution
initInputMap()
to return a new created mapuse there a real inputMapResolver which resolves data from github core...
The text was updated successfully, but these errors were encountered: