Skip to content

Commit

Permalink
test: add quick spot check for webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 27, 2018
1 parent a0aaa82 commit 451c50e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ docs/*.html

# Webpack output
dist
test/files/main.js

package-lock.json
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"nyc": "11.8.0",
"power-assert": "1.4.1",
"q": "1.5.1",
"rimraf": "2.6.2",
"semver": "5.5.0",
"tbd": "0.6.4",
"uuid": "2.0.3",
Expand Down
9 changes: 9 additions & 0 deletions test/files/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<script type="text/javascript" src="main.js"></script>
</head>

<body>
Test
</body>
</html>
10 changes: 5 additions & 5 deletions test/webpack.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const assert = require('assert');
const rimraf = require('rimraf');
const utils = require('../lib/utils');
const semver = require('semver');

Expand All @@ -19,6 +18,11 @@ describe('webpack', function() {
// acquit:ignore:end
const config = {
entry: ['./test/files/sample.js'],
// acquit:ignore:start
output: {
path: `${__dirname}/files`
},
// acquit:ignore:end
module: {
rules: [
{
Expand Down Expand Up @@ -52,8 +56,4 @@ describe('webpack', function() {
}));
// acquit:ignore:end
});

after(function(done) {
rimraf('./dist', done);
});
});

0 comments on commit 451c50e

Please sign in to comment.