1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/testdata/npm
David Sherret 826e42a5b5
fix: improved support for cjs and cts modules (#26558)
* cts support
* better cjs/cts type checking
* deno compile cjs/cts support
* More efficient detect cjs (going towards stabilization)
* Determination of whether .js, .ts, .jsx, or .tsx is cjs or esm is only
done after loading
* Support `import x = require(...);`

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-11-01 12:27:00 -04:00
..
binary_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cached_only chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
cached_only_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_with_deps fix(info): move "version" field to top of json output (#25890) 2024-09-26 15:57:12 -04:00
different_nested_dep chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dual_cjs_esm chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_import chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00
dynamic_import_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
exec_file fix(ext/node): improve shelljs compat with managed npm execution (#24912) 2024-08-16 12:48:48 +09:00
no_npm_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
peer_deps_with_copied_folders fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
reload chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
require_resolve_url chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
run_existing_npm_package fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
deno_run_cjs.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_cowsay.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_cowsay_no_permissions.out fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
deno_run_cowthink.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_esm.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: fix flaky net_listen_allow_localhost_4555 (#23726) 2024-05-07 17:21:56 +00:00

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:4260/ 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.