Skip to content

Commit bd64399

Browse files
committed
Simplify history tests
1 parent 976d95e commit bd64399

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

services/history/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "nodemon --files ./src/server.ts",
99
"lint": "npx eslint src tests",
1010
"lint:fix": "npx eslint src tests --fix",
11-
"test": "mocha --require ts-node/register tests/**/*.spec.ts --exit"
11+
"test": "node --env-file=.env.sample ./node_modules/mocha/bin/mocha --require ts-node/register tests/**/*.spec.ts --exit"
1212
},
1313
"author": "",
1414
"license": "ISC",

services/history/tests/fixtures.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import dotenv from 'dotenv';
2-
dotenv.config({ path: '.env.sample' });
3-
41
import jwt from 'jsonwebtoken';
52
import { Types } from 'mongoose';
63
import { Difficulty, Question, User } from '../src/models/historyModel';

0 commit comments

Comments
 (0)