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

Lines changed: 2 additions & 1 deletion
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
Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)