Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Jun 6, 2019
1 parent a4597dd commit ba0116a
Show file tree
Hide file tree
Showing 18 changed files with 86 additions and 43 deletions.
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -9,7 +9,7 @@ test("find-recursively", () => {
"--output-chunk-filename",
"[id].chunk.js",
"--target",
"async-node",
"async-node"
]);
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
Expand Down
2 changes: 1 addition & 1 deletion test/binCases/config-location/not-found/not-found.test.js
Expand Up @@ -11,7 +11,7 @@ test("not-found", () => {
"--target",
"async-node",
"--mode",
"production",
"production"
]);
expect(code).toBe(0);
expect(stdout).toContain("./src/index.js");
Expand Down
Expand Up @@ -13,7 +13,7 @@ test("set-explicitly", () => {
"--output-chunk-filename",
"[id].chunk.js",
"--target",
"async-node",
"async-node"
]);
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
Expand Down
Expand Up @@ -9,7 +9,7 @@ test("set-implicitly", () => {
"--output-chunk-filename",
"[id].chunk.js",
"--target",
"async-node",
"async-node"
]);
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
Expand Down
Expand Up @@ -3,13 +3,7 @@
const { run } = require("../../../testUtils");

test("webpack-babel-config", () => {
const { stdout, stderr } = run(__dirname, [
"--target",
"async-node",
"-r",
"esm",
"@babel/register"
]);
const { stdout, stderr } = run(__dirname, ["--target", "async-node", "-r", "esm", "@babel/register"]);
expect(stdout).toContain("es6.js");
expect(stderr).toHaveLength(0);
});
Expand Up @@ -9,7 +9,7 @@ test("find-recursively", () => {
"--output-chunk-filename",
"[id].chunk.js",
"--target",
"async-node",
"async-node"
]);
expect(code).toBe(0);
expect(stdout).toEqual(expect.anything());
Expand Down
1 change: 0 additions & 1 deletion test/binCases/config-type/array/webpack.config.js
Expand Up @@ -12,4 +12,3 @@ module.exports = [
}
}
];

1 change: 0 additions & 1 deletion test/binCases/config-type/invalid-array/webpack.config.js
Expand Up @@ -13,4 +13,3 @@ module.exports = [
}
}
];

1 change: 0 additions & 1 deletion test/binCases/config-type/invalid-type/webpack.config.js
@@ -1,2 +1 @@
module.exports = 100;

2 changes: 1 addition & 1 deletion test/binCases/entry/display-entrypoints/webpack.config.js
@@ -1,5 +1,5 @@
var path = require("path");

module.exports = {
entry: path.resolve(__dirname, "./index"),
entry: path.resolve(__dirname, "./index")
};
2 changes: 1 addition & 1 deletion test/binCases/stats/single-config/single-config.test.js
@@ -1,6 +1,6 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */

Expand Down
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down Expand Up @@ -107,6 +113,5 @@ test.skip("info-verbosity-verbose", done => {
default:
break;
}

});
});
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down Expand Up @@ -86,4 +92,3 @@ test.skip("multi-config-watch-opt", done => {
expect(error.toString()).toContain("webpack is watching the files");
});
});

10 changes: 8 additions & 2 deletions test/binCases/watch/multi-config/multi-config.test.js
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down Expand Up @@ -86,4 +92,3 @@ test.skip("single-config-watch-opt", done => {
expect(error.toString()).toContain("webpack is watching the files");
});
});

10 changes: 8 additions & 2 deletions test/binCases/watch/single-config/single-config.test.js
@@ -1,11 +1,17 @@
"use strict";

jest.setTimeout(10E6);
jest.setTimeout(10e6);
/* eslint-disable node/no-unsupported-features */
/* eslint-disable node/no-unsupported-features/es-syntax */
const fs = require("fs");
const path = require("path");
const { extractSummary, extractHash, appendDataIfFileExists, runAndGetWatchProc, copyFile } = require("../../../testUtils");
const {
extractSummary,
extractHash,
appendDataIfFileExists,
runAndGetWatchProc,
copyFile
} = require("../../../testUtils");

const fileToChange = "index.js";
const fileToChangePath = path.resolve(__dirname, fileToChange);
Expand Down

0 comments on commit ba0116a

Please sign in to comment.