What's the difference between loading fixtures and importing it directly? #14299
Unanswered
LauraBeatris
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've started to use Cypress recently and in order to stub API responses, I'm using the fixtures API.
I've created many mocks based on JSON files, inside the
fixtures
folder. In order to load the fixtures, there're many approaches:But referring to the docs:
I would like to ask, what's the difference between loading fixtures using
cy.fixture
and importing it directly?Beta Was this translation helpful? Give feedback.
All reactions