Skip to content

Commit 8b0d1da

Browse files
committed
add: pre-commit hook to run test. eslint fixes
1 parent 3f0018a commit 8b0d1da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup-env/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"husky": {
1212
"hooks": {
13-
"pre-commit": "npm run build && git add dist/"
13+
"pre-commit": "npm run test && npm run build && git add dist/"
1414
}
1515
},
1616
"repository": {

setup-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"husky": {
1212
"hooks": {
13-
"pre-commit": "npm run build && git add dist/"
13+
"pre-commit": "npm run test && npm run build && git add dist/"
1414
}
1515
},
1616
"repository": {

setup-local/test/binaryControl.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('Binary Control Operations', () => {
120120
localTesting: 'start',
121121
};
122122

123-
const expectedFinalArgs = `--key someKey --only-automate --ci-plugin GitHubAction --arg1 val1 --arg2 val2 --local-identifier someIdentifier --verbose 1 --log-file ${path.resolve(process.env.HOME,'work','binary','LocalBinaryFolder','darwin','BrowserStackLocal_someJobName.log')} `;
123+
const expectedFinalArgs = `--key someKey --only-automate --ci-plugin GitHubAction --arg1 val1 --arg2 val2 --local-identifier someIdentifier --verbose 1 --log-file ${path.resolve(process.env.HOME, 'work', 'binary', 'LocalBinaryFolder', 'darwin', 'BrowserStackLocal_someJobName.log')} `;
124124
const binaryControl = new BinaryControl(stateForBinary);
125125
binaryControl._generateArgsForBinary();
126126
expect(binaryControl.binaryArgs).to.eq(expectedFinalArgs);

0 commit comments

Comments
 (0)