Skip to content

Commit 88aa090

Browse files
committed
chore: Add test setup
1 parent b625f7f commit 88aa090

9 files changed

Lines changed: 313 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ node_modules
3131

3232
# Optional REPL history
3333
.node_repl_history
34+
3435
lib
36+
.nyc_output/

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ node_modules
3131

3232
# Optional REPL history
3333
.node_repl_history
34+
35+
.nyc_output/
36+
/test/
37+
/src/
38+
.eslintrc.js
39+
.babelrc
40+
.gitignore
41+
.npmignore

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
"url": "https://github.com/relekang/steering/issues"
2222
},
2323
"homepage": "https://github.com/relekang/steering#readme",
24+
"ava": {
25+
"files": [
26+
"test/*.js"
27+
],
28+
"babel": "inherit",
29+
"require": [
30+
"babel-register"
31+
]
32+
},
2433
"dependencies": {
2534
"babel": "6.5.2",
2635
"babel-core": "6.7.4",
@@ -32,9 +41,11 @@
3241
"xml2js": "0.4.16"
3342
},
3443
"devDependencies": {
44+
"ava": "0.13.0",
3545
"babel-cli": "6.6.5",
3646
"babel-eslint": "6.0.0-beta.6",
3747
"eslint": "2.4.0",
38-
"eslint-config-airbnb": "6.2.0"
48+
"eslint-config-airbnb": "6.2.0",
49+
"nyc": "6.1.1"
3950
}
4051
}

steering.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/checks_tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import test from 'ava'
2+
import checks from '../src/checks'
3+
4+
test('captain obvious', t => t.ok(true))

test/fixtures/eslint/extra-semi.xml

Lines changed: 275 additions & 0 deletions
Large diffs are not rendered by default.

test/index_tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import test from 'ava'
2+
import index from '../src/index'
3+
4+
test('captain obvious', t => t.ok(true))

test/parser_tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import test from 'ava'
2+
import parser from '../src/parser'
3+
4+
test('captain obvious', t => t.ok(true))

test/utils_tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import test from 'ava'
2+
import utils from '../src/utils'
3+
4+
test('captain obvious', t => t.ok(true))

0 commit comments

Comments
 (0)