cra-template-pi
Version:
A quick start Create React App with many auto implemented features
14 lines (12 loc) • 382 B
text/typescript
import '@testing-library/cypress/add-commands'
import fixtures, { TCarFixturePath } from '../utils/fixtures'
import { getMatchingPath } from '../utils/testPathUtils'
// TODO(ProjectSetup): to be deleted
Cypress.Commands.add(
'interceptGetCars',
(fixture: TCarFixturePath = fixtures.car.dacia) => {
cy.intercept('GET', getMatchingPath('cars'), {
fixture,
})
}
)