Skip to content

Commit 4aa9d9a

Browse files
author
Tomek Wiszniewski
committed
Format test output in the browser console
1 parent 08ab1a9 commit 4aa9d9a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"ord": "0.1.1",
4545
"parametric-svg-spec": "git://github.com/parametric-svg/spec.git#5bda58c",
4646
"raw-loader": "0.5.1",
47+
"tap-dev-tool": "1.3.0",
4748
"tap-spec": "2.2.2",
4849
"tape-catch": "1.0.4",
4950
"tosource": "1.0.0",

test/runner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<script src="test.js"></script>
2+
<script src="runner.js"></script>
33

44
<!-- https://github.com/henrytseng/hostr/tree/1cfbe99#livereload -->
55
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

test/runner.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('tap-dev-tool/register');
2+
require('../test');

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = {
2-
entry: './test.js',
2+
entry: './test/runner.js',
33

44
output: {
55
path: __dirname + '/.webpack',
6-
filename: 'test.js',
6+
filename: 'runner.js',
77
},
88

99
module: {loaders: [{

0 commit comments

Comments
 (0)