Performing a Cypress component test, I load a fixture in a before hook.
The fixture loads, but disappears after the first test.
before(() => {
cy.fixture('my-fixture').as('fixture')
})
it('test1', function() {
mount(component, {
propsData: {'data': this.fixture},
})
})
it('test2', function() {
mount(component, {
propsData: {'data': this.fixture}, // undefined
})
})
How do I fix the fixture?