mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 15:39:28 -05:00
5e4b638385
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
/// <reference types="cypress" />
|
|
/// <reference types="../../lib" />
|
|
|
|
import React from 'react'
|
|
import Button from './pure-component.jsx'
|
|
import { mount } from '@cypress/react'
|
|
|
|
/* eslint-env mocha */
|
|
describe('Button pure component', function () {
|
|
it('works', function () {
|
|
mount(<Button>Hello</Button>)
|
|
cy.contains('Hello')
|
|
})
|
|
})
|