Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit bc9e239

Browse files
committed
feat: include cy.mount types with npm package
1 parent c69f6ac commit bc9e239

12 files changed

+11
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ All components are in [src](src) folder. All tests are in [cypress/integration](
126126

127127
## Related tools
128128

129-
Same feature for unit testing components from other framesworks using Cypress
129+
Same feature for unit testing components from other frameworks using Cypress
130130

131131
* [cypress-vue-unit-test](https://github.com/bahmutov/cypress-vue-unit-test)
132132
* [cypress-cycle-unit-test](https://github.com/bahmutov/cypress-cycle-unit-test)

cypress/integration/alert-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import HelloWorld from '../../src/stateless-alert.jsx'
44
import React from 'react'
55

cypress/integration/counter-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { Counter } from '../../src/counter.jsx'
44
import React from 'react'
55

cypress/integration/error-boundary-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { ErrorBoundary } from '../../src/error-boundary.jsx'
44
import React from 'react'
55

cypress/integration/hello-world-inline-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import React from 'react'
44
const HelloWorld = () => <p>Hello World!</p>
55
describe('HelloWorld component', () => {

cypress/integration/hello-world-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { HelloWorld } from '../../src/hello-world.jsx'
44
import React from 'react'
55

cypress/integration/hello-x-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { HelloX, HelloState } from '../../src/hello-x.jsx'
44
import React from 'react'
55

cypress/integration/stateless-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import HelloWorld from '../../src/stateless.jsx'
44
import React from 'react'
55

cypress/integration/transpiled-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { Transpiled } from '../../src/transpiled.jsx'
44
import React from 'react'
55

cypress/integration/users-spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="cypress" />
2-
/// <reference types="../support" />
2+
/// <reference types="../../lib" />
33
import { Users } from '../../src/users.jsx'
44
import React from 'react'
55

File renamed without changes.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dist",
1818
"lib"
1919
],
20+
"types": "lib",
2021
"keywords": [
2122
"react",
2223
"cypress",

0 commit comments

Comments
 (0)