Be careful when running all specs together

1 · Gleb Bahmutov · May 28, 2020, 9:23 p.m.
Example applicationSupport fileBefore hooksBefore hooks when running all specsBeforeEach hookSolutionExample applicationIn our example application we have two spec files and a support file.12345678repo/ cypress/ integration/ spec-a.js spec-b.js support/ index.js cypress.jsonThe spec files have two tests each.cypress/integration/spec-a.js123456789context('spec a', () => { it('works', function () { expect(1).to.equal(1) }) it('works 2', function () { expect(1).to.eq...