This repository was archived by the owner on Mar 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ See [Recipes](./docs/recipes.md) for more examples.
126
126
- ` mount ` is the most important function, allows to mount a given React component as a mini web application and interact with it using Cypress commands
127
127
- ` createMount ` factory function that creates new ` mount ` function with default options
128
128
- ` unmount ` removes previously mounted component, mostly useful to test how the component cleans up after itself
129
- - ` mountHook ` mounts a given React Hook in a test component for full testing, see ` hooks ` example
129
+ - ` mountHook ` mounts a given React Hook in a test component for full testing, see the [ ` hooks ` example] ( cypress/component/advanced/hooks )
130
130
131
131
## Examples
132
132
@@ -191,7 +191,7 @@ Spec | Description
191
191
[ context] ( cypress/component/advanced/context ) | Confirms components that use React context feature work
192
192
[ custom-command] ( cypress/component/advanced/custom-command ) | Wraps ` mount ` in a custom command for convenience
193
193
[ forward-ref] ( cypress/component/advanced/forward-ref ) | Tests a component that uses a forward ref feature
194
- [ hooks] ( cypress/component/advanced/hooks ) | Tests several components that use React Hooks like ` useState ` , ` useCallback `
194
+ [ hooks] ( cypress/component/advanced/hooks ) | Tests several components that use React Hooks like ` useState ` , ` useCallback ` by using ` mountHook ` function
195
195
[ lazy-loaded] ( cypress/component/advanced/lazy-loaded ) | Confirms components that use ` React.lazy ` and dynamic imports work
196
196
[ material-ui-example] ( cypress/component/advanced/material-ui-example ) | Large components demos from [ Material UI] ( https://material-ui.com/ )
197
197
[ mobx-v6] ( cypress/component/advanced/mobx-v6 ) | Test components with MobX v6 observable
You can’t perform that action at this time.
0 commit comments