File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff 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:
4848npm 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+
5177The compiled output will be in the ` dist/ ` directory.
5278
5379### Project Structure
You can’t perform that action at this time.
0 commit comments