Skip to content

Commit 9cc6d52

Browse files
committed
Fix lint tests
* Make sure they run against all source files when running `npm test` * Fix two formatting issues
1 parent bd2fe3d commit 9cc6d52

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ env:
22
browser: true
33
commonjs: true
44
es2020: true
5+
jest: true
56
extends:
67
- semistandard
78
parserOptions:

__mocks__/aws-sdk/clients/rdsdataservice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ module.exports.mockBeginTransactionPromise = mockBeginTransactionPromise;
4141
module.exports.mockCommitTransaction = mockCommitTransaction;
4242
module.exports.mockCommitTransactionPromise = mockCommitTransactionPromise;
4343
module.exports.mockRollbackTransaction = mockRollbackTransaction;
44-
module.exports.mockRollbackTransactionPromise = mockRollbackTransactionPromise;
44+
module.exports.mockRollbackTransactionPromise = mockRollbackTransactionPromise;

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Client_AuroraDataMySQL extends Client_MySQL { // eslint-disable-line camel
8282
return new RDSDataService(config);
8383
}
8484

85-
initializePool() {
85+
initializePool () {
8686
/* istanbul ignore if */
8787
if (this.pool) {
8888
this.logger.warn('The pool has already been initialized');

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repository": "txase/knex-aurora-data-api-mysql",
77
"main": "index.js",
88
"scripts": {
9-
"test": "jest tests"
9+
"test": "jest"
1010
},
1111
"author": "Chase Douglas <chasedouglas@gmail.com>",
1212
"license": "MIT",
@@ -40,6 +40,9 @@
4040
"runner": "jest-runner-eslint",
4141
"testMatch": [
4242
"<rootDir>/**/*.js"
43+
],
44+
"testPathIgnorePatterns": [
45+
"/coverage/"
4346
]
4447
}
4548
],

0 commit comments

Comments
 (0)