We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976d95e commit bd64399Copy full SHA for bd64399
services/history/package.json
@@ -8,7 +8,7 @@
8
"dev": "nodemon --files ./src/server.ts",
9
"lint": "npx eslint src tests",
10
"lint:fix": "npx eslint src tests --fix",
11
- "test": "mocha --require ts-node/register tests/**/*.spec.ts --exit"
+ "test": "node --env-file=.env.sample ./node_modules/mocha/bin/mocha --require ts-node/register tests/**/*.spec.ts --exit"
12
},
13
"author": "",
14
"license": "ISC",
services/history/tests/fixtures.ts
@@ -1,6 +1,3 @@
1
-import dotenv from 'dotenv';
2
-dotenv.config({ path: '.env.sample' });
3
-
4
import jwt from 'jsonwebtoken';
5
import { Types } from 'mongoose';
6
import { Difficulty, Question, User } from '../src/models/historyModel';
0 commit comments