From 451c50e295e2b825d5bb5455bbf4231dff88f67d Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Fri, 27 Jul 2018 17:24:28 -0400 Subject: [PATCH] test: add quick spot check for webpack build --- .gitignore | 1 + package.json | 1 - test/files/index.html | 9 +++++++++ test/webpack.test.js | 10 +++++----- 4 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 test/files/index.html diff --git a/.gitignore b/.gitignore index 78a9b4136e3..2f0fa35d26c 100644 --- a/.gitignore +++ b/.gitignore @@ -38,5 +38,6 @@ docs/*.html # Webpack output dist +test/files/main.js package-lock.json diff --git a/package.json b/package.json index 7891ca2da55..ffa5f5ce820 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/files/index.html b/test/files/index.html new file mode 100644 index 00000000000..67526cc96dd --- /dev/null +++ b/test/files/index.html @@ -0,0 +1,9 @@ + + + + + + + Test + + diff --git a/test/webpack.test.js b/test/webpack.test.js index cfd84c3634a..1d312c811cb 100644 --- a/test/webpack.test.js +++ b/test/webpack.test.js @@ -1,7 +1,6 @@ 'use strict'; const assert = require('assert'); -const rimraf = require('rimraf'); const utils = require('../lib/utils'); const semver = require('semver'); @@ -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: [ { @@ -52,8 +56,4 @@ describe('webpack', function() { })); // acquit:ignore:end }); - - after(function(done) { - rimraf('./dist', done); - }); });