Tree Team
it('should show the button', () => {
cy.visit('https://www.familysearch.org')
cy.contains('FamilySearch').should('be.visible')
})
import Header from './Header'
it('should show the button', ()=>{
cy.mount(<Header />)
cy.contains('FamilySearch').should('be.visible')
})
Jest | Cypress | |
---|---|---|
Mocking | Module | Network only |
Debugging | node-debugger | in-browser |
Display | dom output | Fully rendered in browser |
npm i -g @fs/fr-cli
fr migrate
npm test - runs jest
npm test:ci - runs both jest and cypress
npm run cypress:component
cypress open --component --browser chrome
cypress run --component --browser chrome
cypress run --component --spec="src/components/*.cy.*"
Optional