From 563a5165fc04fdc988d5e3bb02d3764d25ba8e45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 18 Oct 2023 15:05:55 +0200 Subject: [PATCH] test: fix node --loader -> --import MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- e-mobility-charging-stations-simulator.code-workspace | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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", -- 2.34.1