1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/cli/tests/testdata/npm
David Sherret 6233c0aff0
fix(npm): support bare specifiers in package.json having a path (#17903)
For example `import * as test from "package/path.js"`
2023-02-23 17:33:23 +00:00
..
builtin_module_module
cached_only refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
cached_only_after_first_run
check_errors
child_process_fork_test
cjs_local_global_decls
cjs_module_export_assignment
cjs_module_export_assignment_number
cjs_reexport_collision
cjs_sub_path
cjs_this_in_exports
cjs_with_deps refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
cjs_yargs
compare_globals refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
conditional_exports
create_require
dual_cjs_esm
dynamic_import
dynamic_import_reload_same_package
env_var_re_export
error_version_after_subpath
esm
esm_import_cjs_default fix(ext/console): log class for class constructor (#17615) 2023-02-05 00:34:36 +01:00
import_map refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
info refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
invalid_package_name
lock_file
mixed_case_package_name
no_npm_after_first_run
no_types_cjs
no_types_in_conditional_exports
node_modules_import fix(npm): support bare specifiers in package.json having a path (#17903) 2023-02-23 17:33:23 +00:00
nonexistent_file
peer_deps_with_copied_folders refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
permissions_outside_package
registry feat(npm): support bare specifiers from package.json in more subcommands and language server (#17891) 2023-02-23 10:58:10 -05:00
reload
remote_npm_specifier feat(npm): support npm specifiers in remote modules without --unstable (#17889) 2023-02-23 09:48:29 -05:00
require_added_nm_folder
require_json
sub_paths
tarball_with_global_header fix(ext/console): log class for class constructor (#17615) 2023-02-05 00:34:36 +01:00
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 refactor: use deno_graph for npm specifiers (#17858) 2023-02-22 14:15:25 -05:00
deno_cache.out
deno_run_cjs.out
deno_run_cowsay.out
deno_run_cowthink.out
deno_run_esm.out
deno_run_no_ext.out
deno_run_non_existent.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 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.