Skip to content

Commit 26424ed

Browse files
committed
Update the way we support NPM deps
1 parent 234a45c commit 26424ed

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ specified folder.
8383
"cypress_proj_dir": "/path/to/directory-that-contains-<cypress.json>-file",
8484
"project_name": "my first project",
8585
"build_name": "build 1",
86-
"npm_dependencies": [
87-
"npm-package-you-need-to-run-tests-1",
88-
"npm-package-you-need-to-run-tests-2@1.0.0"
89-
]
86+
"npm_dependencies": {
87+
"npm-package-you-need-to-run-tests-1": "^1.2.1",
88+
"npm-package-you-need-to-run-tests-2": "^7.1.6-beta.13",
89+
}
9090
},
9191
"connection_settings": {
9292
"local": false,
@@ -158,7 +158,7 @@ BrowserStack.
158158
| `cypress_proj_dir` | Path to the folder which contains `cypress.json` file. | - |
159159
| `project_name` | Name of your project. You'll be able to search & filter your tests on the dashboard using this. | - |
160160
| `build_name` | Name of your build / CI run. You'll be able to search & filter your tests on the dashboard using this. username. | - |
161-
| `npm_dependencies` | A list of NPM packages to be able to run your Cypress tests. | - |
161+
| `npm_dependencies` | A list of NPM packages that are required to run your Cypress tests along with their version numbers. | - |
162162

163163
Example:
164164

@@ -168,10 +168,10 @@ Example:
168168
"cypress_proj_dir": "/path/to/directory-that-contains-<cypress.json>-file",
169169
"project_name": "my first project",
170170
"build_name": "build 1",
171-
"npm_dependencies": [
172-
"npm-package-you-need-to-run-tests-1",
173-
"npm-package-you-need-to-run-tests-2@1.0.0"
174-
]
171+
"npm_dependencies": {
172+
"npm-package-you-need-to-run-tests-1": "^1.2.1",
173+
"npm-package-you-need-to-run-tests-2": "^7.1.6-beta.13",
174+
}
175175
}
176176
}
177177
```

0 commit comments

Comments
 (0)