diff --git a/frontend/.mocharc.json b/frontend/.mocharc.json new file mode 100644 index 000000000..0773558c4 --- /dev/null +++ b/frontend/.mocharc.json @@ -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" +} diff --git a/frontend/mocha.env b/frontend/mocha.env new file mode 100644 index 000000000..40b8c1a1e --- /dev/null +++ b/frontend/mocha.env @@ -0,0 +1 @@ +process.env.TS_NODE_PROJECT = 'tsconfig.json' diff --git a/frontend/package.json b/frontend/package.json index 689600a91..73f42fed4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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": "yarn@4.4.0" }