Skip to content

Commit 6dd4a97

Browse files
rahgurungsindresorhus
authored andcommitted
Add integration tests (#243)
1 parent 7e20c64 commit 6dd4a97

File tree

6 files changed

+1274
-3
lines changed

6 files changed

+1274
-3
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@ node_js:
33
- 12
44
- 10
55
- 8
6+
- 6
7+
matrix:
8+
include:
9+
- node_js: 12
10+
env: INTEGRATION=true
11+
script:
12+
- if [ $INTEGRATION == true ]; then npm run integration; fi
613
before_install: npm install --global npm
714
after_success: npx codecov --file=./coverage/lcov.info

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"node": ">=8"
99
},
1010
"scripts": {
11-
"test": "xo && nyc ava"
11+
"test": "xo && nyc ava",
12+
"integration": "node ./test/integration/test.js"
1213
},
1314
"files": [
1415
"index.js",
@@ -40,22 +41,28 @@
4041
"devDependencies": {
4142
"ava": "^2.0.0",
4243
"babel-eslint": "^10.0.1",
44+
"chalk": "^2.4.2",
45+
"del": "^4.1.1",
4346
"codecov": "^3.5.0",
4447
"eslint": "^6.0.0",
4548
"eslint-ava-rule-tester": "^3.0.0",
46-
"eslint-plugin-eslint-plugin": "2.1.0",
49+
"execa": "^1.0.0",
4750
"js-combinatorics": "^0.5.4",
51+
"listr": "^0.14.3",
52+
"eslint-plugin-eslint-plugin": "2.1.0",
4853
"nyc": "^14.1.1",
4954
"outdent": "^0.7.0",
5055
"pify": "^4.0.1",
56+
"tempy": "^0.3.0",
5157
"xo": "^0.24.0"
5258
},
5359
"peerDependencies": {
5460
"eslint": ">=6"
5561
},
5662
"ava": {
5763
"files": [
58-
"!rules"
64+
"!rules",
65+
"test/*js"
5966
]
6067
},
6168
"xo": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
module.exports = {
3+
parser: 'babel-eslint',
4+
parserOptions: {
5+
ecmaFeatures: {
6+
jsx: true
7+
}
8+
},
9+
plugins: [
10+
'ava'
11+
],
12+
extends: 'plugin:ava/recommended'
13+
};

0 commit comments

Comments
 (0)