test: fix node --loader -> --import
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Oct 2023 13:05:55 +0000 (15:05 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Oct 2023 13:05:55 +0000 (15:05 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
e-mobility-charging-stations-simulator.code-workspace
package.json

index 4975eed027a3bcc5ed12d9c4d8eaeb3cd6450744..a08e71ee4ee98985661b8042db98cf1b1d955856 100644 (file)
@@ -15,7 +15,7 @@
       },
       {
         "extensions": ["mts", "cts", "ts"],
-        "parameters": ["--loader", "tsx"]
+        "parameters": ["--import", "tsx"]
       }
     ]
   }
index c4d158fd6429e8f15ad199fd061816d7f4964823..4285971a3c8ed62b52ce32c21905c6e574a93ce3 100644 (file)
@@ -75,8 +75,8 @@
     "lint": "cross-env TIMING=1 eslint --cache src",
     "lint:fix": "cross-env TIMING=1 eslint --cache --fix src",
     "format": "prettier --cache --write .",
-    "test": "glob -c \"c8 node --loader tsx --no-warnings=ExperimentalWarning --test\" \"tests/**/*.test.ts\"",
-    "test:debug": "glob -c \"node --loader tsx --no-warnings=ExperimentalWarning --test --inspect\" \"tests/**/*.test.ts\"",
+    "test": "glob -c \"c8 node --import tsx --test\" \"tests/**/*.test.ts\"",
+    "test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"",
     "coverage": "c8 report --reporter=lcov",
     "coverage:html": "c8 report --reporter=html",
     "clinic:clean": "clinic clean",