Merge pull request #14943 from nschonni/cspell-globs

chore: update cSpell globs and fix typos
This commit is contained in:
Tobias Koppers 2022-01-19 15:05:30 +01:00 committed by GitHub
commit e550b2c949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 349 additions and 269 deletions

View File

@ -1,241 +1,308 @@
{
"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",
"asmjs",
"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",
"basictest",
"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\":\".+\"/",
"/toMatchInlineSnapshot\\(\\s*`[^`]*`\\s*\\)/"
],
"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",
"*.log",
"**/*.wasm",
"coverage/**",
"test/**/module.js",
"test/js/**",
"test/cases/**",
"test/configCases/**",
"test/statsCases/**",
"test/fixtures/**"
]
}

2
declarations.d.ts vendored
View File

@ -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;

View File

@ -67,7 +67,7 @@
<!-- A spinner -->
<div class="spinner"></div>
<!-- This script only contains boostrapping logic -->
<!-- This script only contains bootstrapping logic -->
<!-- It will load all other scripts if necessary -->
<script src="/dist/aaa/app.js" async></script>

View File

@ -1708,7 +1708,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;
}
}

View File

@ -152,7 +152,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",

View File

@ -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'/]
});

View File

@ -308,6 +308,7 @@ describe("Cli", () => {
`)
);
// cspell:ignore filsystem
test(
"errors",
{

View File

@ -185,6 +185,7 @@ describe("Compiler", () => {
});
});
// cspell:word asmjs
it("should not evaluate constants in asm.js", done => {
compile("./asmjs", {}, (stats, files) => {
expect(Object.keys(files)).toEqual(["/main.js"]);

View File

@ -9,24 +9,24 @@ const stripAnsi = require("strip-ansi");
* @param {string} str String to quote
* @returns {string} Escaped string
*/
const quotemeta = str => {
const quoteMeta = str => {
return str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
};
describe("Defaults", () => {
const cwd = process.cwd();
const cwdRegExp = new RegExp(
`${quotemeta(cwd)}((?:\\\\)?(?:[a-zA-Z.\\-_]+\\\\)*)`,
`${quoteMeta(cwd)}((?:\\\\)?(?:[a-zA-Z.\\-_]+\\\\)*)`,
"g"
);
const escapedCwd = JSON.stringify(cwd).slice(1, -1);
const escapedCwdRegExp = new RegExp(
`${quotemeta(escapedCwd)}((?:\\\\\\\\)?(?:[a-zA-Z.\\-_]+\\\\\\\\)*)`,
`${quoteMeta(escapedCwd)}((?:\\\\\\\\)?(?:[a-zA-Z.\\-_]+\\\\\\\\)*)`,
"g"
);
const normalize = str => {
if (cwd.startsWith("/")) {
str = str.replace(new RegExp(quotemeta(cwd), "g"), "<cwd>");
str = str.replace(new RegExp(quoteMeta(cwd), "g"), "<cwd>");
} else {
str = str.replace(cwdRegExp, (m, g) => `<cwd>${g.replace(/\\/g, "/")}`);
str = str.replace(
@ -1452,7 +1452,7 @@ describe("Defaults", () => {
+ "recordsOutputPath": "some-path",
`)
);
test("ecamVersion", { output: { ecmaVersion: 2020 } }, e =>
test("ecmaVersion", { output: { ecmaVersion: 2020 } }, e =>
e.toMatchInlineSnapshot(`Compared values have no visual difference.`)
);
test("single runtimeChunk", { optimization: { runtimeChunk: "single" } }, e =>

View File

@ -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(`

View File

@ -1,5 +1,6 @@
"use strict";
// cspell:ignore fghsub notry fghsub notry notry this's ijksub this's ijksub fghsub fghsub notry ijksub ijksub strrring strrring strr strrring strrring strr Sstrrringy strone stronetwo stronetwothree stronetwo stronetwothree stronetwothreefour onetwo onetwo twothree twothree twothree threefour onetwo onetwo threefour threefour fourfive startstrmid igmy igmyi igmya
const BasicEvaluatedExpression = require("../lib/javascript/BasicEvaluatedExpression");
const JavascriptParser = require("../lib/javascript/JavascriptParser");

View File

@ -4,6 +4,7 @@ require("./helpers/warmup-webpack");
const path = require("path");
// cspell:word nodetest
describe("NodeTemplatePlugin", () => {
jest.setTimeout(20000);
it("should compile and run a simple module", done => {

View File

@ -91,6 +91,7 @@ describe("NormalModule", () => {
});
describe("given a userRequest containing query parameters", () => {
it("ignores paths in query parameters", () => {
// cspell:word testpath
userRequest =
"F:\\some\\context\\loader?query=foo\\bar&otherPath=testpath/other";
normalModule = new NormalModule({
@ -284,7 +285,7 @@ describe("NormalModule", () => {
});
});
describe("that is an array", () => {
describe("of strings and or regexs", () => {
describe("of strings and or regexps", () => {
let someRules;
beforeEach(() => {
someRules = ["some rule", /some rule1/, "some rule2"];

View File

@ -4,7 +4,7 @@ const path = require("path");
const ProfilingPlugin = require("../lib/debug/ProfilingPlugin");
describe("Profiling Plugin", () => {
it("should persist the passed outpath", () => {
it("should persist the passed output path", () => {
const outputPath = path.join(__dirname, "invest_in_doge_coin");
const plugin = new ProfilingPlugin({
outputPath: outputPath
@ -34,7 +34,7 @@ describe("Profiling Plugin", () => {
it("handles sending a profiling message when no session", () => {
const profiler = new ProfilingPlugin.Profiler();
return profiler.sendCommand("randy", "is a puppers");
return profiler.sendCommand("randy", "is awesome");
});
it("handles destroying when no session", () => {

View File

@ -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 }))
);
@ -190,6 +190,7 @@ describe("ProgressPlugin", function () {
expect(logs.length).toBeGreaterThan(20);
logs.forEach(log => expect(log.length).toBeLessThanOrEqual(35));
// cspell:ignore mization nsPlugin
expect(logs).toContain(
"75% sealing ...mization ...nsPlugin",
"trims each detail string equally"

View File

@ -25,7 +25,7 @@ See also: [Jest CLI docs](https://jestjs.io/docs/cli)
We use Jest for our tests. For more information on Jest you can visit their [homepage](https://jestjs.io/)!
### Class Tests
All test files can be found in *.test.js. There are many tests that simply test API's of a specific class/file (such as `Compiler`, `Errors`, Integration, `Parser`, `RuleSet`, Validation).
All test files can be found in *.test.js. There are many tests that simply test APIs of a specific class/file (such as `Compiler`, `Errors`, Integration, `Parser`, `RuleSet`, Validation).
If the feature you are contributing involves one of those classes, then best to start there to understand the structure.
### xCases
@ -69,4 +69,4 @@ If you are still nervous or don't quite understand, please submit an issue and t
## Footnotes
<sup>1</sup> webpack's parser supports the use of ES2015 features like arrow functions, harmony exports, etc. However as a library we follow NodeJS's timeline for dropping older versions of node. Because of this we expect your tests on GitHub Actions to pass all the way back to NodeJS v10; Therefore if you would like specific tests that use these features to be ignored if they are not supported, then you should add a `test.filter.js` file. This allows you to import the syntax needed for that test, meanwhile ignoring it on node versions (during CI) that don't support it. webpack has a variety of helpful examples you can refer to if you are just starting out. See the `./helpers` folder to find a list of the versions.
<sup>1</sup> webpack's parser supports the use of ES2015 features like arrow functions, harmony exports, etc. However as a library we follow Node.js' timeline for dropping older versions of node. Because of this we expect your tests on GitHub Actions to pass all the way back to NodeJS v10; Therefore if you would like specific tests that use these features to be ignored if they are not supported, then you should add a `test.filter.js` file. This allows you to import the syntax needed for that test, meanwhile ignoring it on node versions (during CI) that don't support it. webpack has a variety of helpful examples you can refer to if you are just starting out. See the `./helpers` folder to find a list of the versions.

View File

@ -12,7 +12,7 @@ const webpack = require("..");
* @param {string} str String to quote
* @returns {string} Escaped string
*/
const quotemeta = str => {
const quoteMeta = str => {
return str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
};
@ -184,11 +184,12 @@ describe("StatsTestCases", () => {
.replace(/\u001b\[([0-9;]*)m/g, "<CLR=$1>")
.replace(/[.0-9]+(<\/CLR>)?(\s?ms)/g, "X$1$2");
}
// cspell:ignore Xdir
const testPath = path.join(base, testName);
actual = actual
.replace(/\r\n?/g, "\n")
.replace(/webpack [^ )]+(\)?) compiled/g, "webpack x.x.x$1 compiled")
.replace(new RegExp(quotemeta(testPath), "g"), "Xdir/" + testName)
.replace(new RegExp(quoteMeta(testPath), "g"), "Xdir/" + testName)
.replace(/(\w)\\(\w)/g, "$1/$2")
.replace(/, additional resolving: X ms/g, "");
expect(actual).toMatchSnapshot();

View File

@ -16,6 +16,7 @@ describe("Template", () => {
items.push(item);
}
});
// cspell:ignore sdfas sadfome
it("should generate sanitized path identifiers", () => {
expect(Template.toPath("path/to-sdfas/sadfome$$.js")).toBe(
"path-to-sdfas-sadfome$$-js"

View File

@ -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

View File

@ -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,12 @@ 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);
// cspell:word Thaana
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]);

View File

@ -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

View File

@ -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) {

View File

@ -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);
});

View File

@ -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'/
]
];

View File

@ -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);

View File

@ -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);

View File

@ -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'/]

View File

@ -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([]);
}

View File

@ -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);

View File

@ -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");
});

View File

@ -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"]);
})

View File

@ -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() {

View File

@ -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
);
}

View File

@ -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");

View File

@ -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: [

View File

@ -126,6 +126,7 @@ if (process.env.DEBUG_INFO) {
it = addDebugInfo(it);
}
// cspell:word wabt
// Workaround for a memory leak in wabt
// It leaks an Error object on construction
// so it leaks the whole stack trace