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,
    })
  }
)
