Skip to content

Commit af281b3

Browse files
committed
Add huskyrc
1 parent d81dcf0 commit af281b3

6 files changed

+6555
-8
lines changed

.huskyrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint",
4+
"pre-push": "npm run lint"
5+
}
6+
}

babel.config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env"
4+
]
5+
}

jest.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ module.exports = {
6464
// maxWorkers: "50%",
6565

6666
// An array of directory names to be searched recursively up from the requiring module's location
67-
// moduleDirectories: [
68-
// "node_modules"
69-
// ],
67+
moduleDirectories: [
68+
"node_modules"
69+
],
7070

7171
// An array of file extensions your modules use
7272
// moduleFileExtensions: [
@@ -164,7 +164,7 @@ module.exports = {
164164
// testRunner: "jasmine2",
165165

166166
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
167-
// testURL: "http://localhost",
167+
testURL: "http://localhost",
168168

169169
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
170170
// timers: "real",
@@ -182,7 +182,7 @@ module.exports = {
182182
// unmockedModulePathPatterns: undefined,
183183

184184
// Indicates whether each individual test should be reported during the run
185-
// verbose: undefined,
185+
verbose: false,
186186

187187
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
188188
// watchPathIgnorePatterns: [],

0 commit comments

Comments
 (0)