Skip to content

Commit

Permalink
TS frontend: separate mocha configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gusthoff committed Nov 2, 2024
1 parent 22063e1 commit c323ada
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
16 changes: 16 additions & 0 deletions frontend/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"diff": true,
"extension": [
"ts"
],
"reporter": "spec",
"slow": 75,
"timeout": 200000,
"ui": "bdd",
"require": [
"mocha.env",
"ts-node/register",
"jsdom-global/register"
],
"spec": "tests/**/*.spec.ts"
}
1 change: 1 addition & 0 deletions frontend/mocha.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
process.env.TS_NODE_PROJECT = 'tsconfig.json'
15 changes: 0 additions & 15 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,5 @@
"src/index.ts"
]
},
"mocha": {
"diff": true,
"extension": [
"ts"
],
"reporter": "spec",
"slow": 75,
"timeout": 200000,
"ui": "bdd",
"require": [
"ts-node/register",
"jsdom-global/register"
],
"spec": "tests/**/*.spec.ts"
},
"packageManager": "[email protected]"
}

0 comments on commit c323ada

Please sign in to comment.