Troubleshooting
Common Issues
Jest module mocking
This is one of the most common and almost the only issue that you will likely run into when writing or maintaining Reassure's Jest test files.
Since performance tests are not (currently) checked and maintained regularly, it's likely for a performance test (*.perf-test.*
) file to become outdated, unlike a regular Jest unit test file (*.test.*
).
Make sure to go through each test case in the performance test file, and all check that all module mocks are valid. Remember that a Reassure test is mostly a regular Jest test file, meaning that all rules and requirements of writing a valid Jest test file still apply, in addition to using Reassure's API properly.