UNPKG
@revoloo/cypress6
Version:
latest (1.0.0)
1.0.0
Cypress.io end to end testing tool
github.com/cypress-io/cypress
cypress-io/cypress
@revoloo/cypress6
/
npm
/
vite-dev-server
/
cypress
/
components
/
react-no-jsx.spec.jsx
14 lines
(11 loc)
•
261 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
React
from
'react'
import
{ mount }
from
'@cypress/react'
const
Comp
= (
) => {
return
<
div
>
Hello world!
</
div
>
}
describe
(
'React'
,
() =>
{
it
(
'renders a react component'
,
() =>
{
mount
(
<
Comp
/>
) cy.
get
(
'div'
).
contains
(
'Hello world'
) }) })