Hello, i have a problem while running two tests in...
# pact-js
b
Hello, i have a problem while running two tests in the same file using jest, for some reasons pact file is being overriden by last test only, how to disable pact file override ? Imjust PactV3 spec
my test structure in jest is like :
describe(some endpoint) {
it(successfull scenario) {
}
it(negative scenario) {
}
}
and it will only save negative scenario in pact file
y
Are the descriptions and states unique between the tests? I imagine one is clobbering the other. You probably need to ensure these are unique per test
m
Perhaps you could share the test so we can help?
b
states are the same
Ok seems like reviewing my test naming helped
it seems that uponReceiving: "a request to update a dashboard", was not unique
👍 1