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 migratenpm test - runs jest
npm test:ci - runs both jest and cypress
npm run cypress:componentcypress open --component --browser chromecypress run --component --browser chromecypress run --component --spec="src/components/*.cy.*"
Optional