Commit e777d7e 1 parent dccd98e commit e777d7e Copy full SHA for e777d7e
File tree 4 files changed +2095
-22
lines changed
4 files changed +2095
-22
lines changed Original file line number Diff line number Diff line change 11
11
- checkout
12
12
- restore_cache :
13
13
key : dependency-cache-{{ checksum "yarn.lock" }}
14
+ - run :
15
+ name : Test
16
+ command : yarn test
14
17
- run :
15
18
name : Install dependencies
16
19
command : yarn
Original file line number Diff line number Diff line change 15
15
" lib" ,
16
16
" utils"
17
17
],
18
- "scripts" : {},
18
+ "scripts" : {
19
+ "test" : " ava"
20
+ },
19
21
"dependencies" : {
20
22
"cac" : " ^6.5.2" ,
21
23
"cross-spawn" : " ^6.0.5" ,
24
26
"multimatch" : " ^4.0.0"
25
27
},
26
28
"devDependencies" : {
29
+ "ava" : " ^2.1.0" ,
27
30
"husky" : " ^1.0.0-rc.13" ,
28
31
"lint-staged" : " ^7.2.0" ,
29
32
"prettier" : " ^1.17.0"
Original file line number Diff line number Diff line change
1
+ import test from 'ava'
2
+ import spawn from 'cross-spawn'
3
+
4
+ test ( 'main' , t => {
5
+ const ps = spawn . sync ( './bin/cli.js' , [ 'test' ] )
6
+ const stdout = ps . stdout . toString ( )
7
+ t . is ( stdout , '' )
8
+ } )
You can’t perform that action at this time.
0 commit comments