mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
1587387bcc
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
18 lines
512 B
Markdown
18 lines
512 B
Markdown
# npm test data
|
|
|
|
This folder contains test data for npm specifiers.
|
|
|
|
## Registry
|
|
|
|
The registry is served by the test server (server in `tests/util/server`) at
|
|
http://localhost:4558/ 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.
|