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
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
builtin_module_module
cached_only
cached_only_after_first_run
check_errors
child_process_fork_test
cjs-invalid-name-exports
cjs_local_global_decls
cjs_module_export_assignment
cjs_module_export_assignment_number
cjs_pkg_imports
cjs_reexport_collision
cjs_require_esm_error
cjs_require_esm_mjs_error
cjs_sub_path
cjs_this_in_exports
cjs_with_deps
cjs_yargs
compare_globals fix(ext/node): Implement isBuiltin in node:module (#22817) 2024-03-08 18:06:04 -08:00
create_require
d_ext
different_nested_dep
directory_import
dual_cjs_esm
dynamic_import
dynamic_import_deno_ts_from_npm
dynamic_import_invalid_package_name
dynamic_import_json
dynamic_import_reload_same_package
env_var_re_export
error_version_after_subpath
esm_import_cjs_default
file_dts_dmts_dcts
import_json
import_map
imports_package_json
info
invalid_package_name
local_dir_resolves_symlinks
lock_file
mixed_case_package_name
no_npm_after_first_run
no_types_cjs
no_types_in_conditional_exports
node_modules_deno_node_modules
node_modules_import
nonexistent_file
peer_deps_with_copied_folders
permissions_outside_package
registry fix(lsp): improved cjs tracking (#23374) 2024-04-15 17:50:52 -04:00
reload
remote_npm_specifier
require_added_nm_folder
require_json
require_main
require_resolve_url
reserved_word_exports
run_existing_npm_package
run_existing_npm_package_with_subpath
sub_paths
tarball_with_global_header
translate_cjs_to_esm
types
types_ambient_module
types_entry_value_not_exists
types_exports_import_types
types_no_types_entry
typescript_file_in_package
deno_cache.out
deno_run_cjs.out
deno_run_cowsay.out
deno_run_cowsay_no_permissions.out
deno_run_cowthink.out
deno_run_esm.out
deno_run_no_bin_entrypoint.out
deno_run_no_bin_entrypoint_non_existent_subpath.out
deno_run_no_ext.out
deno_run_non_existent.out
deno_run_special_chars_in_bin_name.out
README.md

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.