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
I have written a test that uses beforeAll to insert 3 records to jest-dynamodb. I wrote 3 simple tests that expect a certain number of results for each test. These work great locally, with everything passing.
However, when I run the exact same tests and cde on our Jenkins CI/CD server, the test fail with the expectant number of results being wrong.
What is even stranger is that after several attempts, the tests ran successfully, only for them to fail again afterwards, with no modification to the code.
I'm using ts-jest as well, and I make sure to run the tests (*.test.ts files) before compiling the index.ts files.
The text was updated successfully, but these errors were encountered:
I'm with the same problems using code build. I'm just inserting the records in my second test but my fist test fail with the data that are inserted on the second one.
I have written a test that uses
beforeAll
to insert 3 records to jest-dynamodb. I wrote 3 simple tests that expect a certain number of results for each test. These work great locally, with everything passing.However, when I run the exact same tests and cde on our Jenkins CI/CD server, the test fail with the expectant number of results being wrong.
What is even stranger is that after several attempts, the tests ran successfully, only for them to fail again afterwards, with no modification to the code.
I'm using
ts-jest
as well, and I make sure to run the tests (*.test.ts files) before compiling the index.ts files.The text was updated successfully, but these errors were encountered: