From 861b5bd87daa23dd6546122fde9a80a018cb39ab Mon Sep 17 00:00:00 2001 From: Daniel von Atzigen Date: Tue, 26 Nov 2024 13:26:53 +0100 Subject: [PATCH] Add `transpileOnly` to tsconfig.test.json --- ui/package.json | 2 +- ui/tsconfig.test.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index 1e9ea1b13..9db07eb75 100644 --- a/ui/package.json +++ b/ui/package.json @@ -19,7 +19,7 @@ "check": "npm run check:src && npm run check:tests", "check:src": "tsc -p tsconfig.json --noEmit", "check:tests": "tsc -p tsconfig.test.json --noEmit", - "test": "cross-env TS_NODE_PROJECT=tsconfig.test.json node --loader ./node_modules/ts-node/esm.mjs --experimental-specifier-resolution=node node_modules/mocha/bin/mocha -- --transpile-only --exit", + "test": "cross-env TS_NODE_PROJECT=tsconfig.test.json node --loader ./node_modules/ts-node/esm.mjs --experimental-specifier-resolution=node node_modules/mocha/bin/mocha -- --exit", "e2e": "start-server-and-test start http-get://localhost:8000 cypress:run", "cypress:open": "cypress open", "cypress:run": "./scripts/cypress_run", diff --git a/ui/tsconfig.test.json b/ui/tsconfig.test.json index 8eded6d05..9f85a1ec7 100644 --- a/ui/tsconfig.test.json +++ b/ui/tsconfig.test.json @@ -1,10 +1,13 @@ { "extends": "./tsconfig.json", + "ts-node": { + "transpileOnly": true + }, "compilerOptions": { "types": [ "geojson", "mocha" - ], + ] }, "include": ["src/**/*.ts", "src/**/*.js", "node_modules/fomantic-ui-css/types/**/*.d.ts"], "exclude": []