1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
denoland-deno/cli/tests/testdata/npm
2022-09-15 12:16:20 -04:00
..
builtin_module_module fix(npm): use shim from deno_node crate for 'module' built-in module (#15881) 2022-09-15 12:02:25 -04:00
cached_only feat(unstable): Respect --cached-only flags for npm: specifiers (#15512) 2022-08-22 17:35:04 +02:00
cached_only_after_first_run feat(unstable): Respect --cached-only flags for npm: specifiers (#15512) 2022-08-22 17:35:04 +02:00
cjs_local_global_decls fix: avoid global declaration collisions in cjs (#15608) 2022-08-25 20:24:18 -04:00
cjs_reexport_collision fix(npm): align Deno importing Node cjs with Node esm importing cjs (#15879) 2022-09-15 12:02:07 -04:00
cjs_sub_path feat: binary npm commands (#15542) 2022-08-23 10:39:19 -04:00
cjs_this_in_exports fix(npm): remove export binding to match node (#15837) 2022-09-15 12:00:45 -04:00
cjs_with_deps feat: binary npm commands (#15542) 2022-08-23 10:39:19 -04:00
compare_globals fix(ext/node): fix global in node env (#15622) 2022-08-26 23:39:05 +09:00
conditional_exports fix(npm): conditional exports with wildcards (#15652) 2022-08-29 19:15:20 +02:00
dual_cjs_esm fix(npm): support cjs resolution of package subpath with package.json (#15855) 2022-09-15 12:02:16 -04:00
dynamic_import fix(unstable): various resolution bugs for npm: specifiers (#15546) 2022-08-24 14:54:20 +02:00
env_var_re_export fix(npm): recursive translation of reexports, remove window global in node code (#15806) 2022-09-09 15:33:30 +09:00
esm feat(unstable): Respect --cached-only flags for npm: specifiers (#15512) 2022-08-22 17:35:04 +02:00
esm_import_cjs_default fix(npm): align Deno importing Node cjs with Node esm importing cjs (#15879) 2022-09-15 12:02:07 -04:00
import_map feat(unstable): Respect --cached-only flags for npm: specifiers (#15512) 2022-08-22 17:35:04 +02:00
no_unstable fix(npm): always require --unstable flag even for esm (#15583) 2022-08-24 13:44:38 -04:00
nonexistent_file fix(npm): add more context to errors when file doesn't exist (#15749) 2022-09-09 15:22:33 +09:00
registry fix(npm): binary entrypoint for .js or no extension (#15900) 2022-09-15 12:16:20 -04:00
sub_paths feat: support subpaths in npm package references (#15578) 2022-08-24 11:25:32 -04:00
tarball_with_global_header fix(npm): remove export binding to match node (#15837) 2022-09-15 12:00:45 -04:00
translate_cjs_to_esm fix(npm): remove export binding to match node (#15837) 2022-09-15 12:00:45 -04:00
deno_run_cjs.out fix(npm): binary entrypoint for .js or no extension (#15900) 2022-09-15 12:16:20 -04:00
deno_run_cowsay.out feat(npm): support packages with multiple command names (#15565) 2022-08-23 22:01:21 -04:00
deno_run_cowthink.out feat(npm): support packages with multiple command names (#15565) 2022-08-23 22:01:21 -04:00
deno_run_esm.out chore(npm): add test for esm npm binary package (#15609) 2022-08-26 09:17:48 -04:00
deno_run_no_ext.out fix(npm): binary entrypoint for .js or no extension (#15900) 2022-09-15 12:16:20 -04:00
deno_run_non_existent.out fix(npm): correct exact matching of pre-release versions (#15745) 2022-09-09 15:18:25 +09:00
README.md fix: avoid global declaration collisions in cjs (#15608) 2022-08-25 20:24:18 -04:00

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.