From: Jérôme Benoit Date: Wed, 18 Oct 2023 13:05:55 +0000 (+0200) Subject: test: fix node --loader -> --import X-Git-Tag: v1.2.24~89 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=563a5165fc04fdc988d5e3bb02d3764d25ba8e45;p=e-mobility-charging-stations-simulator.git test: fix node --loader -> --import Signed-off-by: Jérôme Benoit --- diff --git a/e-mobility-charging-stations-simulator.code-workspace b/e-mobility-charging-stations-simulator.code-workspace index 4975eed0..a08e71ee 100644 --- a/e-mobility-charging-stations-simulator.code-workspace +++ b/e-mobility-charging-stations-simulator.code-workspace @@ -15,7 +15,7 @@ }, { "extensions": ["mts", "cts", "ts"], - "parameters": ["--loader", "tsx"] + "parameters": ["--import", "tsx"] } ] } diff --git a/package.json b/package.json index c4d158fd..4285971a 100644 --- a/package.json +++ b/package.json @@ -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",