Skip to content

Commit 3a5c898

Browse files
committed
First pass at tape tests instead of bats tests
Main advantage is that these can run on windows more easily, thus fixing #249
1 parent 41205ed commit 3a5c898

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

appveyor.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ init:
44
Install-Product node 6
55
66
npm i -g serverless
7-
build: off
8-
test_script:
9-
- cmd: >-
10-
cd example
117
128
npm i
13-
14-
sls package --pythonBin=c:/python36/python.exe
9+
build: off
10+
test_script:
11+
- cmd: node test.js

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@
3838
"main": "index.js",
3939
"bin": {},
4040
"scripts": {
41-
"test": "bats test.bats",
41+
"test": "node tests.js && bats test.bats",
4242
"lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)",
4343
"format": "prettier --write index.js lib/*.js"
4444
},
4545
"devDependencies": {
4646
"eslint": "*",
47-
"prettier": "*"
47+
"prettier": "*",
48+
"tape": "^4.9.1"
4849
},
4950
"dependencies": {
5051
"appdirectory": "^0.1.0",

0 commit comments

Comments
 (0)