Skip to content

Commit

Permalink
Fix desktop-e2e types
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan committed Dec 30, 2024
1 parent 19fdd21 commit 301b499
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/desktop-e2e/cucumber.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config = {
failFast: true,
paths: ["src/features/*"],
require: ["src/**/*.ts"],
requireModule: ["ts-node/register"],
requireModule: ["ts-node/register/transpile-only", "tsconfig-paths/register"],
format: ["html:test-results/cucumber-report.html", "json:test-results/cucumber-report.json"],
},
};
Expand Down
3 changes: 2 additions & 1 deletion apps/desktop-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"eslint": "^8.57.0",
"madge": "^8.0.0",
"prettier": "^3.4.2",
"rimraf": "^6.0.1"
"rimraf": "^6.0.1",
"tsconfig-paths": "^4.2.0"
},
"dependencies": {
"@cucumber/cucumber": "^11.1.1",
Expand Down
10 changes: 7 additions & 3 deletions apps/desktop-e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "@umami/typescript-config/tsconfig.json",
"compilerOptions": {
"target": "esnext",
"allowJs": true,
Expand All @@ -14,10 +15,13 @@
"noEmit": true,
"jsx": "react-jsx",
"customConditions": ["@umami/source"],
"preserveSymlinks": true
"preserveSymlinks": true,
"types": ["node", "jest"]
},
"ts-node": {
"esm": true
"esm": true,
"transpileOnly": true,
"files": true
},
"include": ["src", ".eslintrc.cjs", "cucumber.cjs"]
"include": ["src", ".eslintrc.cjs", "cucumber.cjs", "src/global.d.ts"]
}
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@
"level-supports": "^6.0.0",
"level-transcoder": "^1.0.1"
}
}
}
19 changes: 12 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 301b499

Please sign in to comment.