Skip to content

Commit 3619d28

Browse files
Merge pull request #30 from xsnippet/jest
Add Jest integration along with simple test case
2 parents 39ccb79 + d3bfc45 commit 3619d28

File tree

5 files changed

+2297
-93
lines changed

5 files changed

+2297
-93
lines changed

.eslintrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "airbnb",
33
"env": {
4-
"browser": true
4+
"browser": true,
5+
"jest/globals": true
56
},
67
"rules": {
78
"jsx-a11y/anchor-is-valid": ["error", {
@@ -10,5 +11,6 @@
1011
}],
1112
"react/prop-types": [0],
1213
"jsx-a11y/click-events-have-key-events": [0]
13-
}
14+
},
15+
"plugins": ["jest"]
1416
}

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_js:
88

99
script:
1010
- npm run lint
11+
- npm run test
1112
- npm run build
1213

1314
before_deploy:

0 commit comments

Comments
 (0)