diff --git a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala index 9be0bf2a..73af6c00 100644 --- a/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala +++ b/src/test/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunnerTest.scala @@ -141,7 +141,8 @@ class TranspilationRunnerTest extends AnyWordSpec with Matchers { jsFilesAfterTranspilation.map(f => File(f._1).contentAsString .split("\n") - .head // we ignore the sourcemap reference comment here + .filterNot(_.trim == "\"use strict\";") // latest Babel uses strict checking + .head // we ignore the sourcemap reference comment here .mkString .stripLineEnd )