mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 17:50:09 +01:00
setup ava for running tests
This commit is contained in:
parent
908abafbe2
commit
5e24097dbf
@ -4,7 +4,7 @@ node_js: node
|
|||||||
install: npm install
|
install: npm install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run clean
|
- npm test
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
@ -18,12 +18,13 @@
|
|||||||
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
|
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
|
||||||
"build:dist": "cross-env NODE_ENV=production webpack -p",
|
"build:dist": "cross-env NODE_ENV=production webpack -p",
|
||||||
"clean": "rimraf dist/bundle dist/node",
|
"clean": "rimraf dist/bundle dist/node",
|
||||||
"test": "echo \"Error: no test specified AWWWW YEAHHH\" && exit 1",
|
"test": "ava",
|
||||||
"release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
"release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||||
"release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
"release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||||
"release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"
|
"release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"ava": "^0.19.1",
|
||||||
"babel-cli": "^6.22.2",
|
"babel-cli": "^6.22.2",
|
||||||
"babel-eslint": "^7.1.1",
|
"babel-eslint": "^7.1.1",
|
||||||
"babel-loader": "^6.2.10",
|
"babel-loader": "^6.2.10",
|
||||||
|
11
test/test.js
Normal file
11
test/test.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import test from 'ava';
|
||||||
|
|
||||||
|
test('foo', t => {
|
||||||
|
t.pass();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('bar', async t => {
|
||||||
|
const bar = Promise.resolve('bar');
|
||||||
|
|
||||||
|
t.is(await bar, 'bar');
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user