From bfbd78a7b828b91445e29091c3240188d1eb62f2 Mon Sep 17 00:00:00 2001 From: Michael Mok Date: Mon, 7 Feb 2022 02:30:03 +0100 Subject: [PATCH] test: update snapshots for Webpack 4 --- test/loader/loader.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/loader/loader.test.js b/test/loader/loader.test.js index 1357ceb3..7cc067f2 100644 --- a/test/loader/loader.test.js +++ b/test/loader/loader.test.js @@ -16,7 +16,7 @@ describe('loader', () => { const { execution, parsed } = compilation.module; expect(parsed).toMatchInlineSnapshot(` - "__webpack_require__.$Refresh$.runtime = require('react-refresh/runtime.js'); + "__webpack_require__.$Refresh$.runtime = require('react-refresh'); module.exports = 'Test'; @@ -62,7 +62,7 @@ describe('loader', () => { /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { - __webpack_require__.$Refresh$.runtime = __webpack_require__(/*! react-refresh/runtime.js */ \\"../../../../node_modules/react-refresh/runtime.js\\"); + __webpack_require__.$Refresh$.runtime = __webpack_require__(/*! react-refresh */ \\"../../../../node_modules/react-refresh/runtime.js\\"); module.exports = 'Test'; @@ -112,7 +112,7 @@ describe('loader', () => { const { execution, parsed } = compilation.module; expect(parsed).toMatchInlineSnapshot(` - "__webpack_require__.$Refresh$.runtime = require('react-refresh/runtime.js'); + "__webpack_require__.$Refresh$.runtime = require('react-refresh'); export default 'Test'; @@ -160,7 +160,7 @@ describe('loader', () => { \\"use strict\\"; __webpack_require__.r(__webpack_exports__); - __webpack_require__.$Refresh$.runtime = __webpack_require__(/*! react-refresh/runtime.js */ \\"../../../../node_modules/react-refresh/runtime.js\\"); + __webpack_require__.$Refresh$.runtime = __webpack_require__(/*! react-refresh */ \\"../../../../node_modules/react-refresh/runtime.js\\"); /* harmony default export */ __webpack_exports__[\\"default\\"] = ('Test');