https://cypress.io logo
Hi everyone. Im currently using the `cypress-data-...
# best-practices
d
Hi everyone. Im currently using the
cypress-data-session
(https://github.com/bahmutov/cypress-data-session) for creating data in my E2Es. Recently I noticed that the state of
this
is not shared through the specs of the suite when the dataSession is used inside the
before
hook. I'm not sure why this is done but, although my tests do share the same data - which could be thought as a bad practice - they are being treated as the same test, and I only use the
it
to be able to have better traceability, as I plan to add an after:run hook later and sync the results with Jira. I also wanted to be able to get the retry counter data inside that hook, because I'm logging all data created in files with unique names, and would like to have the data created per retry logged for better debugging.