From a19d7991c3260e471feb27b662bd1ba01569ef86 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 12 Dec 2021 16:57:14 -0500 Subject: [PATCH] chore: update cSpell globs and fix typos --- cspell.json | 482 ++++++++++-------- declarations.d.ts | 2 +- examples/module-federation/index.html | 2 +- lib/optimize/ConcatenatedModule.js | 2 +- package.json | 2 +- test/BuildDependencies.longtest.js | 2 +- test/Cli.basictest.js | 1 + test/Errors.test.js | 3 +- test/ProgressPlugin.test.js | 2 +- test/Validation.test.js | 3 +- test/WasmHashes.unittest.js | 12 +- test/cases/chunks/inline-options/index.js | 4 +- test/cases/chunks/named-chunks/index.js | 1 + .../object-define-property-replace/index.js | 2 +- ...lysable-module.js => analyzable-module.js} | 0 test/cases/mjs/non-enumerable/errors.js | 4 +- test/cases/mjs/non-enumerable/test.js | 8 +- test/cases/mjs/non-enumerable/test.mjs | 16 +- test/cases/mjs/non-enumerable/warnings.js | 4 +- .../parsing/harmony-commonjs-mix/module1.js | 2 +- .../parsing/harmony-star-conflict/index.js | 2 +- test/cases/parsing/import-define/index.js | 2 +- .../side-effects/order-issue-7665/index.js | 2 +- .../multi-entry-missing-module/index.js | 2 +- .../inner-graph/issue-11678/module.js | 4 +- .../split-chunks/max-size-casing/index.js | 2 +- test/fixtures/buildDependencies/run.js | 2 +- 27 files changed, 314 insertions(+), 256 deletions(-) rename test/cases/mjs/non-enumerable/{analysable-module.js => analyzable-module.js} (100%) diff --git a/cspell.json b/cspell.json index bf63b78ff..16dc22084 100644 --- a/cspell.json +++ b/cspell.json @@ -1,241 +1,295 @@ { - "version": "0.1", + "version": "0.2", "language": "en", "words": [ - "webpack", - "webpack's", - "endregion", - "entrypoint", - "entrypoints", - "splitted", - "dedupe", - "deduplication", - "deduplicating", - "unoptimized", - "prefetch", - "prefetching", - "prefetched", - "preload", - "preloading", - "preloaded", - "gzipping", - "brotli", - "submodule", - "submodules", - "typeof", - "devtool", - "wasi", - "wasm", - "webassembly", - "IIFE", - "IIFE's", - "bigint", - "unexception", - "etag", - "builtins", - "uncacheable", - "cacheable", - "mergeable", - "devtools", - "transpiled", - "mixins", - "subdir", - "errored", - "eval", - "multiplicator", - "finalizer", - "promisify", "absolutify", - "camelcase", - "filebase", - "moduleid", - "modulehash", - "chunkfilename", - "chunkname", - "chunkhash", - "fullhash", - "contenthash", - "hashable", - "hotupdatechunk", - "middleware", - "middlewares", - "serializer", - "serializers", - "deserialization", - "referenceable", - "polyfilled", - "transpiling", - "transpile", - "transpiles", - "snapshotting", - "sourcemap", - "nosources", - "filepath", - "subpath", - "pathinfo", - "undelayed", - "microtask", - "microtasks", - "deopt", - "deopts", - "sandboxed", - "mangleable", - "passthrough", - "prioritise", - "booleanized", - "serializables", - "unreviewed", - "unshifted", - "nonrecursive", - "symlinked", - "subfolder", - "prettierrc", - "templated", - "templating", - "kibibytes", - "mebibytes", - "gibibytes", - "typechecker", - "recurse", - "preparsed", + "acircular", + "amdmodule", + "assemblyscript", + "asyncloader", + "atlaskit", "autocrlf", - "lcov", - "lcovonly", - "gcov", - "lintunit", - "instanceof", - "loglevel", - "runtime", - "runtimes", - "mimetype", - "testvalue", - "unusedkey", - "unusedvalue", - "performant", - "watchings", - "jsons", - "exitance", - "ident", - "idents", - "globstar", - "inversed", - "concated", - "RBDT", - "opensource", + "babeljs", + "backport", + "backported", + "bigint", + "Biró", + "bitfield", + "bomfile", + "booleanized", + "boolish", + "brotli", + "browserified", + "browserslist", + "browserslistrc", + "Brumme", "bugfix", "bugfixes", - "declarators", - "rrrlll", - "undefine", - "finializer", - "quasis", - "hashs", - "functype", - "funcindex", - "Descr", - "valtype", - "informations", - "reexecuted", - "global's", - "unsplittable", + "builtins", + "cacheable", + "callme", + "camelcase", "chainable", - "metacharacters", - "Xarray", - "Xfactory", - "Xmodule", - "Xexports", - "moji", - "bitfield", - "precompute", - "toplevel", - "modulos", - "untaint", - "ufeff", - "timestamping", - "loadername", - "laof", + "chunkfilename", + "chunkhash", + "chunkname", + "cmodule", + "codecov", "cofounder", - "hashchange", - "popstate", - "hotpink", - "navigations", + "Collet's", "compat", - "noimport", - "tmpl", + "concated", + "contenthash", + "contextifies", + "crossorigin", "csvg", - "repo", - "repos", - "triaging", - "valign", - "returnfalse", - "return'development", - "datastructures", - "prewalking", - "overridables", - "overridable", + "cujojs", + "Dani", "darkblue", "darkgreen", "darkred", - "eqeqeq", - "boolish", - "analysing", - "etags", + "datastructures", + "declarators", + "dedupe", + "deduplicating", + "deduplication", + "defunctzombie", + "deopt", + "deopts", + "dependabot", + "Descr", + "deserialization", "destructure", - "onconnect", - "nwjs", - "redeclaration", - "kaios", - "parallelism", - "gitattributes", - "hashbang", - - "webassemblyjs", - "assemblyscript", - "fsevents", - "watchpack", - "tapable", - "junit", - "memfs", - "rimraf", + "devtool", + "devtools", + "donotcallme", + "endregion", + "entrypoint", + "entrypoints", + "Eoksni", + "eqeqeq", + "errored", + "esmodule", "estree", - "posthtml", + "etag", + "etags", + "eval", + "Ewald", + "exitance", + "filebase", + "fileoverview", + "filepath", + "finalizer", + "finializer", + "fsevents", + "fullhash", + "funcindex", + "functype", + "gcov", + "gibibytes", + "gitattributes", + "gitter", + "global's", + "globstar", + "gzipping", + "hashable", + "hashbang", + "hashchange", + "hashs", + "hotpink", + "hotupdatechunk", + "ident", + "idents", + "IIFE's", + "IIFE", + "informations", + "instanceof", + "inversed", + "jhnns", + "jrburke", + "jsfile", + "jsons", + "junit", + "Junya", + "kaios", + "Kees", + "kibibytes", + "Kluskens", + "Koppers", + "laof", + "Larkin", + "lcov", + "lcovonly", + "lintunit", + "loadername", + "loglevel", + "longnameforexport", + "mangleable", "MCEP", + "mebibytes", + "medikoo", + "membertest", + "memfs", + "mergeable", + "metacharacters", + "microtask", + "microtasks", + "middleware", + "middlewares", + "mimetype", + "mixins", + "modulehash", + "moduleid", + "modulos", + "moji", + "MONEI", + "mult", + "multiplicator", + "mylibrary", + "mynamespace", + "navigations", + "nmodule", + "noimport", + "nonexistentfile", + "nonrecursive", + "nosource", + "nosources", + "nwjs", + "onconnect", + "opencollective", + "opensource", + "opuuus", + "overridable", + "overridables", + "parallelism", + "passthrough", + "pathinfo", + "performant", + "Phoscur", + "pmodule", + "pnpm", + "polyfilled", + "popstate", + "posthtml", + "precompute", + "prefetch", + "prefetched", + "prefetching", + "preload", + "preloaded", + "preloading", + "preparsed", + "prettierrc", + "prewalking", + "prioritise", + "promisify", + "quasis", + "queryloader", + "querystrings", + "RBDT", + "recurse", + "redeclaration", + "reexecuted", + "referenceable", + "referencer", + "repo", + "repos", + "return'development", + "returnfalse", + "revparse", + "rimraf", + "Rivest", + "rrrlll", + "runtime", + "runtimes", + "samsunginternet", + "sandboxed", + "serializables", + "serializer", + "serializers", + "shama", + "skypack", + "snapshotting", + "sokra", + "somepackage", + "somepath", + "sourcemap", + "sourcemapped", + "splitted", + "stylesheet", + "subdir", + "subfolder", + "submodule", + "submodules", + "subpath", + "substack", + "symlinked", + "syncloader", + "systemjs", + "tapable", + "templated", + "templating", + "testcase", + "testlink", + "testloader", + "testvalue", + "timestamping", + "tmpl", + "toplevel", "traceur", - "atlaskit", + "transpile", + "transpiled", + "transpiles", + "transpiling", + "triaging", + "Tshs", + "typechecker", + "typeof", + "ufeff", + "uncacheable", + "undefine", + "undelayed", + "unexception", + "unoptimized", + "unreviewed", + "unshifted", + "unsplittable", + "untaint", + "unusedkey", + "unusedvalue", + "url's", + "valign", + "valtype", + "wasi", + "wasm", + "watchings", + "watchpack", + "webassembly", + "webassemblyjs", + "webmake", + "webpack's", + "webpack", + "Xarray", + "Xexports", + "Xfactory", + "Xmodule", "xxhash", "xxhashjs", - "systemjs", - "skypack", - - "sokra", - "Koppers", - "Junya", - "Eoksni", - "Ewald", - "Larkin", - "Kees", - "Kluskens", - "Phoscur", - "defunctzombie", - "shama", - "jhnns", - "substack", - "MONEI", - "medikoo", - "webmake", - "jrburke", - "gitter", - "codecov", - "opencollective", - "dependabot", - "browserslist", - "samsunginternet", - "pnpm" + "Yann" ], "ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"], "ignorePaths": [ "**/dist/**", "examples/**/README.md", - "**/webpack.lock.data/**" + "**/webpack.lock.data/**", + "package.json", + "yarn.lock", + "types.d.ts", + "**/**/*.snap", + "test/cases/json/weird-properties/globals.json", + "**/*.svg", + "**/*.wasm", + "test/**/module.js", + "test/**" ] } diff --git a/declarations.d.ts b/declarations.d.ts index ea7c1ab61..a3066e990 100644 --- a/declarations.d.ts +++ b/declarations.d.ts @@ -204,7 +204,7 @@ declare module "@webassemblyjs/ast" { raw?: string ): FloatLiteral; export function global(globalType: string, nodes: Node[]): Global; - export function identifier(indentifier: string): Identifier; + export function identifier(identifier: string): Identifier; export function funcParam(valType: string, id: Identifier): FuncParam; export function instruction(inst: string, args?: Node[]): Instruction; export function callInstruction(funcIndex: Index): CallInstruction; diff --git a/examples/module-federation/index.html b/examples/module-federation/index.html index 3bb627ed7..f5a0a1ec2 100644 --- a/examples/module-federation/index.html +++ b/examples/module-federation/index.html @@ -67,7 +67,7 @@
- + diff --git a/lib/optimize/ConcatenatedModule.js b/lib/optimize/ConcatenatedModule.js index ad28a23e2..aa2acc687 100644 --- a/lib/optimize/ConcatenatedModule.js +++ b/lib/optimize/ConcatenatedModule.js @@ -1702,7 +1702,7 @@ ${defineGetters}` info.globalScope = globalScope; info.moduleScope = moduleScope; } catch (err) { - err.message += `\nwhile analysing module ${m.identifier()} for concatenation`; + err.message += `\nwhile analyzing module ${m.identifier()} for concatenation`; throw err; } } diff --git a/package.json b/package.json index d4d2b84c2..aa1a0c26b 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "type-lint": "tsc", "typings-test": "tsc -p tsconfig.types.test.json", "module-typings-test": "tsc -p tsconfig.module.test.json", - "spellcheck": "cspell \"{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}\" \"*.md\"", + "spellcheck": "cspell \"**/*\"", "special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals", "special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write", "fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix", diff --git a/test/BuildDependencies.longtest.js b/test/BuildDependencies.longtest.js index ea2bf0901..d9fb1ba43 100644 --- a/test/BuildDependencies.longtest.js +++ b/test/BuildDependencies.longtest.js @@ -136,7 +136,7 @@ describe("BuildDependencies", () => { "export default 0;" ); await exec("0", { - invalidBuildDepdencies: true, + invalidBuildDependencies: true, buildTwice: true, warnings: [/Can't resolve 'should-fail-resolving'/] }); diff --git a/test/Cli.basictest.js b/test/Cli.basictest.js index 7a82fd1bc..0d82bef95 100644 --- a/test/Cli.basictest.js +++ b/test/Cli.basictest.js @@ -264,6 +264,7 @@ describe("Cli", () => { `) ); + // cspell:ignore filsystem test( "errors", { diff --git a/test/Errors.test.js b/test/Errors.test.js index 53ca3c778..ad25ba9e7 100644 --- a/test/Errors.test.js +++ b/test/Errors.test.js @@ -116,7 +116,7 @@ async function compile(options) { }); }); } catch (err) { - // capture sync throwm errors + // capture sync thrown errors reject(err); } }); @@ -644,6 +644,7 @@ describe("loaders", () => { `); }); + // cspell:ignore doesnt it("should emit error for doesnt-exist-loader", async () => { await expect(compile({ entry: "./doesnt-exist-loader!./entry-point.js" })) .resolves.toMatchInlineSnapshot(` diff --git a/test/ProgressPlugin.test.js b/test/ProgressPlugin.test.js index ffd01e7ec..ccd0e1066 100644 --- a/test/ProgressPlugin.test.js +++ b/test/ProgressPlugin.test.js @@ -111,7 +111,7 @@ describe("ProgressPlugin", function () { nanTest(createMultiCompiler) ); it( - "should not contain NaN as a percentage when it is applied to MultiCompiler (paralellism: 1)", + "should not contain NaN as a percentage when it is applied to MultiCompiler (parallelism: 1)", nanTest(() => createMultiCompiler(undefined, { parallelism: 1 })) ); diff --git a/test/Validation.test.js b/test/Validation.test.js index 45b7375c0..80c1d4f21 100644 --- a/test/Validation.test.js +++ b/test/Validation.test.js @@ -404,6 +404,7 @@ describe("Validation", () => { `) ); + // cspell:Ignore protuction createTestCase( "invalid mode", { @@ -603,7 +604,7 @@ describe("Validation", () => { `) ); createTestCase( - "opimization.moduleIds", + "optimization.moduleIds", { optimization: { hashedModuleIds: true diff --git a/test/WasmHashes.unittest.js b/test/WasmHashes.unittest.js index 06396c82a..2dae9eaa1 100644 --- a/test/WasmHashes.unittest.js +++ b/test/WasmHashes.unittest.js @@ -131,7 +131,7 @@ for (const name of Object.keys(wasmHashes)) { }); }; - const uncodeRangeTest = (name, start, end) => { + const unicodeRangeTest = (name, start, end) => { const codePoints = []; for (let i = start; i <= end; i++) { codePoints.push(i); @@ -139,11 +139,11 @@ for (const name of Object.keys(wasmHashes)) { unicodeTest(name, codePoints); }; - uncodeRangeTest("Latin-1 Supplement", 0xa0, 0xff); - uncodeRangeTest("Latin Extended", 0x100, 0x24f); - uncodeRangeTest("Thaana", 0x780, 0x7bf); - uncodeRangeTest("Devanagari", 0x900, 0x97f); - uncodeRangeTest("Emoticons", 0x1f600, 0x1f64f); + unicodeRangeTest("Latin-1 Supplement", 0xa0, 0xff); + unicodeRangeTest("Latin Extended", 0x100, 0x24f); + unicodeRangeTest("Thaana", 0x780, 0x7bf); + unicodeRangeTest("Devanagari", 0x900, 0x97f); + unicodeRangeTest("Emoticons", 0x1f600, 0x1f64f); unicodeTest("with zero char", "abc\0💩"); unicodeTest("weird code point after long code point", [1497, 243248]); diff --git a/test/cases/chunks/inline-options/index.js b/test/cases/chunks/inline-options/index.js index 4b127cc08..e4a83c178 100644 --- a/test/cases/chunks/inline-options/index.js +++ b/test/cases/chunks/inline-options/index.js @@ -60,7 +60,7 @@ it("should be able to combine chunks by name", function () { case "d": return import(/* webpackChunkName: "name-3" */ "./dir7/d"); default: - throw new Error("Unexcepted test data"); + throw new Error("Unexpected test data"); } } return testChunkLoading(load, false, true); @@ -86,7 +86,7 @@ it("should be able to use weak mode (without context)", function () { case "c": return import(/* webpackMode: "weak" */ "./dir9/c"); default: - throw new Error("Unexcepted test data"); + throw new Error("Unexpected test data"); } } require("./dir9/a"); // chunks served manually by the user diff --git a/test/cases/chunks/named-chunks/index.js b/test/cases/chunks/named-chunks/index.js index 1897b9a0b..0f3bad621 100644 --- a/test/cases/chunks/named-chunks/index.js +++ b/test/cases/chunks/named-chunks/index.js @@ -94,6 +94,7 @@ it("should be able to use named chunks in import()", function(done) { }); it("should be able to use named chunk in context import()", function(done) { + // cspell:ignore mpty var mpty = "mpty"; var sync = false; import("./e" + mpty + "2" /* webpackChunkName: "context-named-chunk" */).then(function(result) { diff --git a/test/cases/cjs-tree-shaking/object-define-property-replace/index.js b/test/cases/cjs-tree-shaking/object-define-property-replace/index.js index 47e843e3a..b93250f85 100644 --- a/test/cases/cjs-tree-shaking/object-define-property-replace/index.js +++ b/test/cases/cjs-tree-shaking/object-define-property-replace/index.js @@ -1,3 +1,3 @@ -it("should replace Object.defineProperty correctly with brakets", () => { +it("should replace Object.defineProperty correctly with brackets", () => { expect(require("./module").test).toBe(true); }); diff --git a/test/cases/mjs/non-enumerable/analysable-module.js b/test/cases/mjs/non-enumerable/analyzable-module.js similarity index 100% rename from test/cases/mjs/non-enumerable/analysable-module.js rename to test/cases/mjs/non-enumerable/analyzable-module.js diff --git a/test/cases/mjs/non-enumerable/errors.js b/test/cases/mjs/non-enumerable/errors.js index 4b271fd56..95a95c2df 100644 --- a/test/cases/mjs/non-enumerable/errors.js +++ b/test/cases/mjs/non-enumerable/errors.js @@ -1,8 +1,8 @@ module.exports = [ [ - /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/ + /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ ], [ - /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/ + /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ ] ]; diff --git a/test/cases/mjs/non-enumerable/test.js b/test/cases/mjs/non-enumerable/test.js index f61097523..d5d2e7f4b 100644 --- a/test/cases/mjs/non-enumerable/test.js +++ b/test/cases/mjs/non-enumerable/test.js @@ -1,7 +1,7 @@ -import * as m1 from "./analysable-module.js"; +import * as m1 from "./analyzable-module.js"; import * as m2 from "./weird-module.js"; import * as m3 from "./esModule.js"; -import d1 from "./analysable-module.js"; +import d1 from "./analyzable-module.js"; import d2 from "./weird-module.js"; import d3 from "./esModule.js"; @@ -22,7 +22,7 @@ it("should include non-enumerable properties (non-mjs)", () => { }); it("should include non-enumerable properties (non-mjs, promise)", () => - import("./analysable-module").then(m1 => { + import("./analyzable-module").then(m1 => { const ns = m1; expect(m1.prop).toBe(true); @@ -108,7 +108,7 @@ it("should include non-enumerable properties with __esModule (non-mjs)", () => { }); it("should include non-enumerable properties with __esModule (non-mjs, promise)", () => - import("./analysable-module").then(m3 => { + import("./analyzable-module").then(m3 => { const ns = m3; expect(m3.prop).toBe(true); diff --git a/test/cases/mjs/non-enumerable/test.mjs b/test/cases/mjs/non-enumerable/test.mjs index f205cdaad..a4c1bf691 100644 --- a/test/cases/mjs/non-enumerable/test.mjs +++ b/test/cases/mjs/non-enumerable/test.mjs @@ -1,11 +1,11 @@ -import * as m1 from "./analysable-module.js"; +import * as m1 from "./analyzable-module.js"; import * as m2 from "./weird-module.js"; import * as m3 from "./esModule.js"; -import d1 from "./analysable-module.js"; +import d1 from "./analyzable-module.js"; import d2 from "./weird-module.js"; import d3 from "./esModule.js"; -it("should include non-enumable properties (mjs)", () => { +it("should include non-enumerable properties (mjs)", () => { const ns = m1; expect(m1.prop).toBe(true); @@ -21,8 +21,8 @@ it("should include non-enumable properties (mjs)", () => { expect(ns.__esModule).toBe(true); }); -it("should include non-enumable properties (mjs, promise)", () => - import("./analysable-module.js").then(m1 => { +it("should include non-enumerable properties (mjs, promise)", () => + import("./analyzable-module.js").then(m1 => { const ns = m1; expect(m1.prop).toBe(true); @@ -91,7 +91,7 @@ it("should not include prototype properties and symbols (mjs, promise)", () => expect(ns.__esModule).toBe(true); })); -it("should include non-enumable properties with __esModule (non-mjs)", () => { +it("should include non-enumerable properties with __esModule (non-mjs)", () => { const ns = m3; expect(m3.prop).toBe(true); @@ -107,8 +107,8 @@ it("should include non-enumable properties with __esModule (non-mjs)", () => { expect(ns.__esModule).toBe(true); }); -it("should include non-enumable properties with __esModule (non-mjs, promise)", () => - import("./analysable-module.js").then(m3 => { +it("should include non-enumerable properties with __esModule (non-mjs, promise)", () => + import("./analyzable-module.js").then(m3 => { const ns = m3; expect(m3.prop).toBe(true); diff --git a/test/cases/mjs/non-enumerable/warnings.js b/test/cases/mjs/non-enumerable/warnings.js index 2dacc856e..d2ed9734d 100644 --- a/test/cases/mjs/non-enumerable/warnings.js +++ b/test/cases/mjs/non-enumerable/warnings.js @@ -1,11 +1,11 @@ module.exports = [ [ - /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/ + /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ ], [/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/], [/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/], [ - /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/ + /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ ], [/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/], [/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/] diff --git a/test/cases/parsing/harmony-commonjs-mix/module1.js b/test/cases/parsing/harmony-commonjs-mix/module1.js index aa3681a49..45bb8d02e 100644 --- a/test/cases/parsing/harmony-commonjs-mix/module1.js +++ b/test/cases/parsing/harmony-commonjs-mix/module1.js @@ -14,6 +14,6 @@ expect(function() { export default 1234; if(eval("typeof exports !== \"undefined\"")) { - // exports is node.js exports and not webpacks + // exports is node.js exports and not webpack's expect(Object.keys(exports)).toEqual([]); } diff --git a/test/cases/parsing/harmony-star-conflict/index.js b/test/cases/parsing/harmony-star-conflict/index.js index 8363d6963..b3d2c53fb 100644 --- a/test/cases/parsing/harmony-star-conflict/index.js +++ b/test/cases/parsing/harmony-star-conflict/index.js @@ -28,7 +28,7 @@ import { named6 as snamed6 } from "./named-with-namespace-no-side"; -it("should point out conflicts from named to namespace (without sideeffects)", () => { +it("should point out conflicts from named to namespace (without side effects)", () => { expect(snamed1).toBe(1); expect(snamed2).toBe(2); expect(snamed3).toBe(2); diff --git a/test/cases/parsing/import-define/index.js b/test/cases/parsing/import-define/index.js index 4ac3fd353..10db43f27 100644 --- a/test/cases/parsing/import-define/index.js +++ b/test/cases/parsing/import-define/index.js @@ -6,7 +6,7 @@ it("should allow to import a variable named define (call)", () => { expect(define()).toBe("ok"); }); -it("should allow to import a variable named define (expresion)", () => { +it("should allow to import a variable named define (expression)", () => { const d = i(define); expect(d()).toBe("ok"); }); diff --git a/test/cases/side-effects/order-issue-7665/index.js b/test/cases/side-effects/order-issue-7665/index.js index 378de0e89..85e9d3df5 100644 --- a/test/cases/side-effects/order-issue-7665/index.js +++ b/test/cases/side-effects/order-issue-7665/index.js @@ -1,7 +1,7 @@ import array from "./tracker"; import { b } from "./module"; -it("should evaulate modules in the correct order", () => { +it("should evaluate modules in the correct order", () => { expect(b).toEqual("b"); expect(array).toEqual(["b", "a"]); }) diff --git a/test/configCases/errors/multi-entry-missing-module/index.js b/test/configCases/errors/multi-entry-missing-module/index.js index b879d9379..b7603e051 100644 --- a/test/configCases/errors/multi-entry-missing-module/index.js +++ b/test/configCases/errors/multi-entry-missing-module/index.js @@ -1,5 +1,5 @@ it("should ignore missing modules as entries", function() { - // a.js and b.js should be evaulated correctly + // a.js and b.js should be evaluated correctly }); it("should use WebpackMissingModule when evaluating missing modules", function() { diff --git a/test/configCases/inner-graph/issue-11678/module.js b/test/configCases/inner-graph/issue-11678/module.js index b726890d5..25570eb0a 100644 --- a/test/configCases/inner-graph/issue-11678/module.js +++ b/test/configCases/inner-graph/issue-11678/module.js @@ -1438,7 +1438,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) { _isNewDataset ) ); - const renderFormInConainter = contentId ? contentId : _getFormSelector(); + const renderFormInContainer = contentId ? contentId : _getFormSelector(); await form.initForm( _getModuleName(), positionTypeId, @@ -1447,7 +1447,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) { _formData, _staticData, _isNewDataset, - renderFormInConainter, + renderFormInContainer, headerPK ); } diff --git a/test/configCases/split-chunks/max-size-casing/index.js b/test/configCases/split-chunks/max-size-casing/index.js index 03c38ce45..a0f7d3295 100644 --- a/test/configCases/split-chunks/max-size-casing/index.js +++ b/test/configCases/split-chunks/max-size-casing/index.js @@ -1,4 +1,4 @@ -it("should ignore case insenstive chars when generating maxSize filenames", () => +it("should ignore case insensitive chars when generating maxSize filenames", () => import(/* webpackChunkName: "chunk" */ "./chunk").then( ({ default: value }) => { expect(value).toContain("a111"); diff --git a/test/fixtures/buildDependencies/run.js b/test/fixtures/buildDependencies/run.js index 641ac34fd..c83b64a51 100644 --- a/test/fixtures/buildDependencies/run.js +++ b/test/fixtures/buildDependencies/run.js @@ -68,7 +68,7 @@ function run({ default: value2, asyncDep: value3 }) { __filename, path.resolve(__dirname, "../../../node_modules/.yarn-integrity") ].concat(esm ? ["../../fixtures/buildDependencies/esm.mjs"] : []), - invalid: options.invalidBuildDepdencies + invalid: options.invalidBuildDependencies ? ["should-fail-resolving"] : [], optionalDepsTest: [