You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,6 @@ Spec | Description
115
115
[use-lodash-fp](cypress/component/basic/use-lodash-fp) | Imports and tests methods from `lodash/fp` dependency
116
116
[document-spec](cypress/component/basic/document) | Checks `document` dimensions from the component
117
117
[styled-components](cypress/component/basic/styled-components) | Test components that use [styled-components](https://www.styled-components.com/)
118
-
[test-custom-error-boundary](https://github.com/bahmutov/test-custom-error-boundary) | Play with a component that implements error boundary
119
118
<!-- prettier-ignore-end -->
120
119
121
120
plus a few smaller sanity specs in [cypress/component/basic](cypress/component/basic) folder.
@@ -166,6 +165,8 @@ Repo | Description
166
165
[react-loading-skeleton](https://github.com/bahmutov/react-loading-skeleton) | One to one Storybook tests for React skeleton components. Uses local `.babelrc` settings without Webpack config
167
166
[test-swr](https://github.com/bahmutov/test-swr) | Component test for [Zeit SWR](https://github.com/zeit/swr) hooks for remote data fetching
168
167
[emoji-search](https://github.com/bahmutov/emoji-search) | Quick component test for a fork of emoji-search
168
+
[test-custom-error-boundary](https://github.com/bahmutov/test-custom-error-boundary) | Play with a component that implements error boundary
169
+
[Jscrambler-Webpack-React](https://github.com/bahmutov/Jscrambler-Webpack-React) | Example project with its own Webpack config file
169
170
<!-- prettier-ignore-end -->
170
171
171
172
To find more examples, see GitHub topic [cypress-react-unit-test-example](https://github.com/topics/cypress-react-unit-test-example)
Copy file name to clipboardExpand all lines: docs/recipes.md
+4-11Lines changed: 4 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -31,28 +31,21 @@ See example repo [bahmutov/try-cra-with-unit-test](https://github.com/bahmutov/t
31
31
32
32
## Your webpack config
33
33
34
-
If you have your own webpack config, you can use included plugins file to load it.
34
+
If you have your own webpack config, you can use included plugins file to load it. You can pass the webpack config file name (with respect to the root folder where `cypress.json` file sits) via plugins file or via an `env` variable in `cypress.json`
35
35
36
36
```js
37
37
// cypress/plugins/index.js
38
38
module.exports= (on, config) => {
39
+
// from the root of the project (folder with cypress.json file)
0 commit comments