@hestia-earth/data-api 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/data-api",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Hestia Data API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",
@@ -12,7 +12,7 @@
12
12
  "dev": "ts-node-dev --respawn --rs dev.ts --files --ignore-watch node_modules",
13
13
  "lint": "tsc --noEmit && eslint .",
14
14
  "lint:fix": "npm run lint -- --fix",
15
- "test": "jest --runInBand --forceExit",
15
+ "test": "jest --runInBand --detectOpenHandles",
16
16
  "migrate": "ts-node scripts/run-migrations.ts",
17
17
  "seed": "ts-node scripts/run-seed.ts",
18
18
  "listdb": "ts-node scripts/list-databases.ts",
package/jest.env.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as dotenv from 'dotenv';
2
- dotenv.config({ path: '.env.test' });
package/jest.setup.ts DELETED
@@ -1,26 +0,0 @@
1
- import { quit } from './src/cache';
2
-
3
- let endPool: () => Promise<void>;
4
- let initPool: () => void;
5
-
6
- beforeAll(() => {
7
- const db = require('./database/');
8
- endPool = db.endPool;
9
- initPool = db.initPool;
10
- });
11
-
12
- beforeEach(() => {
13
- initPool();
14
- // Clear redis cache
15
- const { cache } = require('./src/cache');
16
- if (cache && cache.del) {
17
- cache.del('*', () => {});
18
- }
19
- });
20
-
21
- afterAll(async () => {
22
- if (endPool) {
23
- await endPool();
24
- }
25
- await quit();
26
- });