Skip to content

Commit

Permalink
Add transpileOnly to tsconfig.test.json
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Nov 26, 2024
1 parent 60722a3 commit 861b5bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion ui/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -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": []
Expand Down

0 comments on commit 861b5bd

Please sign in to comment.