0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-10 06:07:03 -04:00
deno/tests/testdata/npm
Matt Mastracci 6016881eaa 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-15 10:32:21 +05:30
..
binary_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
builtin_module_module chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cached_only chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cached_only_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
check_errors chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
child_process_fork_test chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs-invalid-name-exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_local_global_decls chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_module_export_assignment chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_module_export_assignment_number chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_reexport_collision chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_require_esm_error chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_require_esm_mjs_error chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_sub_path chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_this_in_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_with_deps chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
cjs_yargs chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
compare_globals chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
conditional_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
create_require chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
d_ext chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
different_nested_dep chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
directory_import chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dual_cjs_esm chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dynamic_import chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dynamic_import_deno_ts_from_npm chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dynamic_import_invalid_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dynamic_import_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
dynamic_import_reload_same_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
env_var_re_export chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
error_version_after_subpath chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
esm chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
esm_import_cjs_default chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
file_dts_dmts_dcts chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
import_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
import_map chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
imports_package_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
info chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
invalid_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
local_dir_resolves_symlinks chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
lock_file chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
mixed_case_package_name chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
no_npm_after_first_run chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
no_types_cjs chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
no_types_in_conditional_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
node_modules_deno_node_modules chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
node_modules_import chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
nonexistent_file chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
peer_deps_with_copied_folders chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
permissions_outside_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
registry chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
reload chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
remote_npm_specifier chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
require_added_nm_folder chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
require_json chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
require_main chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
require_resolve_url chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
reserved_word_exports chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
run_existing_npm_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
run_existing_npm_package_with_subpath chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
sub_paths chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
tarball_with_global_header chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
translate_cjs_to_esm chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
types chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
types_ambient_module chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
types_entry_value_not_exists chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
types_exports_import_types chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
types_no_types_entry chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
typescript_file_in_package chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_cache.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_cjs.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_cowsay.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_cowsay_no_permissions.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_cowthink.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_esm.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_no_bin_entrypoint.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_no_bin_entrypoint_non_existent_subpath.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_no_ext.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_non_existent.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
deno_run_special_chars_in_bin_name.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30
README.md chore: move cli/tests/ -> tests/ (#22369) 2024-02-15 10:32:21 +05:30

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.