Skip to content

Commit

Permalink
style: apply eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Oct 17, 2019
1 parent 3805042 commit 61244ce
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package.json
coverage/
lib/
renovate.json
2 changes: 2 additions & 0 deletions mongo-insert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe('insert', () => {
await users.insertOne(mockUser);

const insertedUser = await users.findOne({_id: 'some-user-id'});

expect(insertedUser).toEqual(mockUser);
});

Expand All @@ -30,6 +31,7 @@ describe('insert', () => {
await users.insertMany(mockUsers);

const insertedUsers = await users.find().toArray();

expect(insertedUsers).toEqual([
expect.objectContaining({name: 'John'}),
expect.objectContaining({name: 'Alice'}),
Expand Down
63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,48 @@
"name": "@shelf/jest-mongodb",
"version": "1.1.1",
"description": "Run your tests using Jest & MongoDB in Memory server",
"license": "MIT",
"keywords": [
"jest",
"jest environment",
"jest preset",
"mongodb",
"mongodb local"
],
"repository": "shelfio/jest-mongodb",
"license": "MIT",
"author": {
"name": "Vlad Holubiev",
"email": "[email protected]",
"url": "shelf.io"
},
"engines": {
"node": ">=8"
},
"scripts": {
"lint": "eslint . --fix",
"lint": "eslint . --fix --ext .js,.json,.ts --quiet",
"test": "jest"
},
"keywords": [
"jest",
"mongodb",
"mongodb local",
"jest preset",
"jest environment"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-commit": "git update-index --again"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{html,json,md,yml}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "./jest-preset.js"
},
"dependencies": {
"cwd": "0.10.0",
"debug": "4.1.1",
"mongodb-memory-server": "5.2.8"
},
"peerDependencies": {
"mongodb": "3.x.x"
},
"devDependencies": {
"@shelf/eslint-config": "0.8.2",
"eslint": "6.5.1",
Expand All @@ -40,23 +53,11 @@
"mongodb": "3.3.2",
"prettier": "1.18.2"
},
"jest": {
"preset": "./jest-preset.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"peerDependencies": {
"mongodb": "3.x.x"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{html,json,md,yml}": [
"prettier --write",
"git add"
]
"engines": {
"node": ">=8"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 61244ce

Please sign in to comment.