Skip to content

Commit f283532

Browse files
committed
Updated readme with local testing of the package using a secondary project.
1 parent 0ab6612 commit f283532

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ When testing Vue components, you often need to test a parent component's behavio
2222
## Installation
2323

2424
```bash
25-
npm install --save-dev @sourceallies/@sourceallies/vue-testing-library-stubs
25+
npm install --save-dev @sourceallies/vue-testing-library-stubs
2626
```
2727

2828
## Development
@@ -48,6 +48,32 @@ Build the TypeScript source to JavaScript:
4848
npm run build
4949
```
5050

51+
### Local testing of stub functions using another project
52+
53+
Ensure package is not already installed in the project testing the changes.
54+
55+
```bash
56+
npm uninstall @sourceallies/vue-testing-library-stubs
57+
```
58+
59+
Ensure Vue Testing Library Stubs project is using the same node version as the project testing the changes.
60+
61+
```bash
62+
node -v
63+
```
64+
65+
Create a symlink for the project testing the changes to connect to.
66+
67+
```bash
68+
npm link
69+
```
70+
71+
In project testing the changes link the package
72+
73+
```bash
74+
npm link @sourceallies/vue-testing-library-stubs
75+
```
76+
5177
The compiled output will be in the `dist/` directory.
5278

5379
### Project Structure

0 commit comments

Comments
 (0)