Skip to content

Commit

Permalink
chore: update fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Aug 28, 2023
1 parent 4f683c5 commit 8b60096
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 22 deletions.
4 changes: 2 additions & 2 deletions test/unit/bundle-subasset/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({

/***/ 622:
/***/ 17:
/***/ ((module) => {

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


Expand Down
4 changes: 2 additions & 2 deletions test/unit/custom-emit/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 747:
/***/ 147:
/***/ ((module) => {

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


Expand Down
4 changes: 2 additions & 2 deletions test/unit/double-nested-builds/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
/***/ ((module) => {

"use strict";
module.exports = __nccwpck_require__(622);
module.exports = __nccwpck_require__(17);

/***/ })

Expand Down Expand Up @@ -182,7 +182,7 @@ module.exports = __nccwpck_require__(622);

/***/ }),

/***/ 622:
/***/ 17:
/***/ ((module) => {

"use strict";
Expand Down
1 change: 0 additions & 1 deletion test/unit/exports-nomodule/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/******/ "use strict";
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";
Expand Down
1 change: 0 additions & 1 deletion test/unit/exports-wildcard/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/******/ "use strict";
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";
Expand Down
19 changes: 14 additions & 5 deletions test/unit/externals/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 306:
/***/ 378:
/***/ ((module) => {

"use strict";
module.exports = require("external-replace/replaced/some-file");

/***/ }),

/***/ 830:
/***/ ((module) => {

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

/***/ }),

/***/ 196:
/***/ 958:
/***/ ((module) => {

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

console.log(external);
console.log(regexpExternal);

console.log(regexpExternalMatch);

})();

Expand Down
1 change: 0 additions & 1 deletion test/unit/imports/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/******/ "use strict";
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";
Expand Down
4 changes: 2 additions & 2 deletions test/unit/nested-builds/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/***/ 622:
/***/ ((module) => {

module.exports = __nccwpck_require__(622);
module.exports = __nccwpck_require__(17);

/***/ })

Expand Down Expand Up @@ -118,7 +118,7 @@

/***/ }),

/***/ 622:
/***/ 17:
/***/ ((module) => {

"use strict";
Expand Down
4 changes: 2 additions & 2 deletions test/unit/ts-exts/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.default = {};
exports["default"] = {};


/***/ }),
Expand All @@ -17,7 +17,7 @@ exports.default = {};


Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.default = void 0;
exports["default"] = void 0;
var dep_dep_js_1 = __nccwpck_require__(119);
Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return dep_dep_js_1.default; } }));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.default = {};
exports["default"] = {};


/***/ })
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tsconfig-paths/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.default = {};
exports["default"] = {};


/***/ })
Expand Down
2 changes: 0 additions & 2 deletions update-fixtures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
yarn run build
jest test/unit
for f in test/unit/*; do mv "${f}/actual.js" "${f}/output.js"; done
for f in test/unit/*; do mv "${f}/actual.js.map" "${f}/output.js.map"; done
node --expose-gc node_modules/.bin/jest --coverage --globals "{\"coverage\":true}" test/unit
for f in test/unit/*; do mv "${f}/actual.js" "${f}/output-coverage.js"; done
for f in test/unit/*; do mv "${f}/actual.js.map" "${f}/output-coverage.js.map"; done

0 comments on commit 8b60096

Please sign in to comment.