Skip to content

Commit 12f9df9

Browse files
committed
Update to use Jest
1 parent 16ce15d commit 12f9df9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+6016
-435
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ test/fixtures/**/dir
55
.coveralls.yml
66
*.log
77
/dist
8-
.vscode
8+
.vscode/
9+
.yarn-error.log

test/css-entry-array.test.js renamed to __tests__/css-entry-array.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const dirPath = path.join(__dirname, './fixtures/css-array-entry/dir');
66
const fileShouldNotExist = require('./utils/file-should-not-exist.js');
77

88
describe('Array of CSS Dependencies as Entry', () => {
9-
before(done => {
9+
beforeEach(done => {
1010
rimraf(dirPath, () => {
1111
done();
1212
});
@@ -20,7 +20,7 @@ describe('Array of CSS Dependencies as Entry', () => {
2020
});
2121

2222
it('JS entry source map should not exist', done => {
23-
var optionSourceMap = Object.assign({}, options);
23+
const optionSourceMap = Object.assign({}, options);
2424
optionSourceMap.devtool = 'source-map';
2525

2626
webpack(optionSourceMap, () => {

__tests__/fixtures/css-array-entry/dir/a.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/css-array-entry/dir/a.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/js-file-entry/dir/b.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/js-file-entry/dir/b.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/preview/dir/b.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/preview/dir/b.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/preview/dir/b.js

+125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/preview/dir/b.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/verbose/dir/b.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__tests__/fixtures/options/verbose/dir/b.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)