Skip to content

Commit

Permalink
[DDW-130] improve test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikGuzei committed Mar 12, 2018
1 parent cc494a4 commit 8ee868a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/tests/paper-wallets-tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const expect = require('chai').expect;
const CardanoCrypto = require('../../dist/index.js');

// Implemented proposal: https://github.com/input-output-hk/cardano-specs/blob/master/proposals/0001-PaperWallet.md
const TEST_VECTORS = [
{
iv: new Uint8Array([0x00, 0x00, 0x00, 0x00]),
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "webpack",
"test": "mocha js/tests",
"test-watch": "nodemon --watch js --exec npm run test",
"build-and-test": "npm run build && npm run test",
"test-watch": "nodemon --watch js --exec npm run build-and-test",
"dev": "nodemon --watch js --exec npm run build",
"prepublishOnly": "./build"
},
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ module.exports = {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
use: {
loader: 'babel-loader',
options: {
cacheDirectory: true,
}
},
},
{
test: /\.wasm$/,
Expand Down

0 comments on commit 8ee868a

Please sign in to comment.