1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests/testdata/npm
David Sherret 6f278e5c40
fix(lsp): improved cjs tracking (#23374)
Our cjs tracking was a bit broken. It was marking stuff as esm that was
actually cjs leading to type checking errors.
2024-04-15 17:50:52 -04:00
..
binary_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
builtin_module_module chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cached_only chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cached_only_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
check_errors chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
child_process_fork_test chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs-invalid-name-exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_local_global_decls chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_module_export_assignment chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_module_export_assignment_number chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_pkg_imports fix(node): require of pkg json imports was broken (#22821) 2024-03-09 10:21:31 -05:00
cjs_reexport_collision chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_require_esm_error chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_require_esm_mjs_error chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_sub_path chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_this_in_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_with_deps chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cjs_yargs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
compare_globals fix(ext/node): Implement isBuiltin in node:module (#22817) 2024-03-08 18:06:04 -08:00
create_require chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
d_ext chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
different_nested_dep chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
directory_import 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: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_import_deno_ts_from_npm chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_import_invalid_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_import_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_import_reload_same_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
env_var_re_export chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
error_version_after_subpath chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
esm_import_cjs_default chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
file_dts_dmts_dcts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
import_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
import_map chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
imports_package_json fix(node): improve cjs tracking (#22673) 2024-03-06 00:23:51 +00:00
info chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
invalid_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
local_dir_resolves_symlinks chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
lock_file feat(unstable): single checksum per JSR package in the lockfile (#22421) 2024-02-15 14:49:35 -05:00
mixed_case_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_npm_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_types_cjs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_types_in_conditional_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
node_modules_deno_node_modules chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
node_modules_import chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
nonexistent_file chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
peer_deps_with_copied_folders chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
permissions_outside_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
registry fix(lsp): improved cjs tracking (#23374) 2024-04-15 17:50:52 -04:00
reload chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
remote_npm_specifier chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
require_added_nm_folder chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
require_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
require_main 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
reserved_word_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
run_existing_npm_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
run_existing_npm_package_with_subpath chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sub_paths chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
tarball_with_global_header chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
translate_cjs_to_esm chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
types chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
types_ambient_module chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
types_entry_value_not_exists chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
types_exports_import_types chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
types_no_types_entry chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
typescript_file_in_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_cache.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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
deno_run_no_bin_entrypoint.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_no_bin_entrypoint_non_existent_subpath.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_no_ext.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_non_existent.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_run_special_chars_in_bin_name.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: move test_util to tests/util/server (#22444) 2024-02-19 06:34:24 -07: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: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.