From 5834d282d4de5d0b5cacb9bf068f3896bef0a48a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 21 Aug 2023 11:53:52 +0200 Subject: refactor: upgrade deno_ast 0.28 and deno_semver 0.4 (#20193) --- cli/tests/integration/inspector_tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cli/tests/integration/inspector_tests.rs') diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs index 79422ee5a..c507204e4 100644 --- a/cli/tests/integration/inspector_tests.rs +++ b/cli/tests/integration/inspector_tests.rs @@ -75,6 +75,12 @@ struct InspectorTester { stdout_lines: Box>, } +impl Drop for InspectorTester { + fn drop(&mut self) { + _ = self.child.kill(); + } +} + fn ignore_script_parsed(msg: &str) -> bool { !msg.starts_with(r#"{"method":"Debugger.scriptParsed","#) } @@ -953,7 +959,7 @@ async fn inspector_with_ts_files() { tester.assert_received_messages( &[ r#"{"id":4,"result":{"scriptSource":"import { foo } from \"./foo.ts\";\nimport { bar } from \"./bar.js\";\nconsole.log(foo());\nconsole.log(bar());\n//# sourceMappingURL=data:application/json;base64,"#, - r#"{"id":5,"result":{"scriptSource":"class Foo {\n hello() {\n return \"hello\";\n }\n}\nexport function foo() {\n const f = new Foo();\n return f.hello();\n}\n//# sourceMappingURL=data:application/json;base64,"#, + r#"{"id":5,"result":{"scriptSource":"class Foo {\n hello() {\n return \"hello\";\n }\n}\nexport function foo() {\n const f = new Foo();\n return f.hello();\n}\n//# sourceMappingURL=data:application/json;base64,"#, r#"{"id":6,"result":{"scriptSource":"export function bar() {\n return \"world\";\n}\n"#, ], &[], -- cgit v1.2.3