Skip to content

Commit a1be9eb

Browse files
committed
test(ncc): update fixtures
1 parent c46c5ca commit a1be9eb

File tree

21 files changed

+258
-399
lines changed

21 files changed

+258
-399
lines changed

test/unit/bundle-subasset/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/******/ "use strict";
33
/******/ var __webpack_modules__ = ({
44

5-
/***/ 622:
5+
/***/ 17:
66
/***/ ((module) => {
77

88
module.exports = require("path");
@@ -91,7 +91,7 @@ var __webpack_exports__ = {};
9191
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
9292
(() => {
9393
__nccwpck_require__.r(__webpack_exports__);
94-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(622);
94+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17);
9595
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
9696

9797

test/unit/bundle-subasset2/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ const external_path_namespaceObject = require("path");
9191

9292

9393
const piscina = new (external_piscina_default())({
94-
filename: __nccwpck_require__.ab + "pi-bridge.js",
94+
filename: __nccwpck_require__.ab + "pi-bridge.js"
9595
});
96-
(async function () {
96+
(async function() {
9797
const result = await piscina.runTask(2);
9898
console.log(result);
9999
})();

test/unit/custom-emit/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 747:
4+
/***/ 147:
55
/***/ ((module) => {
66

77
"use strict";
@@ -50,7 +50,7 @@ module.exports = require("fs");
5050
var __webpack_exports__ = {};
5151
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
5252
(() => {
53-
const { readFileSync } = __nccwpck_require__(747);
53+
const { readFileSync } = __nccwpck_require__(147);
5454
console.log(readFileSync(__dirname + './test.json'));
5555

5656

test/unit/double-nested-builds/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
/***/ ((module) => {
129129

130130
"use strict";
131-
module.exports = __nccwpck_require__(622);
131+
module.exports = __nccwpck_require__(17);
132132

133133
/***/ })
134134

@@ -182,7 +182,7 @@ module.exports = __nccwpck_require__(622);
182182

183183
/***/ }),
184184

185-
/***/ 622:
185+
/***/ 17:
186186
/***/ ((module) => {
187187

188188
"use strict";

test/unit/exports-nomodule/output-coverage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/******/ "use strict";
21
/******/ /* webpack/runtime/compat */
32
/******/
43
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";

test/unit/exports-wildcard/output-coverage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/******/ "use strict";
21
/******/ /* webpack/runtime/compat */
32
/******/
43
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";

test/unit/externals/output-coverage.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 306:
4+
/***/ 378:
5+
/***/ ((module) => {
6+
7+
"use strict";
8+
module.exports = require("external-replace/replaced/some-file");
9+
10+
/***/ }),
11+
12+
/***/ 830:
513
/***/ ((module) => {
614

715
"use strict";
816
module.exports = require("externalmapped");
917

1018
/***/ }),
1119

12-
/***/ 196:
20+
/***/ 958:
1321
/***/ ((module) => {
1422

1523
"use strict";
@@ -58,12 +66,13 @@ module.exports = require("regexexternal");
5866
var __webpack_exports__ = {};
5967
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
6068
(() => {
61-
const external = __nccwpck_require__(306);
62-
const regexpExternal = __nccwpck_require__(196);
69+
const external = __nccwpck_require__(830);
70+
const regexpExternal = __nccwpck_require__(958);
71+
const regexpExternalMatch = __nccwpck_require__(378)
6372

6473
console.log(external);
6574
console.log(regexpExternal);
66-
75+
console.log(regexpExternalMatch);
6776

6877
})();
6978

test/unit/imports/output-coverage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/******/ "use strict";
21
/******/ /* webpack/runtime/compat */
32
/******/
43
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";

test/unit/minify-err/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = webpackEmptyContext;
1616

1717
/***/ }),
1818

19-
/***/ 747:
19+
/***/ 147:
2020
/***/ ((module) => {
2121

2222
"use strict";
@@ -71,7 +71,7 @@ var __webpack_exports__ = {};
7171
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
7272
(() => {
7373
if (global.GENTLY) __nccwpck_require__(875) = GENTLY.hijack(eval("require"));
74-
console.log(__nccwpck_require__(747));
74+
console.log(__nccwpck_require__(147));
7575

7676
})();
7777

test/unit/nested-builds/output-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/***/ 622:
1212
/***/ ((module) => {
1313

14-
module.exports = __nccwpck_require__(622);
14+
module.exports = __nccwpck_require__(17);
1515

1616
/***/ })
1717

@@ -118,7 +118,7 @@
118118

119119
/***/ }),
120120

121-
/***/ 622:
121+
/***/ 17:
122122
/***/ ((module) => {
123123

124124
"use strict";

0 commit comments

Comments
 (0)