1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/testdata/npm
Matt Mastracci f5e46c9bf2
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests ->
tests, and updates of relative paths for files.

This is the first step towards aggregate all of the integration test
files under tests/, which will lead to a set of integration tests that
can run without the CLI binary being built.

While we could leave these tests under `cli`, it would require us to
keep a more complex directory structure for the various test runners. In
addition, we have a lot of complexity to ignore various test files in
the `cli` project itself (cargo publish exclusion rules, autotests =
false, etc).

And finally, the `tests/` folder will eventually house the `test_ffi`,
`test_napi` and other testing code, reducing the size of the root repo
directory.

For easier review, the extremely large and noisy "move" is in the first
commit (with no changes -- just a move), while the remainder of the
changes to actual files is in the second commit.
2024-02-10 20:22:13 +00: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_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 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
conditional_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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 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 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +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 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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 cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00: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.