From 048c06f84fe78742d6d9e64caa2aadcd212802a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 1 Oct 2022 22:21:19 +0200 Subject: fix(npm): handle json files in require (#16125) --- cli/tests/integration/npm_tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/tests/integration/npm_tests.rs') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index db5330545..d111bd76e 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -181,6 +181,13 @@ itest!(nonexistent_file { exit_code: 1, }); +itest!(require_json { + args: "run --unstable -A --quiet npm/require_json/main.js", + output: "npm/require_json/main.out", + envs: env_vars(), + http_server: true, +}); + #[test] fn parallel_downloading() { let (out, _err) = util::run_and_collect_output_with_args( -- cgit v1.2.3