Skip to content

Commit

Permalink
Bump [email protected], fixes tests open handles (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
petruki authored Feb 8, 2025
1 parent df9460d commit 7db3c8f
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 107 deletions.
185 changes: 80 additions & 105 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"jsonwebtoken": "^9.0.2",
"moment": "^2.30.1",
"mongodb": "^6.13.0",
"mongoose": "^8.9.7",
"mongoose": "^8.10.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"swagger-ui-express": "^5.0.1",
Expand All @@ -59,7 +59,7 @@
},
"devDependencies": {
"env-cmd": "^10.1.0",
"eslint": "^9.19.0",
"eslint": "^9.20.0",
"jest": "^29.7.0",
"jest-sonar-reporter": "^2.0.0",
"node-notifier": "^10.0.1",
Expand Down
8 changes: 8 additions & 0 deletions tests/unit-test/client/relay.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import mongoose from 'mongoose';
import { resolveValidation } from '../../../src/client/relay';
import sinon from 'sinon';
import axios from 'axios';
Expand All @@ -6,6 +7,13 @@ import { StrategiesType } from '../../../src/models/config-strategy';
import { EnvType } from '../../../src/models/environment';
import { Client } from 'switcher-client';

import '../../../src/app';

afterAll(async () => {
await new Promise(resolve => setTimeout(resolve, 1000));
await mongoose.disconnect();
});

describe('Testing Client Relay', () => {

let axiosStub;
Expand Down
8 changes: 8 additions & 0 deletions tests/unit-test/config-strategy.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import mongoose from 'mongoose';
import { payloadReader } from '../../src/helpers';
import {
processOperation,
StrategiesType,
OperationsType
} from '../../src/models/config-strategy';

import '../../src/app';

afterAll(async () => {
await new Promise(resolve => setTimeout(resolve, 1000));
await mongoose.disconnect();
});

describe('Processing strategy: NETWORK', () => {

const fixture_values1 = [
Expand Down

0 comments on commit 7db3c8f

Please sign in to comment.