Skip to content

Commit 451c50e

Browse files
committedJul 27, 2018
test: add quick spot check for webpack build
1 parent a0aaa82 commit 451c50e

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ docs/*.html
3838

3939
# Webpack output
4040
dist
41+
test/files/main.js
4142

4243
package-lock.json

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"nyc": "11.8.0",
5555
"power-assert": "1.4.1",
5656
"q": "1.5.1",
57-
"rimraf": "2.6.2",
5857
"semver": "5.5.0",
5958
"tbd": "0.6.4",
6059
"uuid": "2.0.3",

‎test/files/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<script type="text/javascript" src="main.js"></script>
4+
</head>
5+
6+
<body>
7+
Test
8+
</body>
9+
</html>

‎test/webpack.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const assert = require('assert');
4-
const rimraf = require('rimraf');
54
const utils = require('../lib/utils');
65
const semver = require('semver');
76

@@ -19,6 +18,11 @@ describe('webpack', function() {
1918
// acquit:ignore:end
2019
const config = {
2120
entry: ['./test/files/sample.js'],
21+
// acquit:ignore:start
22+
output: {
23+
path: `${__dirname}/files`
24+
},
25+
// acquit:ignore:end
2226
module: {
2327
rules: [
2428
{
@@ -52,8 +56,4 @@ describe('webpack', function() {
5256
}));
5357
// acquit:ignore:end
5458
});
55-
56-
after(function(done) {
57-
rimraf('./dist', done);
58-
});
5959
});

0 commit comments

Comments
 (0)
Please sign in to comment.