1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
denoland-deno/cli/tests/testdata/npm/README.md
David Sherret 376665d115
fix: avoid global declaration collisions in cjs (#15608)
* Use a default stack size * 2 in debug for Windows because swc using so much stack size. We should look into this more later though.
2022-08-25 20:24:18 -04:00

18 lines
515 B
Markdown

# npm test data
This folder contains test data for npm specifiers.
## Registry
The registry is served by the test server (server in test_util) at
http://localhost:4545/npm/registry/ via the `./registry` folder.
### Updating with real npm packages
1. Set the `DENO_TEST_UTIL_UPDATE_NPM=1` environment variable
2. Run the test and it should download the packages.
### Using a custom npm package
1. Add the custom package to `./registry/@denotest`
2. Reference `npm:@denotest/<your-package-name>` in the tests.