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
How do one does transactional testing of Lucid models in test cases.
Description
As japa is capable of running multiple testcases in parallel, it would be very dangerous that the data set of testing is polluting the data set of another test case. And parallelization also means that the migrations can't be done for each test group.
Login Controller
✖ ensure login works with valid credentials
Error: expected 200 "OK", got 400 "Bad Request"
Relevant Information
It appears the request happening through japa is not on same node request where the main test case is running hece the request is not in same transactional reference
The text was updated successfully, but these errors were encountered:
Prerequisites
How do one does transactional testing of Lucid models in test cases.
Description
As japa is capable of running multiple testcases in parallel, it would be very dangerous that the data set of testing is polluting the data set of another test case. And parallelization also means that the migrations can't be done for each test group.
I tried the following but failed
LoginController.ts
Japa test file
Package version
Error Message & Stack Trace
Relevant Information
It appears the request happening through japa is not on same node request where the main test case is running hece the request is not in same transactional reference
The text was updated successfully, but these errors were encountered: