Skip to content

Commit 95b6022

Browse files
authored
change import in exmaple in testing docs and change delpoy script (#3002)
* change import in exmaple in testing docs and change delpoy script * fomrating
1 parent 579db78 commit 95b6022

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/foundation/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In order to initialize a test driver you pass it the renderTree and the componen
2929
### Example
3030
Suppose we have a form that takes a `first name`, `last name` and an `address` and we want to test the submitting of this form. Our form component will look something like this:
3131
```jsx
32-
import {Button, TextField, View} from '@wix/wix-react-native-ui-lib';
32+
import {Button, TextField, View} from 'react-native-ui-lib/testkit';
3333

3434
type OnSubmitHandler = (firstName: string, lastName: string, address: string) => void;
3535
const MyForm = (props: {onSubmit: OnSubmitHandler}) => {
@@ -51,7 +51,7 @@ const MyForm = (props: {onSubmit: OnSubmitHandler}) => {
5151
#### In order to test our flow we would do the following steps:
5252
1. Import the TextField and Button driver from UI-LIB's testkit
5353
```javascript
54-
import {TextFieldDriver, ButtonDriver} from '@wix/react-native-ui-lib/testkit';
54+
import {TextFieldDriver, ButtonDriver} from 'react-native-ui-lib/testkit';
5555
```
5656
2. render our test case
5757
```javascript

scripts/deployDocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ echo "Building docs site..."
88
(cd ./docuilib && npm run build)
99

1010
echo "Deploying docs..."
11-
(cd ./docuilib && GIT_USER=$username npm run deploy)
11+
(cd ./docuilib && GIT_USER=$username USE_SSH=true npm run deploy)

0 commit comments

Comments
 (0)