Compile test cases to run tests without using Babel

This commit is contained in:
Chris Clark
2015-08-24 16:58:50 -07:00
parent 44d00d5ef4
commit c4fa4c237c
2 changed files with 8 additions and 4 deletions

View File

@@ -24,9 +24,13 @@ unittest() {
npm run coveralls npm run coveralls
# test compiled version in "dist/npm" # test compiled version in "dist/npm"
ln -nfs ../../dist/npm/core test/node_modules/ripple-lib babel -D --optional runtime --ignore "**/node_modules/**" -d test-compiled/ test/
ln -nfs ../../dist/npm test/node_modules/ripple-api echo "--reporter spec --timeout 5000 --slow 500" > test-compiled/mocha.opts
npm test mkdir -p test-compiled/node_modules
ln -nfs ../../dist/npm/core test-compiled/node_modules/ripple-lib
ln -nfs ../../dist/npm test-compiled/node_modules/ripple-api
mocha --opts test-compiled/mocha.opts test-compiled
rm -rf test-compiled
} }
oneNode() { oneNode() {

View File

@@ -3,7 +3,7 @@
const _ = require('lodash'); const _ = require('lodash');
const hashes = require('../../hashes'); const hashes = require('../../hashes');
const addresses = require('../../addresses'); const addresses = require('../../addresses');
const SerializedObject = require('../../../../src/core').SerializedObject; const SerializedObject = require('ripple-lib').SerializedObject;
const AccountSet = require('./tx/account-set.json'); const AccountSet = require('./tx/account-set.json');
const NotFound = require('./tx/not-found.json'); const NotFound = require('./tx/not-found.json');