1
0
Fork 0
firefox/testing/xpcshell/moz-http2/README.md
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
630 B
Markdown

# XPCShellTests with npm packages
XPCShellTests that spawn a node server may use non-vendored npm packages.
Make sure that the test using the npm packages has `usesNPM = true` added to `xpshell.toml`.
## Adding a new dependency
```
cd testing/xpcshell/moz-http2
npm install newPackageThatIsPublishedToNPM
# commit package.json and package-lock.json
```
## Running a test that uses npm packages
Just run it normally. For example
```
./mach text netwerk/test/unit/test_node_execute_npm.js
```
`runxpcshelltests.py` will automatically install the npm packages when one of
the tests in the test list has `usesNPM = true`