Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Feb 8, 2019
1 parent 9286731 commit 4d3e540
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 154 deletions.
170 changes: 90 additions & 80 deletions cli/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions cli/package.json
Expand Up @@ -65,17 +65,17 @@
"command-line-usage": "^5.0.0",
"extend": "^3.0.2",
"mongo-seeding": "^3.1.0",
"ts-node": "^7.0.1",
"typescript": "^3.2.2"
"ts-node": "^8.0.2",
"typescript": "^3.3.3"
},
"devDependencies": {
"@types/command-line-args": "^5.0.0",
"@types/extend": "^3.0.0",
"@types/jest": "^23.3.11",
"@types/mongodb": "^3.1.18",
"@types/node": "^10.12.18",
"@types/jest": "^23.3.14",
"@types/mongodb": "^3.1.19",
"@types/node": "^10.12.23",
"jest": "^23.6.0",
"mongodb": "^3.1.10",
"mongodb": "^3.1.13",
"ts-jest": "^23.10.5"
},
"jest": {
Expand Down
20 changes: 10 additions & 10 deletions cli/test/integration/index.ts
Expand Up @@ -23,7 +23,7 @@ describe('CLI', () => {
: 'mongodb://127.0.0.1:27017/clidb';
const databaseName = process.env.DB_NAME ? process.env.DB_NAME : 'clidb';

const exit = jest.spyOn(process, 'exit').mockImplementation(code => code);
const exit = jest.spyOn(process, 'exit').mockImplementation();

process.argv = [
'',
Expand All @@ -40,10 +40,10 @@ describe('CLI', () => {
expect(console.error).not.toBeCalled();
expect(exit).toBeCalledWith(0);

const client = await MongoClient.connect(
dbConnectionUri,
{ ignoreUndefined: true, useNewUrlParser: true },
);
const client = await MongoClient.connect(dbConnectionUri, {
ignoreUndefined: true,
useNewUrlParser: true,
});
const db = client.db(databaseName);

const testCases = [
Expand Down Expand Up @@ -89,7 +89,7 @@ describe('CLI', () => {
});

it('should show help', async () => {
const exit = jest.spyOn(process, 'exit').mockImplementation(code => code);
const exit = jest.spyOn(process, 'exit').mockImplementation();

process.argv = ['', '', '--help'];
await cliSeeder.run();
Expand All @@ -101,7 +101,7 @@ describe('CLI', () => {
});

it('should exit without error when no data to import', async () => {
const exit = jest.spyOn(process, 'exit').mockImplementation(code => code);
const exit = jest.spyOn(process, 'exit').mockImplementation();

process.argv = ['', '', './no-path'];
await cliSeeder.run();
Expand All @@ -110,7 +110,7 @@ describe('CLI', () => {

it('should allow transpile only mode for TS files', async () => {
const registerTsNode = jest.spyOn(tsNode, 'register');
jest.spyOn(process, 'exit').mockImplementation(code => code);
jest.spyOn(process, 'exit').mockImplementation();

process.argv = ['', '', '--transpile-only', './no-path'];
await cliSeeder.run();
Expand All @@ -120,7 +120,7 @@ describe('CLI', () => {
});

it('should exit with error on incorrect values', async () => {
const exit = jest.spyOn(process, 'exit').mockImplementation(code => code);
const exit = jest.spyOn(process, 'exit').mockImplementation();

const testCases = [
{
Expand All @@ -143,7 +143,7 @@ describe('CLI', () => {
});

it('should exit with error on command line arguments error', async () => {
const exit = jest.spyOn(process, 'exit').mockImplementation(code => code);
const exit = jest.spyOn(process, 'exit').mockImplementation();

process.argv = ['', '', '--what-is-this-parameter', 'dunno'];
await cliSeeder.run();
Expand Down
81 changes: 50 additions & 31 deletions core/package-lock.json

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

8 changes: 4 additions & 4 deletions core/package.json
Expand Up @@ -50,19 +50,19 @@
"dependencies": {
"debug": "^4.1.1",
"extend": "^3.0.0",
"mongodb": "^3.1.10"
"mongodb": "^3.1.13"
},
"devDependencies": {
"@types/extend": "^3.0.0",
"@types/fs-extra": "^5.0.0",
"@types/jest": "^23.3.11",
"@types/mongodb": "^3.1.18",
"@types/jest": "^23.3.14",
"@types/mongodb": "^3.1.19",
"babel-core": "^6.26.0",
"codacy-coverage": "^3.4.0",
"fs-extra": "^7.0.1",
"jest": "^23.6.0",
"ts-jest": "^23.10.5",
"typescript": "^3.2.2"
"typescript": "^3.3.3"
},
"jest": {
"verbose": false,
Expand Down

0 comments on commit 4d3e540

Please sign in to comment.