1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-23 07:29:51 -05:00
denoland-deno/cli/tests/integration
Bartek Iwańczuk a1f0796fcc
feat: Add support for import assertions and JSON modules (#12866)
This commit adds proper support for import assertions and JSON modules.

Implementation of "core/modules.rs" was changed to account for multiple possible
module types, instead of always assuming that the code is an "ES module". In
effect "ModuleMap" now has knowledge about each modules' type (stored via
"ModuleType" enum). Module loading pipeline now stores information about
expected module type for each request and validates that expected type matches
discovered module type based on file's "MediaType".

Relevant tests were added to "core/modules.rs" and integration tests,
additionally multiple WPT tests were enabled.

There are still some rough edges in the implementation and not all WPT were
enabled, due to:
a) unclear BOM handling in source code by "FileFetcher"
b) design limitation of Deno's "FileFetcher" that doesn't download the same
module multiple times in a single run

Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-15 19:22:36 +01:00
..
bundle_tests.rs chore: test for bundling export specifier with alias (#12421) 2021-10-13 08:55:28 -04:00
cache_tests.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
compat_tests.rs compat: support compat mode in REPL (#12882) 2021-11-24 16:55:10 +01:00
compile_tests.rs fix(cli/compile): skip bundling for pre-bundled code (#12687) 2021-11-23 23:59:17 +01:00
coverage_tests.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
doc_tests.rs fix(cli): deno doc panics on invalid url (#11536) 2021-07-29 04:07:25 -07:00
eval_tests.rs chore: split up integration_tests.rs into separate files (#11131) 2021-06-27 13:27:36 -04:00
fmt_tests.rs tests: remove 'fmt_check_tests_dir' test (#12875) 2021-11-23 18:36:13 +01:00
info_tests.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
inspector_tests.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
install_tests.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
lint_tests.rs fix(lint): use recommended tag if there is no tags in config file or flags (#12644) 2021-11-04 11:12:12 -04:00
lsp_tests.rs chore: upgrade lspower to 1.4.0 (#12894) 2021-11-25 12:10:12 +11:00
mod.rs chore: upgrade to rustls 0.20 (#12488) 2021-12-07 00:48:11 +01:00
repl_tests.rs fix: upgrade swc fixing many bundling and --no-check bugs (#13025) 2021-12-08 19:12:14 -05:00
run_tests.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
test_tests.rs refactor(timers): refactor timers to use one async op per timer (#12862) 2021-12-07 13:39:58 +01:00
upgrade_tests.rs fix(cli/tools/upgrade): check if passed version is valid (#11296) 2021-07-07 14:59:39 -04:00
watcher_tests.rs feat(watcher): clear screen on each restart (#12613) 2021-12-11 01:12:25 +01:00
worker_tests.rs fix(workers): Make worker.terminate() not immediately kill the isolate (#12831) 2021-11-29 13:37:44 +01:00