From 249c58d102d2bd316cc82ab7572f56862250685e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:01:54 +0200 Subject: [PATCH 1/2] Fix test due to changes to Babel Latest Babel uses strict checking, we skip that line for that specific test case. --- .../shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala index 9be0bf2a..283c4f31 100644 --- a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala +++ b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala @@ -141,6 +141,7 @@ class TranspilationRunnerTest extends AnyWordSpec with Matchers { jsFilesAfterTranspilation.map(f => File(f._1).contentAsString .split("\n") + .filterNot(_.trim == "\"use strict\";") // latest Babel uses strict checking .head // we ignore the sourcemap reference comment here .mkString .stripLineEnd From 3ff822fc5a0458f7a9db33ff7079002c515c7e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:14:49 +0200 Subject: [PATCH 2/2] format --- .../js2cpg/preprocessing/TranspilationRunnerTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala index 283c4f31..73af6c00 100644 --- a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala +++ b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala @@ -142,7 +142,7 @@ class TranspilationRunnerTest extends AnyWordSpec with Matchers { File(f._1).contentAsString .split("\n") .filterNot(_.trim == "\"use strict\";") // latest Babel uses strict checking - .head // we ignore the sourcemap reference comment here + .head // we ignore the sourcemap reference comment here .mkString .stripLineEnd )