repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js
schemas/plugins/optimize/AggressiveSplittingPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:i,rootData:o=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/optimize/LimitChunkCountPlugin.check.js
schemas/plugins/optimize/LimitChunkCountPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:a,rootData:o=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.m...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js
schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(t,{instancePath:e="",parentData:a,parentDataProperty:o,rootData:s=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/css/CssParserOptions.check.js
schemas/plugins/css/CssParserOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:n=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/css/CssGeneratorOptions.check.js
schemas/plugins/css/CssGeneratorOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:n=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/css/CssModuleGeneratorOptions.check.js
schemas/plugins/css/CssModuleGeneratorOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function e(t,{instancePath:r="",parentData:o,parentDataProperty:s,rootData:a=t}={}){let n=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/css/CssModuleParserOptions.check.js
schemas/plugins/css/CssModuleParserOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},container:{$ref:"#/definitions/CssParserCon...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/container/ModuleFederationPlugin.check.js
schemas/plugins/container/ModuleFederationPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const t=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=D,module.exports.default=D;const e={definitions:{AmdContainer:{type:"string",minLength:1},AuxiliaryComment:{anyOf:[{type:"string"},{$ref:"#/definitions/Libr...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/container/ContainerReferencePlugin.check.js
schemas/plugins/container/ContainerReferencePlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(t,{instancePath:e="",parentData:a,parentDataProperty:n,rootData:s=t}={}){if(!Array.isArray(t))return r.errors=[{params:{type:"array"}}],!1;{const e=t.length;for(let a=0;a<e;a++){let e=t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/container/ExternalsType.check.js
schemas/plugins/container/ExternalsType.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function o(s,{instancePath:r="",parentData:m,parentDataProperty:t,rootData:e=s}={}){return"var"!==s&&"module"!==s&&"assign"!==s&&"this"!==s&&"window"!==s&&"self"!==s&&"global"!==s&&"commonjs"!==s&...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/container/ContainerPlugin.check.js
schemas/plugins/container/ContainerPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function t(r,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:a=r}={}){if(!Array.isArray(r))return t.errors=[{params:{type:"array"}}],!1;{const e=r.length;for...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/json/JsonModulesPluginGenerator.check.js
schemas/plugins/json/JsonModulesPluginGenerator.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:s=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/json/JsonModulesPluginParser.check.js
schemas/plugins/json/JsonModulesPluginParser.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:s=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/sharing/ProvideSharedPlugin.check.js
schemas/plugins/sharing/ProvideSharedPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(t,{instancePath:e="",parentData:s,parentDataProperty:n,rootData:a=t}={}){let o=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/sharing/ConsumeSharedPlugin.check.js
schemas/plugins/sharing/ConsumeSharedPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:s,rootData:a=e}={}){let o=null,i=0;if(0===i){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/sharing/SharePlugin.check.js
schemas/plugins/sharing/SharePlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";module.exports=a,module.exports.default=a;const r={type:"object",additionalProperties:!1,properties:{eager:{type:"boolean"},import:{anyOf:[{enum:[!1]},{$ref:"#/definitions/SharedItem"}]},packageNa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/asset/AssetGeneratorOptions.check.js
schemas/plugins/asset/AssetGeneratorOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const t=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function n(t,{instancePath:r="",parentData:e,parentDataProperty:a,rootData:s=t}={}){let o=null,l=0;const i=l;let p=!1;const u=l;if(l==l)if(t&&"object"==typeof t&&!Array.is...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/asset/AssetParserOptions.check.js
schemas/plugins/asset/AssetParserOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function t(r,{instancePath:a="",parentData:n,parentDataProperty:o,rootData:e=r}={}){let s=null,i=0;if(0===i){if(!r||"object"!=typeof r||Array.isArray(r))return t.errors=[{params:{type:"object"}}],...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js
schemas/plugins/asset/AssetInlineGeneratorOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function t(r,{instancePath:a="",parentData:e,parentDataProperty:n,rootData:o=r}={}){let s=null,i=0;const l=i;let p=!1;const c=i;if(i==i)if(r&&"object"==typeof r&&!Array.isArray(r)){const t=i;for(c...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js
schemas/plugins/asset/AssetResourceGeneratorOptions.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const t=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function n(r,{instancePath:e="",parentData:a,parentDataProperty:s,rootData:o=r}={}){let l=null,i=0;if(0===i){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/schemes/HttpUriPlugin.check.js
schemas/plugins/schemes/HttpUriPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=n,module.exports.default=n;const t=new RegExp("^https?://","u");function e(n,{instancePath:o="",parentData:s,parentDataProperty:a,rootData:l=n}={}){let i=nu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/schemes/VirtualUrlPlugin.check.js
schemas/plugins/schemes/VirtualUrlPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function t(r,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:o=r}={}){let a=null,l=0;const i=l;let p=!1;const u=l;if("string"!=typeof r){const t={params:{type:"string"}};null===a?a=[...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/debug/ProfilingPlugin.check.js
schemas/plugins/debug/ProfilingPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function t(e,{instancePath:a="",parentData:o,parentDataProperty:n,rootData:s=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return t.errors=[{params:{type:"object"}}],...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/ids/HashedModuleIdsPlugin.check.js
schemas/plugins/ids/HashedModuleIdsPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ const t=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function e(s,{instancePath:r="",parentData:n,parentDataProperty:a,rootData:i=s}={}){let o=null,l=0;if(0===l){if(!s||"object"!=typeof s||Array.isArray(s))return e.errors=[{...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js
schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js
schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ "use strict";function r(t,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/tooling/decode-debug-hash.js
tooling/decode-debug-hash.js
"use strict"; const fs = require("fs"); const file = process.argv[2]; let content = fs.readFileSync(file, "utf8"); content = content.replace(/debug-digest-([a-f0-9]+)/g, (match, bin) => Buffer.from(bin, "hex").toString("utf8") ); fs.writeFileSync(file, content);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/tooling/generate-runtime-code.js
tooling/generate-runtime-code.js
"use strict"; const fs = require("fs"); const path = require("path"); const prettier = require("prettier"); const terser = require("terser"); // When --write is set, files will be written in place // Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const files = ["lib/util/se...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/tooling/print-cache-file.js
tooling/print-cache-file.js
"use strict"; const fs = require("fs"); const path = require("path"); const BinaryMiddleware = require("../lib/serialization/BinaryMiddleware"); const FileMiddleware = require("../lib/serialization/FileMiddleware"); const Serializer = require("../lib/serialization/Serializer"); const SerializerMiddleware = require(".....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/tooling/generate-wasm-code.js
tooling/generate-wasm-code.js
"use strict"; const fs = require("fs"); const path = require("path"); // When --write is set, files will be written in place // Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const files = ["lib/util/hash/xxhash64.js", "lib/util/hash/md4.js"]; (async () => { // TODO: fix ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/BuildDependencies.longtest.js
test/BuildDependencies.longtest.js
"use strict"; const childProcess = require("child_process"); const fs = require("fs"); const path = require("path"); const rimraf = require("rimraf"); const cacheDirectory = path.resolve(__dirname, "js/buildDepsCache"); const outputDirectory = path.resolve(__dirname, "js/buildDeps"); const inputDirectory = path.resol...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ProgressPlugin.test.js
test/ProgressPlugin.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const _ = require("lodash"); const { Volume, createFsFromVolume } = require("memfs"); const webpack = require(".."); const captureStdio = require("./helpers/captureStdio"); const createMultiCompiler = (progressOptions, configOptions) =>...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/objectToMap.unittest.js
test/objectToMap.unittest.js
"use strict"; const objectToMap = require("../lib/util/objectToMap"); describe("objectToMap", () => { it("should convert a plain object into a Map successfully", () => { const map = objectToMap({ foo: "bar", bar: "baz" }); expect(map.get("foo")).toBe("bar"); expect(map.get("bar")).toBe("baz"); }); })...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WatchSuspend.test.js
test/WatchSuspend.test.js
"use strict"; require("./helpers/warmup-webpack"); const fs = require("fs"); const path = require("path"); describe("WatchSuspend", () => { if (process.env.NO_WATCH_TESTS) { // eslint-disable-next-line jest/no-disabled-tests it.skip("long running tests excluded", () => {}); return; } describe("suspend and...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/target-browserslist.unittest.js
test/target-browserslist.unittest.js
"use strict"; const { resolve } = require("../lib/config/browserslistTargetHandler"); describe("browserslist target", () => { const tests = [ // IE ["ie 11"], ["ie_mob 11"], // Edge ["edge 79"], // Android ["android 4"], ["android 4.1"], ["android 4.4.3-4.4.4"], ["android 81"], // Chrome /...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesMinimizedSourceMap.longtest.js
test/TestCasesMinimizedSourceMap.longtest.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "minimized-source-map", mode: "production", devtool: "eval-cheap-module-source-map", minimize: true }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolCheapSourceMap.test.js
test/TestCasesDevtoolCheapSourceMap.test.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-cheap-source-map", devtool: "cheap-source-map" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/identifier.unittest.js
test/identifier.unittest.js
"use strict"; const identifierUtil = require("../lib/util/identifier"); describe("util/identifier", () => { describe("makePathsRelative", () => { describe("given a context and a pathConstruct", () => { it("computes the correct relative results for the path construct", () => { for (const [context, pathConstr...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WebpackError.unittest.js
test/WebpackError.unittest.js
"use strict"; const WebpackError = require("../lib/WebpackError"); describe("WebpackError", () => { class CustomError extends WebpackError { constructor() { super(); this.name = "CustomError"; this.message = "CustomMessage"; this.details = "CustomDetails"; Error.captureStackTrace(this, this.constr...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesModule.test.js
test/TestCasesModule.test.js
"use strict"; const vm = require("vm"); const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { if (!vm.SourceTextModule) { throw new Error( "Running this test requires '--experimental-vm-modules'.\nRun with 'node --experimental-vm-modules node_modules/jest-cli/bin/jest'." ); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/MultiWatching.unittest.js
test/MultiWatching.unittest.js
"use strict"; const SyncHook = require("tapable").SyncHook; const MultiWatching = require("../lib/MultiWatching"); /** @typedef {import("../lib/Watching")} Watching */ /** @typedef {import("../lib/MultiCompiler")} MultiCompiler */ /** * @returns {Watching} watching */ const createWatching = () => /** @type {Watch...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ConfigCacheTestCases.longtest.js
test/ConfigCacheTestCases.longtest.js
"use strict"; const { describeCases } = require("./ConfigTestCases.template"); describeCases({ name: "ConfigCacheTestCases", cache: { type: "filesystem", buildDependencies: { defaultWebpack: [] } } });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/NormalModule.unittest.js
test/NormalModule.unittest.js
"use strict"; const SourceMapSource = require("webpack-sources").SourceMapSource; const OriginalSource = require("webpack-sources").OriginalSource; const RawSource = require("webpack-sources").RawSource; const NormalModule = require("../lib/NormalModule"); describe("NormalModule", () => { let normalModule; /** @typ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ConfigTestCases.template.js
test/ConfigTestCases.template.js
"use strict"; require("./helpers/warmup-webpack"); /** @typedef {Record<string, EXPECTED_ANY>} Env */ /** @typedef {{ testPath: string } TestOptions */ const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); const { parseResource } = require("../lib/util/identifier"); const...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolEvalCheapSourceMap.test.js
test/TestCasesDevtoolEvalCheapSourceMap.test.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-eval-cheap-source-map", devtool: "eval-cheap-source-map" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/StatsTestCases.basictest.js
test/StatsTestCases.basictest.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); const webpack = require(".."); const captureStdio = require("./helpers/captureStdio"); /** * Escapes regular expression metacharacters * @param {string} str String t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/SideEffectsFlagPlugin.unittest.js
test/SideEffectsFlagPlugin.unittest.js
"use strict"; const SideEffectsFlagPlugin = require("../lib/optimize/SideEffectsFlagPlugin"); describe("SideEffectsFlagPlugin", () => { it("should assume true", () => { expect( SideEffectsFlagPlugin.moduleHasSideEffects( "./foo/bar.js", undefined, new Map() ) ).toBe(true); }); it("should und...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/URLAbsoluteSpecifier.unittest.js
test/URLAbsoluteSpecifier.unittest.js
"use strict"; const { getProtocol, getScheme } = require("../lib/util/URLAbsoluteSpecifier"); /** * @type {{ specifier: string, expected: string | undefined }[]} */ const samples = [ { specifier: "@babel/core", expected: undefined }, { specifier: "webpack", expected: undefined }, { specifier: "1webpa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Examples.test.js
test/Examples.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); jest.setTimeout(60000); describe("Examples", () => { const basePath = path.join(__dirname, "..", "examples"); const examples = require("../examples/examples"); for (const examplePath of examples)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/MultiItemCache.unittest.js
test/MultiItemCache.unittest.js
"use strict"; const Cache = require("../lib/Cache"); const { ItemCacheFacade, MultiItemCache } = require("../lib/CacheFacade"); describe("MultiItemCache", () => { it("throws when getting items from an empty Cache", () => { const multiItemCache = new MultiItemCache(generateItemCaches(0)); expect(() => multiItemCa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/SharingUtil.unittest.js
test/SharingUtil.unittest.js
"use strict"; const { normalizeVersion } = require("../lib/sharing/utils"); describe("normalize dep version", () => { const commonInvalid = [ "https://github.com#v1.0", "git://github.com#v1.0", "other:github.com/foo/bar#v1.0", "::", "", null, undefined ]; const commonValid = { "git+ssh://git@githu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
true
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Defaults.unittest.js
test/Defaults.unittest.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const jestDiff = require("jest-diff").diff; const stripVTControlCharacters = require("strip-ansi"); /** @typedef {import("../lib/index").Configuration} Configuration */ /** @typedef {import("../lib/index").WebpackOptionsNormalized} Webp...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
true
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/patch-node-env.js
test/patch-node-env.js
"use strict"; const NodeEnvironment = // For jest@29 require("jest-environment-node").TestEnvironment || // For jest@27 require("jest-environment-node"); class CustomEnvironment extends NodeEnvironment { constructor(config, context) { // TODO - regression in jest/Node@25.2.0, temporary fix global.localStorag...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ModuleDependencyError.unittest.js
test/ModuleDependencyError.unittest.js
"use strict"; const path = require("path"); const ModuleDependencyError = require("../lib/ModuleDependencyError"); describe("ModuleDependencyError", () => { let env; beforeEach(() => { env = {}; }); describe("when new error created", () => { beforeEach(() => { env.error = new Error("Error Message"); e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WatchTestCases.template.js
test/WatchTestCases.template.js
"use strict"; require("./helpers/warmup-webpack"); /** @typedef {Record<string, EXPECTED_ANY>} Env */ /** @typedef {{ testPath: string, srcPath: string }} TestOptions */ const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); const checkArrayExpectation = require("./checkAr...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesHot.test.js
test/TestCasesHot.test.js
"use strict"; const webpack = require(".."); const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "hot", plugins: [new webpack.HotModuleReplacementPlugin()] }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/HotModuleReplacementPlugin.test.js
test/HotModuleReplacementPlugin.test.js
"use strict"; const path = require("path"); const fs = require("graceful-fs"); const webpack = require(".."); describe("HotModuleReplacementPlugin", () => { it("should not have circular hashes but equal if unmodified", (done) => { const entryFile = path.join( __dirname, "js", "HotModuleReplacementPlugin"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ProfilingPlugin.unittest.js
test/ProfilingPlugin.unittest.js
"use strict"; const path = require("path"); const ProfilingPlugin = require("../lib/debug/ProfilingPlugin"); describe("Profiling Plugin", () => { it("should persist the passed output path", () => { const outputPath = path.join(__dirname, "invest_in_doge_coin"); const plugin = new ProfilingPlugin({ outputPath ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/SortableSet.unittest.js
test/SortableSet.unittest.js
"use strict"; const SortableSet = require("../lib/util/SortableSet"); describe("util/SortableSet", () => { it("can be constructed like a normal Set", () => { const sortableSet = new SortableSet( [1, 1, 1, 1, 1, 4, 5, 2], (a, b) => a - b ); expect([...sortableSet]).toEqual([1, 4, 5, 2]); }); it("can so...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Watch.test.js
test/Watch.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const { Volume, createFsFromVolume } = require("memfs"); const webpack = require(".."); describe("Watch", () => { it("should only compile a single time", (done) => { let counterBeforeCompile = 0; let counterDone = 0; let counterH...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolSourceMap.longtest.js
test/TestCasesDevtoolSourceMap.longtest.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-source-map", devtool: "source-map" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/checkArrayExpectation.js
test/checkArrayExpectation.js
"use strict"; const path = require("path"); const fs = require("graceful-fs"); const check = (expected, actual) => { if (expected instanceof RegExp) { expected = { message: expected }; } if (Array.isArray(expected)) { return expected.every((e) => check(e, actual)); } return Object.keys(expected).every((key) ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ContextModuleFactory.unittest.js
test/ContextModuleFactory.unittest.js
"use strict"; const { Volume, createFsFromVolume } = require("memfs"); const ContextModuleFactory = require("../lib/ContextModuleFactory"); /** @typedef {import("memfs").IFs} IFs */ describe("ContextModuleFactory", () => { describe("resolveDependencies", () => { /** @type {ContextModuleFactory} */ let factory; ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/BinaryMiddleware.unittest.js
test/BinaryMiddleware.unittest.js
"use strict"; const BinaryMiddleware = require("../lib/serialization/BinaryMiddleware"); const SerializerMiddleware = require("../lib/serialization/SerializerMiddleware"); const cont = (base, count) => { const result = []; for (let i = 0; i < count; i++) { result.push(base[i % base.length]); } return result; };...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/HotTestCases.template.js
test/HotTestCases.template.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); const checkArrayExpectation = require("./checkArrayExpectation"); const createLazyTestEnv = require("./helpers/createLazyTestEnv"); const { TestRunner } = require("./ru...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCases.template.js
test/TestCases.template.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); const checkArrayExpectation = require("./checkArrayExpectation"); const captureStdio = require("./helpers/captureStdio"); const createLazyTestEnv = require("./helpers/c...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/compileBooleanMatcher.unittest.js
test/compileBooleanMatcher.unittest.js
"use strict"; /** @typedef {ReturnType<expect>} ExceptResult */ const { itemsToRegexp } = require("../lib/util/compileBooleanMatcher"); describe("itemsToRegexp", () => { /** * @param {string} name name * @param {string | string[]} input input * @param {(e: ExceptResult) => void} fn fn to test */ const expe...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/RawModule.unittest.js
test/RawModule.unittest.js
"use strict"; const path = require("path"); const RawModule = require("../lib/RawModule"); const RequestShortener = require("../lib/RequestShortener"); describe("RawModule", () => { const source = "sourceStr attribute"; const identifier = "identifierStr attribute"; const readableIdentifier = "readableIdentifierStr...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/compareSourceOrder.unittest.js
test/compareSourceOrder.unittest.js
"use strict"; const { sortWithSourceOrder } = require("../lib/util/comparators"); describe("sortWithSourceOrder", () => { let dependencySourceOrderMap; beforeEach(() => { dependencySourceOrderMap = new WeakMap(); }); it("dependency without the sourceOrder attribute must keep their original index in the array"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolInlineSourceMap.longtest.js
test/TestCasesDevtoolInlineSourceMap.longtest.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-inline-source-map", devtool: "inline-source-map" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/MultiCompiler.test.js
test/MultiCompiler.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const { Volume, createFsFromVolume } = require("memfs"); const webpack = require(".."); const createMultiCompiler = (options) => { const compiler = webpack( Object.assign( [ { name: "a", context: path.join(__dirname,...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ProfilingPlugin.test.js
test/ProfilingPlugin.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); const rimraf = require("rimraf"); describe("Profiling Plugin", () => { jest.setTimeout(120000); it("should handle output path with folder creation", (done) => { const webpack = require("../"); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/AbstractMethodError.unittest.js
test/AbstractMethodError.unittest.js
"use strict"; const AbstractMethodError = require("../lib/AbstractMethodError"); describe("WebpackError", () => { class Foo { abstractMethod() { return new AbstractMethodError(); } } class Child extends Foo {} const expectedMessage = "Abstract method $1. Must be overridden."; it("should construct messa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevelopment.test.js
test/TestCasesDevelopment.test.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "development", mode: "development", devtool: false }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/numberHash.unittest.js
test/numberHash.unittest.js
"use strict"; const { numberToIdentifier } = require("../lib/Template"); const numberHash = require("../lib/util/numberHash"); describe("numberHash", () => { for (const n of [10, 100, 1000, 10000]) { it("should eventually fill nearly the complete range up to n", () => { const set = new Set(); for (let i = 0;...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/FileSystemInfo.unittest.js
test/FileSystemInfo.unittest.js
"use strict"; const util = require("util"); const { Volume, createFsFromVolume } = require("memfs"); const FileSystemInfo = require("../lib/FileSystemInfo"); const { buffersSerializer } = require("../lib/util/serialization"); describe("FileSystemInfo", () => { afterEach(() => { // restore the spy created with spyO...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WatchClose.test.js
test/WatchClose.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); describe("WatchClose", () => { describe("multiple calls watcher", () => { const fixturePath = path.join(__dirname, "fixtures"); const outputPath = path.join(__dirname, "js/WatchClose"); const filePath = path.join(fixturePath, "a....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/PersistentCaching.test.js
test/PersistentCaching.test.js
"use strict"; require("./helpers/warmup-webpack"); const fs = require("fs"); const path = require("path"); const util = require("util"); const vm = require("vm"); const rimraf = require("rimraf"); const readdir = util.promisify(fs.readdir); const writeFile = util.promisify(fs.writeFile); const utimes = util.promisif...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Cli.basictest.js
test/Cli.basictest.js
"use strict"; const { createColors, getArguments, isColorSupported, processArguments } = require("../").cli; describe("Cli", () => { describe("getArguments", () => { it("should generate the correct cli flags", () => { expect(getArguments()).toMatchSnapshot(); }); it("should generate the correct cli flags ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Template.unittest.js
test/Template.unittest.js
"use strict"; const Template = require("../lib/Template"); describe("Template", () => { it("should generate valid identifiers", () => { expect(Template.toIdentifier("0abc-def9")).toBe("_0abc_def9"); }); it("should generate valid number identifiers", () => { const items = []; let item; for (let i = 0; i < ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/nonNumericOnlyHash.unittest.js
test/nonNumericOnlyHash.unittest.js
"use strict"; const nonNumericOnlyHash = require("../lib/util/nonNumericOnlyHash"); describe("nonNumericOnlyHash", () => { it("hashLength=0", () => { expect(nonNumericOnlyHash("111", 0)).toBe(""); }); it("abc", () => { expect(nonNumericOnlyHash("abc", 10)).toBe("abc"); }); it("abc1", () => { expect(nonNu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/HotTestCasesNode.test.js
test/HotTestCasesNode.test.js
"use strict"; const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { describeCases({ name: "node", target: "node" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/ContextModule.unittest.js
test/ContextModule.unittest.js
"use strict"; const ContextModule = require("../lib/ContextModule"); describe("contextModule", () => { let contextModule; /** @type {string} */ let request; beforeEach(() => { request = "/some/request"; }); describe("#identifier", () => { it("returns an safe identifier for this module", () => { context...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolEval.test.js
test/TestCasesDevtoolEval.test.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-eval", devtool: "eval" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/HotTestCasesAsyncNode.test.js
test/HotTestCasesAsyncNode.test.js
"use strict"; const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { describeCases({ name: "async-node", target: "async-node" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js
test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "devtool-eval-cheap-module-source-map", devtool: "eval-cheap-module-source-map" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WasmHashes.unittest.js
test/WasmHashes.unittest.js
"use strict"; const { createHash, randomBytes } = require("crypto"); const wasmHashes = { xxhash64: () => { const createHash = require("../lib/util/hash/xxhash64"); const createReferenceHash = // @ts-expect-error require("hash-wasm/dist/xxhash64.umd.min").createXXHash64; return { createHash, creat...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/CleanPlugin.unittest.js
test/CleanPlugin.unittest.js
"use strict"; const { _getDirectories } = require("../lib/CleanPlugin"); describe("CleanPlugin", () => { describe("_getDirectories", () => { it("should return empty set when assets map is empty", () => { const assets = new Map(); const result = _getDirectories(assets); expect(result).toBeInstanceOf(Set); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/deterministicGrouping.unittest.js
test/deterministicGrouping.unittest.js
"use strict"; const deterministicGrouping = require("../lib/util/deterministicGrouping"); describe("deterministicGrouping", () => { const group = (items, minSize, maxSize) => deterministicGrouping({ items: items.map((item, i) => [i, item]), minSize, maxSize, getKey: ([key]) => `${100000 + key}`, get...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/extractUrlAndGlobal.unittest.js
test/extractUrlAndGlobal.unittest.js
"use strict"; const extractUrlAndGlobal = require("../lib/util/extractUrlAndGlobal"); describe("extractUrlAndGlobal", () => { it("should return jQuery", () => { const result = extractUrlAndGlobal( "jQuery@https://code.jquery.com/jquery-3.5.1.min.js" ); expect(result).toEqual([ "https://code.jquery.com/jq...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/NodeTemplatePlugin.test.js
test/NodeTemplatePlugin.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); // cspell:word nodetest describe("NodeTemplatePlugin", () => { it("should compile and run a simple module", (done) => { const webpack = require(".."); webpack( { mode: "production", context: path.join(__dirname, "fixtur...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/TestCasesNormal.basictest.js
test/TestCasesNormal.basictest.js
"use strict"; const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { describeCases({ name: "normal" }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Errors.test.js
test/Errors.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const fs = require("graceful-fs"); const prettyFormat = require("pretty-format").default; const webpack = require(".."); const CWD_PATTERN = new RegExp(process.cwd().replace(/\\/g, "/"), "gm"); const ERROR_STACK_PATTERN = /(?:\n\s+at\s....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
true
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/WatchTestCases.longtest.js
test/WatchTestCases.longtest.js
"use strict"; const { describeCases } = require("./WatchTestCases.template"); describeCases({ name: "WatchTestCases" });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/SemVer.unittest.js
test/SemVer.unittest.js
"use strict"; const { parseRange, parseVersion, parseVersionRuntimeCode, rangeToString, rangeToStringRuntimeCode, satisfy, satisfyRuntimeCode, versionLt, versionLtRuntimeCode } = require("../lib/util/semver"); describe("SemVer", () => { const createRuntimeFunction = (runtimeCodeFunction) => { const runtim...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/setupTestFramework.js
test/setupTestFramework.js
"use strict"; expect.extend({ toBeTypeOf(received, expected) { const objType = typeof received; const pass = objType === expected; const message = pass ? () => `${this.utils.matcherHint(".not.toBeTypeOf")}\n\n` + "Expected value to not be (using typeof):\n" + ` ${this.utils.printExpected(exp...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/compareLocations.unittest.js
test/compareLocations.unittest.js
"use strict"; const { compareLocations } = require("../lib/util/comparators"); const createPosition = (overrides) => ({ line: 10, column: 5, ...overrides }); const createLocation = (start, end, index) => ({ start: createPosition(start), end: createPosition(end), index: index || 3 }); describe("compareLocation...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/LazySet.unittest.js
test/LazySet.unittest.js
"use strict"; const LazySet = require("../lib/util/LazySet"); describe("LazySet", () => { it("addAll", () => { const a = new Set(["a"]); const sut = new LazySet(a); const empty = new LazySet([]); expect(sut.size).toBe(1); sut.addAll(empty); expect(sut._toDeepMerge).toStrictEqual([]); expect(sut.size).t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/compareStringsNumeric.unittest.js
test/compareStringsNumeric.unittest.js
"use strict"; const { compareStringsNumeric } = require("../lib/util/comparators"); /** * @param {string} a string * @param {string} b string * @returns {-1 | 0 | 1} compare result */ const referenceComparer = (a, b) => { const partsA = a.split(/(\d+)/); const partsB = b.split(/(\d+)/); const len = Math.min(pa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/Compiler.test.js
test/Compiler.test.js
"use strict"; require("./helpers/warmup-webpack"); const path = require("path"); const { Volume, createFsFromVolume } = require("memfs"); const Stats = require("../lib/Stats"); const captureStdio = require("./helpers/captureStdio"); const deprecationTracking = require("./helpers/deprecationTracking"); describe("Comp...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false