From 5fa56bec8c6fcd18ffdc6cd8c1f8a827998698bf Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:17:12 -0500 Subject: [PATCH 01/12] feat: add coverage artifact upload and download steps in CI workflow --- .github/workflows/nodejs.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index cfb8370e65..20d525777e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -110,7 +110,31 @@ jobs: - name: Run tests for webpack version ${{ matrix.webpack-version }} run: npm run test:coverage -- --test-shard=${{ matrix.shard }} + - name: Upload coverage artifact + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: coverage-${{ matrix.os }}-${{ matrix.node-version }}-${{ strategy.job-index }} + path: coverage/lcov.info + if-no-files-found: error + + upload-coverage: + name: Upload coverage to codecov + + needs: test + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Download coverage artifacts + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + pattern: coverage-* + path: coverage + - name: Submit coverage data to codecov uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} + directory: coverage From 15d484739d1afd60f85a59c763c1c9cd259e3cf9 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:21:06 -0500 Subject: [PATCH 02/12] ci: node 26 --- .github/workflows/nodejs.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 20d525777e..6590f71dad 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -65,13 +65,12 @@ jobs: run: npm run validate:changeset test: - name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version == '24.15' && '24.x' || matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }}) + name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} (${{ matrix.shard }}) strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - # 24.15 is pinned on purpose: Node 24.16 is broken for Puppeteer. Do not bump to 24.x. - node-version: [22.x, 24.15, 25.x] + node-version: [22.x, 24.x, 25.x, 26.x] shard: ["1/4", "2/4", "3/4", "4/4"] webpack-version: [latest] From ec49afb754fec43b6ed3b3173c0419194d2c5a1b Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:26:54 -0500 Subject: [PATCH 03/12] chore: disable npm install scripts via .npmrc --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..97b895e2f9 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +ignore-scripts=true From e515f1f15d12f386a5f1171d682bcf5e8a89f9d8 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:30:14 -0500 Subject: [PATCH 04/12] ci: add build and client existence check steps in workflows --- .github/workflows/nodejs.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 6590f71dad..f40d672505 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -92,6 +92,12 @@ jobs: - name: Install dependencies run: npm ci + - name: Build + run: npm run build + + - name: Install Chrome for Puppeteer + run: npx puppeteer browsers install chrome + - name: Setup firefox if: matrix.os != 'windows-latest' uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47f8065f79..5c7425aac8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,12 @@ jobs: - run: npm ci + - name: Build + run: npm run build + + - name: Check client build exists + run: if [ ! -f client/index.js ]; then echo "Missing client build. 'npm run build' did not generate client/index.js"; exit 1; fi + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 From 6bf82921b9abf310742e4f4948928d943edae995 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:37:49 -0500 Subject: [PATCH 05/12] feat: update deps --- package-lock.json | 762 +++++++--------------------------------------- package.json | 2 +- 2 files changed, 104 insertions(+), 660 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4af8111224..639c568de9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -86,7 +86,7 @@ "npm-run-all": "^4.1.5", "prettier": "^3.2.4", "pretty-format": "^30.4.1", - "puppeteer": "^24.35.0", + "puppeteer": "^25.3.0", "readable-stream": "^4.5.2", "require-from-string": "^2.0.2", "rimraf": "^5.0.5", @@ -4537,38 +4537,75 @@ } }, "node_modules/@puppeteer/browsers": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.11.1.tgz", - "integrity": "sha512-YmhAxs7XPuxN0j7LJloHpfD1ylhDuFmmwMvfy/+6nBSrETT2ycL53LrhgPtR+f+GcPSybQVuQ5inWWu5MrWCpA==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.0.6.tgz", + "integrity": "sha512-B/gKoqlFkzhvzsI6jo9K1cZz9o5ypviVv/xu8CwA4grZzyVwN+XfkT+tu8T1zrauuEXv6VhS2oGX+6NL95WcKA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "debug": "^4.4.3", - "extract-zip": "^2.0.1", - "progress": "^2.0.3", - "proxy-agent": "^6.5.0", - "semver": "^7.7.3", - "tar-fs": "^3.1.1", - "yargs": "^17.7.2" + "modern-tar": "^0.7.6", + "yargs": "^18.0.0" }, "bin": { - "browsers": "lib/cjs/main-cli.js" + "browsers": "lib/main-cli.js" }, "engines": { - "node": ">=18" + "node": ">=22.12.0" + }, + "peerDependencies": { + "proxy-agent": ">=8.0.1", + "yauzl": "^2.10.0 || ^3.4.0" + }, + "peerDependenciesMeta": { + "proxy-agent": { + "optional": true + }, + "yauzl": { + "optional": true + } } }, - "node_modules/@puppeteer/browsers/node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "node_modules/@puppeteer/browsers/node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", "dev": true, "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" }, "engines": { - "node": ">=10" + "node": ">=20" + } + }, + "node_modules/@puppeteer/browsers/node_modules/yargs": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^7.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/@puppeteer/browsers/node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" } }, "node_modules/@rtsao/scc": { @@ -4649,13 +4686,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@tootallnate/quickjs-emscripten": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", - "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/body-parser": { "version": "1.19.6", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", @@ -4972,17 +5002,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.59.3", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.3.tgz", @@ -5868,19 +5887,6 @@ "node": ">=12.0.0" } }, - "node_modules/ast-types": { - "version": "0.13.4", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", - "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.1" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/async-function": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", @@ -5914,21 +5920,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/b4a": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.7.3.tgz", - "integrity": "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q==", - "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "react-native-b4a": "*" - }, - "peerDependenciesMeta": { - "react-native-b4a": { - "optional": true - } - } - }, "node_modules/babel-loader": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-10.0.0.tgz", @@ -6054,103 +6045,6 @@ "dev": true, "license": "MIT" }, - "node_modules/bare-events": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz", - "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==", - "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "bare-abort-controller": "*" - }, - "peerDependenciesMeta": { - "bare-abort-controller": { - "optional": true - } - } - }, - "node_modules/bare-fs": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.2.tgz", - "integrity": "sha512-veTnRzkb6aPHOvSKIOy60KzURfBdUflr5VReI+NSaPL6xf+XLdONQgZgpYvUuZLVQ8dCqxpBAudaOM1+KpAUxw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-events": "^2.5.4", - "bare-path": "^3.0.0", - "bare-stream": "^2.6.4", - "bare-url": "^2.2.2", - "fast-fifo": "^1.3.2" - }, - "engines": { - "bare": ">=1.16.0" - }, - "peerDependencies": { - "bare-buffer": "*" - }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - } - } - }, - "node_modules/bare-os": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz", - "integrity": "sha512-T+V1+1srU2qYNBmJCXZkUY5vQ0B4FSlL3QDROnKQYOqeiQR8UbjNHlPa+TIbM4cuidiN9GaTaOZgSEgsvPbh5A==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "engines": { - "bare": ">=1.14.0" - } - }, - "node_modules/bare-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", - "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-os": "^3.0.1" - } - }, - "node_modules/bare-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.7.0.tgz", - "integrity": "sha512-oyXQNicV1y8nc2aKffH+BUHFRXmx6VrPzlnaEvMhram0nPBrKcEdcyBg5r08D0i8VxngHFAiVyn1QKXpSG0B8A==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "streamx": "^2.21.0" - }, - "peerDependencies": { - "bare-buffer": "*", - "bare-events": "*" - }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - }, - "bare-events": { - "optional": true - } - } - }, - "node_modules/bare-url": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.3.2.tgz", - "integrity": "sha512-ZMq4gd9ngV5aTMa5p9+UfY0b3skwhHELaDkhEHetMdX0LRkW9kzaym4oo/Eh+Ghm0CCDuMTsRIGM/ytUc1ZYmw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "bare-path": "^3.0.0" - } - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -6185,16 +6079,6 @@ "node": ">=6.0.0" } }, - "node_modules/basic-ftp": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.3.0.tgz", - "integrity": "sha512-5K9eNNn7ywHPsYnFwjKgYH8Hf8B5emh7JKcPaVjjrMJFQQwGpwowEnZNEtHs7DfR7hCZsmaK3VA4HUK0YarT+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", @@ -6361,16 +6245,6 @@ "ieee754": "^1.2.1" } }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -6605,15 +6479,18 @@ } }, "node_modules/chromium-bidi": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-12.0.1.tgz", - "integrity": "sha512-fGg+6jr0xjQhzpy5N4ErZxQ4wF7KLEvhGZXD6EgvZKDhu7iOhZXnZhcDxPJDcwTcrD48NPzOCo84RP2lv3Z+Cg==", + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-16.0.1.tgz", + "integrity": "sha512-J63PGu/9PpeCwLIcKYyzWP6yaVL5pxuBc0shlYCYM8BaAkmlwiQboXO1iNbOgSDbVklEyYFfNEcHD8oOAWacUA==", "dev": true, "license": "Apache-2.0", "dependencies": { "mitt": "^3.0.1", "zod": "^3.24.1" }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0" + }, "peerDependencies": { "devtools-protocol": "*" } @@ -7589,16 +7466,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/data-uri-to-buffer": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", - "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, "node_modules/data-urls": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", @@ -7795,21 +7662,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/degenerator": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", - "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ast-types": "^0.13.4", - "escodegen": "^2.1.0", - "esprima": "^4.0.1" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -7867,9 +7719,9 @@ } }, "node_modules/devtools-protocol": { - "version": "0.0.1534754", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1534754.tgz", - "integrity": "sha512-26T91cV5dbOYnXdJi5qQHoTtUoNEqwkHcAyu/IKtjIAxiEqPMrDiRkDOPWVsGfNZGmlQVHQbZRSjD8sxagWVsQ==", + "version": "0.0.1638949", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1638949.tgz", + "integrity": "sha512-mXwg4Fqnv0WR4iuAT/gYUmctNkjILwXFHyZ+m7Ty1dfr0ezZt2U3gnrrJTfRobJTHoXf+IbuFvFITzLrLFjwJA==", "dev": true, "license": "BSD-3-Clause" }, @@ -8085,16 +7937,6 @@ "node": ">= 0.8" } }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, "node_modules/enhanced-resolve": { "version": "5.24.1", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.1.tgz", @@ -8416,28 +8258,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, "node_modules/eslint": { "version": "9.39.1", "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", @@ -9559,16 +9379,6 @@ "node": ">=0.8.x" } }, - "node_modules/events-universal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", - "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "bare-events": "^2.7.0" - } - }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", @@ -9934,43 +9744,6 @@ "dev": true, "license": "MIT" }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -9994,13 +9767,6 @@ "node": ">=6.0.0" } }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", - "dev": true, - "license": "MIT" - }, "node_modules/fast-glob": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", @@ -10102,16 +9868,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - } - }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -10601,21 +10357,6 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/get-uri": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz", - "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==", - "dev": true, - "license": "MIT", - "dependencies": { - "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.2", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/git-hooks-list": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.2.1.tgz", @@ -11383,16 +11124,6 @@ "node": ">=10.13.0" } }, - "node_modules/ip-address": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", - "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, "node_modules/ip-regex": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", @@ -14437,6 +14168,16 @@ "dev": true, "license": "MIT" }, + "node_modules/modern-tar": { + "version": "0.7.7", + "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.7.7.tgz", + "integrity": "sha512-t9VmxaqrmANnEOBhpSDI6HD192Ge48k8vmWqQQL7hSFEqHEYwZbbsu49+aKLWZeRvFs3j1pMhXOqqF4kPlvjkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", @@ -14540,16 +14281,6 @@ "devOptional": true, "license": "MIT" }, - "node_modules/netmask": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", - "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", @@ -15207,78 +14938,6 @@ "node": ">=6" } }, - "node_modules/pac-proxy-agent": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", - "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.1.2", - "debug": "^4.3.4", - "get-uri": "^6.0.1", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.6", - "pac-resolver": "^7.0.1", - "socks-proxy-agent": "^8.0.5" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-proxy-agent/node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-proxy-agent/node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/pac-resolver": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", - "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", - "dev": true, - "license": "MIT", - "dependencies": { - "degenerator": "^5.0.0", - "netmask": "^2.0.2" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/package-json-from-dist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", @@ -15480,13 +15139,6 @@ "node": ">=4" } }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true, - "license": "MIT" - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -15883,16 +15535,6 @@ "node": ">= 0.6.0" } }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -15927,81 +15569,6 @@ "node": ">= 0.10" } }, - "node_modules/proxy-agent": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", - "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "^4.3.4", - "http-proxy-agent": "^7.0.1", - "https-proxy-agent": "^7.0.6", - "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.1.0", - "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.5" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/proxy-agent/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true, - "license": "MIT" - }, "node_modules/prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", @@ -16010,17 +15577,6 @@ "license": "MIT", "optional": true }, - "node_modules/pump": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", - "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", - "dev": true, - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -16032,44 +15588,43 @@ } }, "node_modules/puppeteer": { - "version": "24.35.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.35.0.tgz", - "integrity": "sha512-sbjB5JnJ+3nwgSdRM/bqkFXqLxRz/vsz0GRIeTlCk+j+fGpqaF2dId9Qp25rXz9zfhqnN9s0krek1M/C2GDKtA==", + "version": "25.3.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.3.0.tgz", + "integrity": "sha512-O1tx8S315aw8eI99HZ5ZNcVEzJ9+jKF//eO5UvfZ3cXJ6okZ5sX3Y50u7DJaM+ewEK4LqXP068tBhfRaWikj+g==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "2.11.1", - "chromium-bidi": "12.0.1", - "cosmiconfig": "^9.0.0", - "devtools-protocol": "0.0.1534754", - "puppeteer-core": "24.35.0", - "typed-query-selector": "^2.12.0" + "@puppeteer/browsers": "3.0.6", + "chromium-bidi": "16.0.1", + "devtools-protocol": "0.0.1638949", + "lilconfig": "^3.1.3", + "puppeteer-core": "25.3.0", + "typed-query-selector": "^2.12.2" }, "bin": { - "puppeteer": "lib/cjs/puppeteer/node/cli.js" + "puppeteer": "lib/puppeteer/node/cli.js" }, "engines": { - "node": ">=18" + "node": ">=22.12.0" } }, "node_modules/puppeteer-core": { - "version": "24.35.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.35.0.tgz", - "integrity": "sha512-vt1zc2ME0kHBn7ZDOqLvgvrYD5bqNv5y2ZNXzYnCv8DEtZGw/zKhljlrGuImxptZ4rq+QI9dFGrUIYqG4/IQzA==", + "version": "25.3.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.3.0.tgz", + "integrity": "sha512-fm+wpUr2oigH1PXZvwgATrM2tYWHMDG8ASzTEe9uukCye4X5Ldx1K5BTHPFKITrIWvQQAQ256d1NpbEveBcKjA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "2.11.1", - "chromium-bidi": "12.0.1", - "debug": "^4.4.3", - "devtools-protocol": "0.0.1534754", - "typed-query-selector": "^2.12.0", - "webdriver-bidi-protocol": "0.3.10", - "ws": "^8.19.0" + "@puppeteer/browsers": "3.0.6", + "chromium-bidi": "16.0.1", + "devtools-protocol": "0.0.1638949", + "typed-query-selector": "^2.12.2", + "webdriver-bidi-protocol": "0.4.2", + "ws": "^8.21.0" }, "engines": { - "node": ">=18" + "node": ">=22.12.0" } }, "node_modules/pvtsutils": { @@ -17259,57 +16814,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", - "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ip-address": "^10.0.1", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", - "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, "node_modules/sort-object-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/sort-object-keys/-/sort-object-keys-2.1.0.tgz", @@ -17519,18 +17023,6 @@ "node": ">= 0.4" } }, - "node_modules/streamx": { - "version": "2.23.0", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.23.0.tgz", - "integrity": "sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "events-universal": "^1.0.0", - "fast-fifo": "^1.3.2", - "text-decoder": "^1.1.0" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -17957,33 +17449,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/tar-fs": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.1.tgz", - "integrity": "sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - }, - "optionalDependencies": { - "bare-fs": "^4.0.1", - "bare-path": "^3.0.0" - } - }, - "node_modules/tar-stream": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", - "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "b4a": "^1.6.4", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } - }, "node_modules/tcp-port-used": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/tcp-port-used/-/tcp-port-used-1.0.2.tgz", @@ -18070,16 +17535,6 @@ "source-map": "^0.6.0" } }, - "node_modules/text-decoder": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", - "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "b4a": "^1.6.4" - } - }, "node_modules/text-extensions": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz", @@ -18453,9 +17908,9 @@ } }, "node_modules/typed-query-selector": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.0.tgz", - "integrity": "sha512-SbklCd1F0EiZOyPiW192rrHZzZ5sBijB6xM+cpmrwDqObvdtunOHHIk9fCGsoK5JVIYXoyEp4iEdE3upFH3PAg==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.2.tgz", + "integrity": "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ==", "dev": true, "license": "MIT" }, @@ -18826,9 +18281,9 @@ } }, "node_modules/webdriver-bidi-protocol": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.3.10.tgz", - "integrity": "sha512-5LAE43jAVLOhB/QqX4bwSiv0Hg1HBfMmOuwBSXHdvg4GMGu9Y0lIq7p4R/yySu6w74WmaR4GM4H9t2IwLW7hgw==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.2.tgz", + "integrity": "sha512-VSV+fzfChirL3e7jay2yUC7B4HQCGtEWEg/MSSQbK+qWbqeGlRLlXTzPpYr3XGUvbpDHumWZBJxgesg4N7dbtA==", "dev": true, "license": "Apache-2.0" }, @@ -19486,17 +18941,6 @@ "node": ">=8" } }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index d53d63a90a..ef505f433d 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "npm-run-all": "^4.1.5", "prettier": "^3.2.4", "pretty-format": "^30.4.1", - "puppeteer": "^24.35.0", + "puppeteer": "^25.3.0", "readable-stream": "^4.5.2", "require-from-string": "^2.0.2", "rimraf": "^5.0.5", From f6e0f626bd10b72f2f68f61728a27d0f00083c4d Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:45:40 -0500 Subject: [PATCH 06/12] fixup! --- scripts/node-test-setup.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/node-test-setup.mjs b/scripts/node-test-setup.mjs index 9775a39872..326ac86c5e 100644 --- a/scripts/node-test-setup.mjs +++ b/scripts/node-test-setup.mjs @@ -5,7 +5,8 @@ import webpack from "webpack"; process.env.CHOKIDAR_USEPOLLING = "true"; -// Normalize "\r\n" and "\r" to "\n" so snapshots are platform-agnostic. +// Normalize "\r\n" and "\r" to "\n" so snapshots are platform-agnostic, +// and "[object Event]"-style console text (Puppeteer >= 25) to "JSHandle@object". snapshot.setDefaultSnapshotSerializers([ (value) => format(value, { @@ -14,7 +15,9 @@ snapshot.setDefaultSnapshotSerializers([ indent: 2, printBasicPrototype: false, printFunctionName: false, - }).replaceAll(/\r\n|\r/g, "\n"), + }) + .replaceAll(/\r\n|\r/g, "\n") + .replaceAll(/\[object [A-Z]\w*\]/g, "JSHandle@object"), ]); const [webpackVersion] = webpack.version; From 4bac73d6a5aafaf1578b9567ebcb1e3c7ae50cfe Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 21:59:57 -0500 Subject: [PATCH 07/12] chore: update dependencies and remove unused @types/node-forge --- package-lock.json | 62 ++++++++++++++++++++--------------------------- package.json | 3 +-- 2 files changed, 27 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index 639c568de9..6ac6685bbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53,7 +53,6 @@ "@types/compression": "^1.7.2", "@types/graceful-fs": "^4.1.9", "@types/node": "^24.0.14", - "@types/node-forge": "^1.3.1", "@types/picomatch": "^4.0.2", "@types/trusted-types": "^2.0.7", "acorn": "^8.14.0", @@ -98,7 +97,7 @@ "typescript-eslint": "^8.36.0", "wait-for-expect": "^3.0.2", "webpack": "^5.108.0", - "webpack-cli": "^7.0.2", + "webpack-cli": "^7.2.1", "webpack-merge": "^6.0.1" }, "engines": { @@ -3201,9 +3200,9 @@ } }, "node_modules/@discoveryjs/json-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-1.0.0.tgz", - "integrity": "sha512-dDlz3W405VMFO4w5kIP9DOmELBcvFQGmLoKSdIRstBDubKFYwaNHV1NnlzMCQpXQFGWVALmeMORAuiLx18AvZQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-1.1.0.tgz", + "integrity": "sha512-Xc3VhU02wqZ1HvHRJUwL09HkZSTvidqY5Ya0NXBSYOxAp+Ln9dcJr9fySI+CkONzP3PekQo9WdzCv0PGER/mOA==", "dev": true, "license": "MIT", "engines": { @@ -4897,16 +4896,6 @@ "undici-types": "~7.16.0" } }, - "node_modules/@types/node-forge": { - "version": "1.3.14", - "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.14.tgz", - "integrity": "sha512-mhVF2BnD4BO+jtOp7z1CdzaK4mbuK0LLQYAvdOLqHTavxFNq4zA1EmYkpnFjP8HOUzedfQkRnp0E2ulSAYSzAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/picomatch": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/picomatch/-/picomatch-4.0.2.tgz", @@ -7999,9 +7988,9 @@ } }, "node_modules/envinfo": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", - "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.21.0.tgz", + "integrity": "sha512-Lw7I8Zp5YKHFCXL7+Dz95g4CcbMEpgvqZNNq3AmlT5XAV6CgAAk6gyAMqn2zjw08K9BHfcNuKrMiCPLByGafow==", "dev": true, "license": "MIT", "bin": { @@ -9834,16 +9823,6 @@ ], "license": "BSD-3-Clause" }, - "node_modules/fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4.9.1" - } - }, "node_modules/fastq": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", @@ -18344,18 +18323,17 @@ } }, "node_modules/webpack-cli": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.0.2.tgz", - "integrity": "sha512-dB0R4T+C/8YuvM+fabdvil6QE44/ChDXikV5lOOkrUeCkW5hTJv2pGLE3keh+D5hjYw8icBaJkZzpFoaHV4T+g==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-7.2.1.tgz", + "integrity": "sha512-YwSGbcZdfz12DM8JIseVPr3oBb09IgVCVc4vY3oDvZnI/mALTGPAP1QiqOi4/bBLSJrRHaqDIXeHcNA0+G38aw==", "dev": true, "license": "MIT", "dependencies": { - "@discoveryjs/json-ext": "^1.0.0", + "@discoveryjs/json-ext": "^1.1.0", "commander": "^14.0.3", "cross-spawn": "^7.0.6", - "envinfo": "^7.14.0", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", + "envinfo": "^7.21.0", + "import-local": "^3.2.0", "interpret": "^3.1.1", "rechoir": "^0.8.0", "webpack-merge": "^6.0.1" @@ -18371,11 +18349,23 @@ "url": "https://opencollective.com/webpack" }, "peerDependencies": { + "js-yaml": "^4.0.0 || ^5.0.0", + "json5": "^2.2.3", + "toml": "^3.0.0 || ^4.0.0", "webpack": "^5.101.0", "webpack-bundle-analyzer": "^4.0.0 || ^5.0.0", - "webpack-dev-server": "^5.0.0" + "webpack-dev-server": "^5.0.0 || ^6.0.0" }, "peerDependenciesMeta": { + "js-yaml": { + "optional": true + }, + "json5": { + "optional": true + }, + "toml": { + "optional": true + }, "webpack-bundle-analyzer": { "optional": true }, diff --git a/package.json b/package.json index ef505f433d..3fc4c05159 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,6 @@ "@types/compression": "^1.7.2", "@types/graceful-fs": "^4.1.9", "@types/node": "^24.0.14", - "@types/node-forge": "^1.3.1", "@types/picomatch": "^4.0.2", "@types/trusted-types": "^2.0.7", "acorn": "^8.14.0", @@ -144,7 +143,7 @@ "typescript-eslint": "^8.36.0", "wait-for-expect": "^3.0.2", "webpack": "^5.108.0", - "webpack-cli": "^7.0.2", + "webpack-cli": "^7.2.1", "webpack-merge": "^6.0.1" }, "peerDependencies": { From d471e782e166ba4c2f91dcafe019900a3ece8888 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 22:32:15 -0500 Subject: [PATCH 08/12] chore: update snapshots --- .../validate-options.test.js.snap.webpack5 | 158 ++++----- .../__snapshots__/basic.test.js.snap.webpack5 | 24 +- .../bonjour-option.test.js.snap.webpack5 | 6 +- .../colors.test.js.snap.webpack5 | 4 +- ...ryApiFallback-option.test.js.snap.webpack5 | 4 +- .../host-option.test.js.snap.webpack5 | 20 +- .../ipc-option.test.js.snap.webpack5 | 8 +- .../port-option.test.js.snap.webpack5 | 4 +- .../server-option.test.js.snap.webpack5 | 14 +- .../static-option.test.js.snap.webpack5 | 34 +- .../watchFiles-option.test.js.snap.webpack5 | 6 +- .../api-plugin.test.js.snap.webpack5 | 12 - .../__snapshots__/api.test.js.snap.webpack5 | 8 +- .../__snapshots__/entry.test.js.snap.webpack5 | 4 +- .../headers.test.js.snap.webpack5 | 6 +- ...history-api-fallback.test.js.snap.webpack5 | 20 +- .../__snapshots__/host.test.js.snap.webpack5 | 120 +++---- .../hot-and-live-reload.test.js.snap.webpack5 | 12 +- .../__snapshots__/ipc.test.js.snap.webpack5 | 8 +- .../logging.test.js.snap.webpack5 | 10 +- .../overlay.test.js.snap.webpack5 | 304 +++++++++++++----- .../__snapshots__/port.test.js.snap.webpack5 | 24 +- ...and-client-transport.test.js.snap.webpack5 | 10 +- .../server.test.js.snap.webpack5 | 6 +- .../setup-middlewares.test.js.snap.webpack5 | 40 +-- .../__snapshots__/stats.test.js.snap.webpack5 | 18 +- .../target.test.js.snap.webpack5 | 46 +-- .../watch-files.test.js.snap.webpack5 | 124 ++----- ...socket-communication.test.js.snap.webpack5 | 12 +- ...eb-socket-server-url.test.js.snap.webpack5 | 144 ++++----- 30 files changed, 637 insertions(+), 573 deletions(-) diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack5 b/test/__snapshots__/validate-options.test.js.snap.webpack5 index 43dbda2f6b..76376f8a72 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack5 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`options > validate > should throw an error on the "allowedHosts" option with '123' value 1`] = ` +exports[`options > validate > should throw an error on the \"allowedHosts\" option with '123' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts should be one of these: [non-empty string, ...] (should not have fewer than 1 item) | "auto" | "all" | non-empty string @@ -12,17 +12,17 @@ exports[`options > validate > should throw an error on the "allowedHosts" option * options.allowedHosts should be a non-empty string." `; -exports[`options > validate > should throw an error on the "allowedHosts" option with '[""]' value 1`] = ` +exports[`options > validate > should throw an error on the \"allowedHosts\" option with '[\"\"]' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts[0] should be a non-empty string." `; -exports[`options > validate > should throw an error on the "allowedHosts" option with '[]' value 1`] = ` +exports[`options > validate > should throw an error on the \"allowedHosts\" option with '[]' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts should be a non-empty array." `; -exports[`options > validate > should throw an error on the "allowedHosts" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"allowedHosts\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts should be one of these: [non-empty string, ...] (should not have fewer than 1 item) | "auto" | "all" | non-empty string @@ -36,7 +36,7 @@ exports[`options > validate > should throw an error on the "allowedHosts" option * options.allowedHosts should be a non-empty string." `; -exports[`options > validate > should throw an error on the "allowedHosts" option with 'true' value 1`] = ` +exports[`options > validate > should throw an error on the \"allowedHosts\" option with 'true' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts should be one of these: [non-empty string, ...] (should not have fewer than 1 item) | "auto" | "all" | non-empty string @@ -50,21 +50,21 @@ exports[`options > validate > should throw an error on the "allowedHosts" option * options.allowedHosts should be a non-empty string." `; -exports[`options > validate > should throw an error on the "app" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"app\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.app should be an instance of function. -> Allows to use custom applications, such as 'connect', 'fastify', etc. -> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp" `; -exports[`options > validate > should throw an error on the "app" option with 'test' value 1`] = ` +exports[`options > validate > should throw an error on the \"app\" option with 'test' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.app should be an instance of function. -> Allows to use custom applications, such as 'connect', 'fastify', etc. -> Read more at https://webpack.js.org/configuration/dev-server/#devserverapp" `; -exports[`options > validate > should throw an error on the "bonjour" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"bonjour\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.bonjour should be one of these: boolean | object { … } @@ -78,7 +78,7 @@ exports[`options > validate > should throw an error on the "bonjour" option with -> Read more at https://github.com/watson/bonjour#initializing" `; -exports[`options > validate > should throw an error on the "client" option with 'whoops!' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with 'whoops!' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -90,7 +90,7 @@ exports[`options > validate > should throw an error on the "client" option with object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }" `; -exports[`options > validate > should throw an error on the "client" option with '{"logging":"silent"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"logging\":\"silent\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: "none" | "error" | "warn" | "info" | "log" | "verbose" @@ -98,7 +98,7 @@ exports[`options > validate > should throw an error on the "client" option with -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; -exports[`options > validate > should throw an error on the "client" option with '{"logging":"whoops!"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"logging\":\"whoops!\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: "none" | "error" | "warn" | "info" | "log" | "verbose" @@ -106,7 +106,7 @@ exports[`options > validate > should throw an error on the "client" option with -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; -exports[`options > validate > should throw an error on the "client" option with '{"overlay":""}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"overlay\":\"\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -123,13 +123,13 @@ exports[`options > validate > should throw an error on the "client" option with object { errors?, warnings?, runtimeErrors?, trustedTypesPolicyName? }" `; -exports[`options > validate > should throw an error on the "client" option with '{"overlay":{"arbitrary":""}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"overlay\":{\"arbitrary\":\"\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.overlay has an unknown property 'arbitrary'. These properties are valid: object { errors?, warnings?, runtimeErrors?, trustedTypesPolicyName? }" `; -exports[`options > validate > should throw an error on the "client" option with '{"overlay":{"errors":""}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"overlay\":{\"errors\":\"\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -145,7 +145,7 @@ exports[`options > validate > should throw an error on the "client" option with -> Filter compiler errors. Return true to include and return false to exclude." `; -exports[`options > validate > should throw an error on the "client" option with '{"overlay":{"warnings":""}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"overlay\":{\"warnings\":\"\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -161,7 +161,7 @@ exports[`options > validate > should throw an error on the "client" option with -> Filter compiler warnings. Return true to include and return false to exclude." `; -exports[`options > validate > should throw an error on the "client" option with '{"progress":""}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"progress\":\"\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.progress should be one of these: true | false | "linear" | "circular" @@ -169,7 +169,7 @@ exports[`options > validate > should throw an error on the "client" option with -> Read more at https://webpack.js.org/configuration/dev-server/#progress" `; -exports[`options > validate > should throw an error on the "client" option with '{"reconnect":""}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"reconnect\":\"\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -185,13 +185,13 @@ exports[`options > validate > should throw an error on the "client" option with * options.client.reconnect should be a number (should be >= 0)." `; -exports[`options > validate > should throw an error on the "client" option with '{"unknownOption":true}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"unknownOption\":true}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client has an unknown property 'unknownOption'. These properties are valid: object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }" `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketTransport":true}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketTransport\":true}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -207,30 +207,30 @@ exports[`options > validate > should throw an error on the "client" option with * options.client.webSocketTransport should be a non-empty string." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"hostname":""}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"hostname\":\"\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.webSocketURL.hostname should be a non-empty string. -> Tells clients connected to devServer to use the provided hostname." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"hostname":true,"pathname":"","port":8080}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"hostname\":true,\"pathname\":\"\",\"port\":8080}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.webSocketURL.hostname should be a non-empty string. -> Tells clients connected to devServer to use the provided hostname." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"pathname":true}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"pathname\":true}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.webSocketURL.pathname should be a string. -> Tells clients connected to devServer to use the provided path to connect." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"port":""}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"port\":\"\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.webSocketURL.port should be a non-empty string." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"port":true}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"port\":true}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -245,7 +245,7 @@ exports[`options > validate > should throw an error on the "client" option with * options.client.webSocketURL.port should be a non-empty string." `; -exports[`options > validate > should throw an error on the "client" option with '{"webSocketURL":{"username":123,"password":976}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"client\" option with '{\"webSocketURL\":{\"username\":123,\"password\":976}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client should be one of these: false | object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? } @@ -258,14 +258,14 @@ exports[`options > validate > should throw an error on the "client" option with -> Tells clients connected to devServer to use the provided username to authenticate." `; -exports[`options > validate > should throw an error on the "compress" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"compress\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.compress should be a boolean. -> Enables gzip compression for everything served. -> Read more at https://webpack.js.org/configuration/dev-server/#devservercompress" `; -exports[`options > validate > should throw an error on the "devMiddleware" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"devMiddleware\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.devMiddleware should be an object: object { … } @@ -273,7 +273,7 @@ exports[`options > validate > should throw an error on the "devMiddleware" optio -> Read more at https://webpack.js.org/configuration/dev-server/#devserverdevmiddleware" `; -exports[`options > validate > should throw an error on the "headers" option with '1' value 1`] = ` +exports[`options > validate > should throw an error on the \"headers\" option with '1' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.headers should be one of these: [object { key?, value? }, ...] (should not have fewer than 1 item) | object { … } | function @@ -287,18 +287,18 @@ exports[`options > validate > should throw an error on the "headers" option with * options.headers should be an instance of function." `; -exports[`options > validate > should throw an error on the "headers" option with '[]' value 1`] = ` +exports[`options > validate > should throw an error on the \"headers\" option with '[]' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.headers should be a non-empty array." `; -exports[`options > validate > should throw an error on the "headers" option with '[{"foo":"bar"}]' value 1`] = ` +exports[`options > validate > should throw an error on the \"headers\" option with '[{\"foo\":\"bar\"}]' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.headers[0] has an unknown property 'foo'. These properties are valid: object { key?, value? }" `; -exports[`options > validate > should throw an error on the "headers" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"headers\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.headers should be one of these: [object { key?, value? }, ...] (should not have fewer than 1 item) | object { … } | function @@ -312,7 +312,7 @@ exports[`options > validate > should throw an error on the "headers" option with * options.headers should be an instance of function." `; -exports[`options > validate > should throw an error on the "historyApiFallback" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"historyApiFallback\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.historyApiFallback should be one of these: boolean | object { … } @@ -326,12 +326,12 @@ exports[`options > validate > should throw an error on the "historyApiFallback" -> Read more at https://github.com/bripkens/connect-history-api-fallback#options" `; -exports[`options > validate > should throw an error on the "host" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"host\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.host should be a non-empty string." `; -exports[`options > validate > should throw an error on the "host" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"host\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.host should be one of these: "local-ip" | "local-ipv4" | "local-ipv6" | non-empty string @@ -343,7 +343,7 @@ exports[`options > validate > should throw an error on the "host" option with 'f * options.host should be a non-empty string." `; -exports[`options > validate > should throw an error on the "host" option with 'null' value 1`] = ` +exports[`options > validate > should throw an error on the \"host\" option with 'null' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.host should be one of these: "local-ip" | "local-ipv4" | "local-ipv6" | non-empty string @@ -355,7 +355,7 @@ exports[`options > validate > should throw an error on the "host" option with 'n * options.host should be a non-empty string." `; -exports[`options > validate > should throw an error on the "hot" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"hot\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.hot should be one of these: boolean | "only" @@ -366,7 +366,7 @@ exports[`options > validate > should throw an error on the "hot" option with '' * options.hot should be "only"." `; -exports[`options > validate > should throw an error on the "hot" option with 'foo' value 1`] = ` +exports[`options > validate > should throw an error on the \"hot\" option with 'foo' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.hot should be one of these: boolean | "only" @@ -377,7 +377,7 @@ exports[`options > validate > should throw an error on the "hot" option with 'fo * options.hot should be "only"." `; -exports[`options > validate > should throw an error on the "ipc" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"ipc\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.ipc should be one of these: non-empty string | true @@ -388,7 +388,7 @@ exports[`options > validate > should throw an error on the "ipc" option with 'fa * options.ipc should be true." `; -exports[`options > validate > should throw an error on the "ipc" option with '{}' value 1`] = ` +exports[`options > validate > should throw an error on the \"ipc\" option with '{}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.ipc should be one of these: non-empty string | true @@ -400,26 +400,26 @@ exports[`options > validate > should throw an error on the "ipc" option with '{} * options.ipc should be true." `; -exports[`options > validate > should throw an error on the "liveReload" option with 'invalid' value 1`] = ` +exports[`options > validate > should throw an error on the \"liveReload\" option with 'invalid' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.liveReload should be a boolean. -> Enables reload/refresh the page(s) when file changes are detected (enabled by default). -> Read more at https://webpack.js.org/configuration/dev-server/#devserverlivereload" `; -exports[`options > validate > should throw an error on the "onListening" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"onListening\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.onListening should be an instance of function. -> Provides the ability to execute a custom function when dev server starts listening. -> Read more at https://webpack.js.org/configuration/dev-server/#devserveronlistening" `; -exports[`options > validate > should throw an error on the "open" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"open\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.open should be a non-empty string." `; -exports[`options > validate > should throw an error on the "open" option with '{"app":true}' value 1`] = ` +exports[`options > validate > should throw an error on the \"open\" option with '{\"app\":true}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.open should be one of these: [non-empty string | object { target?, app? }, ...] | boolean | non-empty string | object { target?, app? } @@ -436,13 +436,13 @@ exports[`options > validate > should throw an error on the "open" option with '{ -> Open specified browser." `; -exports[`options > validate > should throw an error on the "open" option with '{"foo":"bar"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"open\" option with '{\"foo\":\"bar\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.open has an unknown property 'foo'. These properties are valid: object { target?, app? }" `; -exports[`options > validate > should throw an error on the "open" option with '{"target":90}' value 1`] = ` +exports[`options > validate > should throw an error on the \"open\" option with '{\"target\":90}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.open should be one of these: [non-empty string | object { target?, app? }, ...] | boolean | non-empty string | object { target?, app? } @@ -458,22 +458,22 @@ exports[`options > validate > should throw an error on the "open" option with '{ * options.open.target should be a string." `; -exports[`options > validate > should throw an error on the "port" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"port\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.port should be a non-empty string." `; -exports[`options > validate > should throw an error on the "port" option with '-1' value 1`] = ` +exports[`options > validate > should throw an error on the \"port\" option with '-1' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.port should be >= 0 and <= 65535." `; -exports[`options > validate > should throw an error on the "port" option with '65536' value 1`] = ` +exports[`options > validate > should throw an error on the \"port\" option with '65536' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.port should be >= 0 and <= 65535." `; -exports[`options > validate > should throw an error on the "port" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"port\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.port should be one of these: number (should be >= 0 and <= 65535) | non-empty string | "auto" @@ -485,7 +485,7 @@ exports[`options > validate > should throw an error on the "port" option with 'f * options.port should be "auto"." `; -exports[`options > validate > should throw an error on the "port" option with 'null' value 1`] = ` +exports[`options > validate > should throw an error on the \"port\" option with 'null' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.port should be one of these: number (should be >= 0 and <= 65535) | non-empty string | "auto" @@ -497,7 +497,7 @@ exports[`options > validate > should throw an error on the "port" option with 'n * options.port should be "auto"." `; -exports[`options > validate > should throw an error on the "proxy" option with '() => {}' value 1`] = ` +exports[`options > validate > should throw an error on the \"proxy\" option with '() => {}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.proxy should be an array: [object { … } | function, ...] @@ -505,7 +505,7 @@ exports[`options > validate > should throw an error on the "proxy" option with ' -> Read more at https://webpack.js.org/configuration/dev-server/#devserverproxy" `; -exports[`options > validate > should throw an error on the "proxy" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"proxy\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.proxy should be an array: [object { … } | function, ...] @@ -513,7 +513,7 @@ exports[`options > validate > should throw an error on the "proxy" option with ' -> Read more at https://webpack.js.org/configuration/dev-server/#devserverproxy" `; -exports[`options > validate > should throw an error on the "proxy" option with '{"/api":"http://localhost:3000"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"proxy\" option with '{\"/api\":\"http://localhost:3000\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.proxy should be an array: [object { … } | function, ...] @@ -521,13 +521,13 @@ exports[`options > validate > should throw an error on the "proxy" option with ' -> Read more at https://webpack.js.org/configuration/dev-server/#devserverproxy" `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","additional":"test"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"additional\":\"test\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server has an unknown property 'additional'. These properties are valid: object { type?, options? }" `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"ca":true}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"ca\":true}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server should be one of these: "http" | "https" | "http2" | function | non-empty string | object { type?, options? } @@ -544,7 +544,7 @@ exports[`options > validate > should throw an error on the "server" option with * options.server.options.ca should be an instance of Buffer." `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"cert":true}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"cert\":true}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server should be one of these: "http" | "https" | "http2" | function | non-empty string | object { type?, options? } @@ -561,7 +561,7 @@ exports[`options > validate > should throw an error on the "server" option with * options.server.options.cert should be an instance of Buffer." `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"key":10}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"key\":10}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server should be one of these: "http" | "https" | "http2" | function | non-empty string | object { type?, options? } @@ -578,13 +578,13 @@ exports[`options > validate > should throw an error on the "server" option with * options.server.options.key should be an instance of Buffer." `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"passphrase":false}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"passphrase\":false}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server.options.passphrase should be a string. -> Passphrase for a pfx file." `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"pfx":10}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"pfx\":10}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server should be one of these: "http" | "https" | "http2" | function | non-empty string | object { type?, options? } @@ -601,39 +601,39 @@ exports[`options > validate > should throw an error on the "server" option with * options.server.options.pfx should be an instance of Buffer." `; -exports[`options > validate > should throw an error on the "server" option with '{"type":"https","options":{"requestCert":"false"}}' value 1`] = ` +exports[`options > validate > should throw an error on the \"server\" option with '{\"type\":\"https\",\"options\":{\"requestCert\":\"false\"}}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.server.options.requestCert should be a boolean. -> Request for an SSL certificate." `; -exports[`options > validate > should throw an error on the "setupMiddlewares" option with '10' value 1`] = ` +exports[`options > validate > should throw an error on the \"setupMiddlewares\" option with '10' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.setupMiddlewares should be an instance of function. -> Provides the ability to execute a custom function and apply custom middleware(s). -> Read more at https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares" `; -exports[`options > validate > should throw an error on the "setupMiddlewares" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"setupMiddlewares\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.setupMiddlewares should be an instance of function. -> Provides the ability to execute a custom function and apply custom middleware(s). -> Read more at https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares" `; -exports[`options > validate > should throw an error on the "setupMiddlewares" option with 'true' value 1`] = ` +exports[`options > validate > should throw an error on the \"setupMiddlewares\" option with 'true' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.setupMiddlewares should be an instance of function. -> Provides the ability to execute a custom function and apply custom middleware(s). -> Read more at https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares" `; -exports[`options > validate > should throw an error on the "static" option with '' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be a non-empty string." `; -exports[`options > validate > should throw an error on the "static" option with '0' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '0' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be one of these: [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } @@ -648,7 +648,7 @@ exports[`options > validate > should throw an error on the "static" option with object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; -exports[`options > validate > should throw an error on the "static" option with 'null' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with 'null' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be one of these: [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } @@ -663,14 +663,14 @@ exports[`options > validate > should throw an error on the "static" option with object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }" `; -exports[`options > validate > should throw an error on the "static" option with '{"directory":false}' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '{\"directory\":false}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static.directory should be a non-empty string. -> Directory for static contents. -> Read more at https://webpack.js.org/configuration/dev-server/#directory" `; -exports[`options > validate > should throw an error on the "static" option with '{"publicPath":false}' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '{\"publicPath\":false}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be one of these: [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } @@ -687,7 +687,7 @@ exports[`options > validate > should throw an error on the "static" option with * options.static.publicPath should be a string." `; -exports[`options > validate > should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '{\"serveIndex\":\"true\"}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be one of these: [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } @@ -704,7 +704,7 @@ exports[`options > validate > should throw an error on the "static" option with object { … }" `; -exports[`options > validate > should throw an error on the "static" option with '{"watch":10}' value 1`] = ` +exports[`options > validate > should throw an error on the \"static\" option with '{\"watch\":10}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.static should be one of these: [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } @@ -723,7 +723,7 @@ exports[`options > validate > should throw an error on the "static" option with -> Read more at https://github.com/paulmillr/chokidar#api" `; -exports[`options > validate > should throw an error on the "watchFiles" option with '123' value 1`] = ` +exports[`options > validate > should throw an error on the \"watchFiles\" option with '123' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.watchFiles should be one of these: [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } @@ -737,7 +737,7 @@ exports[`options > validate > should throw an error on the "watchFiles" option w object { paths?, options? }" `; -exports[`options > validate > should throw an error on the "watchFiles" option with 'false' value 1`] = ` +exports[`options > validate > should throw an error on the \"watchFiles\" option with 'false' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.watchFiles should be one of these: [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } @@ -751,7 +751,7 @@ exports[`options > validate > should throw an error on the "watchFiles" option w object { paths?, options? }" `; -exports[`options > validate > should throw an error on the "watchFiles" option with '{"options":false}' value 1`] = ` +exports[`options > validate > should throw an error on the \"watchFiles\" option with '{\"options\":false}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.watchFiles.options should be an object: object { … } @@ -759,7 +759,7 @@ exports[`options > validate > should throw an error on the "watchFiles" option w -> Read more at https://github.com/paulmillr/chokidar#api" `; -exports[`options > validate > should throw an error on the "watchFiles" option with '{"paths":false}' value 1`] = ` +exports[`options > validate > should throw an error on the \"watchFiles\" option with '{\"paths\":false}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.watchFiles should be one of these: [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? } @@ -775,7 +775,7 @@ exports[`options > validate > should throw an error on the "watchFiles" option w * options.watchFiles.paths should be a non-empty string." `; -exports[`options > validate > should throw an error on the "webSocketServer" option with 'null' value 1`] = ` +exports[`options > validate > should throw an error on the \"webSocketServer\" option with 'null' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.webSocketServer should be one of these: false | "ws" | non-empty string | function | object { type?, options? } @@ -793,7 +793,7 @@ exports[`options > validate > should throw an error on the "webSocketServer" opt object { type?, options? }" `; -exports[`options > validate > should throw an error on the "webSocketServer" option with 'true' value 1`] = ` +exports[`options > validate > should throw an error on the \"webSocketServer\" option with 'true' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.webSocketServer should be one of these: false | "ws" | non-empty string | function | object { type?, options? } @@ -811,13 +811,13 @@ exports[`options > validate > should throw an error on the "webSocketServer" opt object { type?, options? }" `; -exports[`options > validate > should throw an error on the "webSocketServer" option with '{"notAnOption":true}' value 1`] = ` +exports[`options > validate > should throw an error on the \"webSocketServer\" option with '{\"notAnOption\":true}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.webSocketServer has an unknown property 'notAnOption'. These properties are valid: object { type?, options? }" `; -exports[`options > validate > should throw an error on the "webSocketServer" option with '{"type":false}' value 1`] = ` +exports[`options > validate > should throw an error on the \"webSocketServer\" option with '{\"type\":false}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.webSocketServer should be one of these: false | "ws" | non-empty string | function | object { type?, options? } @@ -832,7 +832,7 @@ exports[`options > validate > should throw an error on the "webSocketServer" opt * options.webSocketServer.type should be an instance of function." `; -exports[`options > validate > should throw an error on the "webSocketServer" option with '{"type":true}' value 1`] = ` +exports[`options > validate > should throw an error on the \"webSocketServer\" option with '{\"type\":true}' value 1`] = ` "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.webSocketServer should be one of these: false | "ws" | non-empty string | function | object { type?, options? } diff --git a/test/cli/__snapshots__/basic.test.js.snap.webpack5 b/test/cli/__snapshots__/basic.test.js.snap.webpack5 index 37913bc6f8..31fcd52943 100644 --- a/test/cli/__snapshots__/basic.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/basic.test.js.snap.webpack5 @@ -14,7 +14,7 @@ exports[`basic > basic > should work 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`basic > basic > should work using "--host localhost --port " 1`] = ` +exports[`basic > basic > should work using \"--host localhost --port \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" @@ -29,11 +29,15 @@ exports[`basic > basic > should work using multi compiler mode 1`] = ` `; exports[`basic > should output help > should generate correct cli flags 1`] = ` -"Usage: webpack serve|server|s [entries...] [options] - +" +⬡ webpack serve +──────────────────────────────────────────────────────────────────────── Run the webpack dev server and watch for source file changes while serving. -Options: +Usage: webpack serve|server|s [entries...] [options] + +Options +──────────────────────────────────────────────────────────────────────── -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. -m, --merge Merge two or more configurations using 'webpack-merge'. @@ -129,15 +133,17 @@ Options: --no-web-socket-server Disallows to set web socket server and options. --web-socket-server-type Allows to set web socket server and options (by default 'ws'). -Global options: +Global options +──────────────────────────────────────────────────────────────────────── --color Enable colors on console. --no-color Disable colors on console. -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and other packages. -h, --help [verbose] Display help for commands and options. -To see list of all supported commands and options run 'webpack --help=verbose'. +──────────────────────────────────────────────────────────────────────── +ℹ Run 'webpack --help=verbose' to see all available commands and options. -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." +Webpack documentation: https://webpack.js.org/ +CLI documentation: https://webpack.js.org/api/cli/ +Made with ♥ by the webpack team" `; diff --git a/test/cli/__snapshots__/bonjour-option.test.js.snap.webpack5 b/test/cli/__snapshots__/bonjour-option.test.js.snap.webpack5 index bfbb3207cf..02fa5ff703 100644 --- a/test/cli/__snapshots__/bonjour-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/bonjour-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"bonjour" CLI option > should work using "--bonjour and --server-type=https" 1`] = ` +exports[`\"bonjour\" CLI option > should work using \"--bonjour and --server-type=https\" 1`] = ` " [webpack-dev-server] SSL certificate: /node_modules/.cache/webpack-dev-server/server.pem [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ @@ -8,7 +8,7 @@ exports[`"bonjour" CLI option > should work using "--bonjour and --server-type=h [webpack-dev-server] Broadcasting "https" with subtype of "webpack" via ZeroConf DNS (Bonjour)" `; -exports[`"bonjour" CLI option > should work using "--bonjour" 1`] = ` +exports[`\"bonjour\" CLI option > should work using \"--bonjour\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -17,7 +17,7 @@ exports[`"bonjour" CLI option > should work using "--bonjour" 1`] = ` [webpack-dev-server] Broadcasting "http" with subtype of "webpack" via ZeroConf DNS (Bonjour)" `; -exports[`"bonjour" CLI option > should work using "--no-bonjour" 1`] = ` +exports[`\"bonjour\" CLI option > should work using \"--no-bonjour\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/cli/__snapshots__/colors.test.js.snap.webpack5 b/test/cli/__snapshots__/colors.test.js.snap.webpack5 index fe59574bb5..5ee3141f78 100644 --- a/test/cli/__snapshots__/colors.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/colors.test.js.snap.webpack5 @@ -6,7 +6,7 @@ exports[`colors > should work and do not use colors using configuration with dis [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`colors > should work do not use colors using "--no-color" 1`] = ` +exports[`colors > should work do not use colors using \"--no-color\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -22,7 +22,7 @@ exports[`colors > should work use colors by default 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`colors > should work use colors using "--color" 1`] = ` +exports[`colors > should work use colors using \"--color\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/cli/__snapshots__/historyApiFallback-option.test.js.snap.webpack5 b/test/cli/__snapshots__/historyApiFallback-option.test.js.snap.webpack5 index a3a2cddc06..9b370663bd 100644 --- a/test/cli/__snapshots__/historyApiFallback-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/historyApiFallback-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"historyApiFallback" CLI option > should work using "--history-api-fallback" 1`] = ` +exports[`\"historyApiFallback\" CLI option > should work using \"--history-api-fallback\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -7,7 +7,7 @@ exports[`"historyApiFallback" CLI option > should work using "--history-api-fall [webpack-dev-server] 404s will fallback to '/index.html'" `; -exports[`"historyApiFallback" CLI option > should work using "--no-history-api-fallback" 1`] = ` +exports[`\"historyApiFallback\" CLI option > should work using \"--no-history-api-fallback\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/cli/__snapshots__/host-option.test.js.snap.webpack5 b/test/cli/__snapshots__/host-option.test.js.snap.webpack5 index ccb658ce70..90e0ddb5ae 100644 --- a/test/cli/__snapshots__/host-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/host-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"host" CLI option > should work using "--host 0.0.0.0" (IPv4) 1`] = ` +exports[`\"host\" CLI option > should work using \"--host 0.0.0.0\" (IPv4) 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -6,45 +6,45 @@ exports[`"host" CLI option > should work using "--host 0.0.0.0" (IPv4) 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host 127.0.0.1" (IPv4) 1`] = ` +exports[`\"host\" CLI option > should work using \"--host 127.0.0.1\" (IPv4) 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host ::" (IPv6) 1`] = ` +exports[`\"host\" CLI option > should work using \"--host ::1\" (IPv6) 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ - [webpack-dev-server] On Your Network (IPv4): http://:/ - [webpack-dev-server] On Your Network (IPv6): http://[]:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host ::1" (IPv6) 1`] = ` +exports[`\"host\" CLI option > should work using \"--host ::\" (IPv6) 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ + [webpack-dev-server] On Your Network (IPv4): http://:/ + [webpack-dev-server] On Your Network (IPv6): http://[]:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host " 1`] = ` +exports[`\"host\" CLI option > should work using \"--host \" 1`] = ` " [webpack-dev-server] Project is running at: [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host local-ip" 1`] = ` +exports[`\"host\" CLI option > should work using \"--host local-ip\" 1`] = ` " [webpack-dev-server] Project is running at: [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host local-ipv4" 1`] = ` +exports[`\"host\" CLI option > should work using \"--host local-ipv4\" 1`] = ` " [webpack-dev-server] Project is running at: [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"host" CLI option > should work using "--host localhost" 1`] = ` +exports[`\"host\" CLI option > should work using \"--host localhost\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] Content not from webpack is served from '/public' directory" diff --git a/test/cli/__snapshots__/ipc-option.test.js.snap.webpack5 b/test/cli/__snapshots__/ipc-option.test.js.snap.webpack5 index e32e695559..2f5b469709 100644 --- a/test/cli/__snapshots__/ipc-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/ipc-option.test.js.snap.webpack5 @@ -1,9 +1,9 @@ -exports[`"ipc" CLI option > should work using "--ipc" 1`] = ` -" [webpack-dev-server] Project is running at: "/webpack-dev-server.sock" +exports[`\"ipc\" CLI option > should work using \"--ipc=\" 1`] = ` +" [webpack-dev-server] Project is running at: "/webpack-dev-server.cli.sock" [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"ipc" CLI option > should work using "--ipc=" 1`] = ` -" [webpack-dev-server] Project is running at: "/webpack-dev-server.cli.sock" +exports[`\"ipc\" CLI option > should work using \"--ipc\" 1`] = ` +" [webpack-dev-server] Project is running at: "/webpack-dev-server.sock" [webpack-dev-server] Content not from webpack is served from '/public' directory" `; diff --git a/test/cli/__snapshots__/port-option.test.js.snap.webpack5 b/test/cli/__snapshots__/port-option.test.js.snap.webpack5 index e9b950d2dd..9bb20fb2ab 100644 --- a/test/cli/__snapshots__/port-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/port-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"port" CLI option > should work using "--port " 1`] = ` +exports[`\"port\" CLI option > should work using \"--port \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -6,7 +6,7 @@ exports[`"port" CLI option > should work using "--port " 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"port" CLI option > should work using "--port auto" 1`] = ` +exports[`\"port\" CLI option > should work using \"--port auto\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/cli/__snapshots__/server-option.test.js.snap.webpack5 b/test/cli/__snapshots__/server-option.test.js.snap.webpack5 index 3205463969..d16177cad7 100644 --- a/test/cli/__snapshots__/server-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/server-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"server" CLI options > should work using "--no-server-options-request-cert" 1`] = ` +exports[`\"server\" CLI options > should work using \"--no-server-options-request-cert\" 1`] = ` " [webpack-dev-server] SSL certificate: /node_modules/.cache/webpack-dev-server/server.pem [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ @@ -7,7 +7,7 @@ exports[`"server" CLI options > should work using "--no-server-options-request-c [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-options-key --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert --server-options-ca " 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-options-key --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert --server-options-ca \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ [webpack-dev-server] On Your Network (IPv4): https://:/ @@ -15,7 +15,7 @@ exports[`"server" CLI options > should work using "--server-options-key - [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-options-key --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert " 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-options-key --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ [webpack-dev-server] On Your Network (IPv4): https://:/ @@ -23,7 +23,7 @@ exports[`"server" CLI options > should work using "--server-options-key - [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-options-key-reset --server-options-key --server-options-pfx-reset --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert-reset --server-options-cert --server-options-ca-reset --server-options-ca " 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-options-key-reset --server-options-key --server-options-pfx-reset --server-options-pfx --server-options-passphrase webpack-dev-server --server-options-cert-reset --server-options-cert --server-options-ca-reset --server-options-ca \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ [webpack-dev-server] On Your Network (IPv4): https://:/ @@ -31,7 +31,7 @@ exports[`"server" CLI options > should work using "--server-options-key-reset -- [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-options-request-cert" 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-options-request-cert\" 1`] = ` " [webpack-dev-server] SSL certificate: /node_modules/.cache/webpack-dev-server/server.pem [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ @@ -40,7 +40,7 @@ exports[`"server" CLI options > should work using "--server-options-request-cert [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-type http" 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-type http\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -48,7 +48,7 @@ exports[`"server" CLI options > should work using "--server-type http" 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"server" CLI options > should work using "--server-type https" 1`] = ` +exports[`\"server\" CLI options > should work using \"--server-type https\" 1`] = ` " [webpack-dev-server] SSL certificate: /node_modules/.cache/webpack-dev-server/server.pem [webpack-dev-server] Project is running at: Loopback: https://localhost:/, https://:/, https://[]:/ diff --git a/test/cli/__snapshots__/static-option.test.js.snap.webpack5 b/test/cli/__snapshots__/static-option.test.js.snap.webpack5 index 68f0f803b8..d602e0880e 100644 --- a/test/cli/__snapshots__/static-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/static-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"static" CLI option > should work using "--no-static-serve-index" 1`] = ` +exports[`\"static\" CLI option > should work using \"--no-static-serve-index\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -6,7 +6,7 @@ exports[`"static" CLI option > should work using "--no-static-serve-index" 1`] = [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--no-static-watch" 1`] = ` +exports[`\"static\" CLI option > should work using \"--no-static-watch\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -14,7 +14,7 @@ exports[`"static" CLI option > should work using "--no-static-watch" 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--static new-static --static other-static" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static new-static --static other-static\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -22,7 +22,7 @@ exports[`"static" CLI option > should work using "--static new-static --static o [webpack-dev-server] Content not from webpack is served from 'new-static, other-static' directory" `; -exports[`"static" CLI option > should work using "--static new-static" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static new-static\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -30,23 +30,23 @@ exports[`"static" CLI option > should work using "--static new-static" 1`] = ` [webpack-dev-server] Content not from webpack is served from 'new-static' directory" `; -exports[`"static" CLI option > should work using "--static" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-directory static-dir\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/public' directory" + [webpack-dev-server] Content not from webpack is served from 'static-dir' directory" `; -exports[`"static" CLI option > should work using "--static-directory static-dir" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-public-path /public\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from 'static-dir' directory" + [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--static-public-path /public" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-public-path-reset\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -54,31 +54,31 @@ exports[`"static" CLI option > should work using "--static-public-path /public" [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--static-public-path-reset" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-reset --static-directory new-static-directory\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from '/public' directory" + [webpack-dev-server] Content not from webpack is served from 'new-static-directory' directory" `; -exports[`"static" CLI option > should work using "--static-reset --static-directory new-static-directory" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-reset\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from 'new-static-directory' directory" + [webpack-dev-server] Content not from webpack is served from 'new-static-after-reset' directory" `; -exports[`"static" CLI option > should work using "--static-reset" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-serve-index\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ [webpack-dev-server] On Your Network (IPv6): http://[]:/ - [webpack-dev-server] Content not from webpack is served from 'new-static-after-reset' directory" + [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--static-serve-index" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static-watch\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -86,7 +86,7 @@ exports[`"static" CLI option > should work using "--static-serve-index" 1`] = ` [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"static" CLI option > should work using "--static-watch" 1`] = ` +exports[`\"static\" CLI option > should work using \"--static\" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/cli/__snapshots__/watchFiles-option.test.js.snap.webpack5 b/test/cli/__snapshots__/watchFiles-option.test.js.snap.webpack5 index 5662d95a2e..0a5eb3c4c5 100644 --- a/test/cli/__snapshots__/watchFiles-option.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/watchFiles-option.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`"watchFiles" CLI option > should work using "--watch-files --watch-files " 1`] = ` +exports[`\"watchFiles\" CLI option > should work using \"--watch-files --watch-files \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -6,7 +6,7 @@ exports[`"watchFiles" CLI option > should work using "--watch-files --wa [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"watchFiles" CLI option > should work using "--watch-files " 1`] = ` +exports[`\"watchFiles\" CLI option > should work using \"--watch-files \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ @@ -14,7 +14,7 @@ exports[`"watchFiles" CLI option > should work using "--watch-files " 1`] [webpack-dev-server] Content not from webpack is served from '/public' directory" `; -exports[`"watchFiles" CLI option > should work using "--watch-files-reset --watch-files " 1`] = ` +exports[`\"watchFiles\" CLI option > should work using \"--watch-files-reset --watch-files \" 1`] = ` " [webpack-dev-server] Project is running at: Loopback: http://localhost:/, http://:/, http://[]:/ [webpack-dev-server] On Your Network (IPv4): http://:/ diff --git a/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 b/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 index 7bdfd110a4..a5bc230958 100644 --- a/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 @@ -22,18 +22,6 @@ exports[`API (plugin) > plugin in webpack config > should work when added to web [] `; -exports[`API (plugin) > plugin in webpack config > should work with output.clean: true 1`] = ` -[ - "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", - "[HMR] Waiting for update signal from WDS...", - "Hey.", -] -`; - -exports[`API (plugin) > plugin in webpack config > should work with output.clean: true 2`] = ` -[] -`; - exports[`API (plugin) > should work with plugin API 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", diff --git a/test/e2e/__snapshots__/api.test.js.snap.webpack5 b/test/e2e/__snapshots__/api.test.js.snap.webpack5 index ab3ddde248..bfe2263c6c 100644 --- a/test/e2e/__snapshots__/api.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/api.test.js.snap.webpack5 @@ -30,15 +30,15 @@ exports[`API > Invalidate callback > should use the provided \`callback\` functi [] `; -exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object 1`] = ` +exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the \"option.client.webSocketURL\" is object 1`] = ` "ws://test.host:8157/ws" `; -exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object 2`] = ` +exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the \"option.client.webSocketURL\" is object 2`] = ` 200 `; -exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object 3`] = ` +exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the \"option.client.webSocketURL\" is object 3`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -50,7 +50,7 @@ exports[`API > Server.checkHostHeader > should allow URLs with scheme for checki ] `; -exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object 4`] = ` +exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the \"option.client.webSocketURL\" is object 4`] = ` [] `; diff --git a/test/e2e/__snapshots__/entry.test.js.snap.webpack5 b/test/e2e/__snapshots__/entry.test.js.snap.webpack5 index 7b9589d95c..9b0a26f021 100644 --- a/test/e2e/__snapshots__/entry.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/entry.test.js.snap.webpack5 @@ -58,7 +58,7 @@ exports[`entry > should work with multiple entries 2`] = ` [] `; -exports[`entry > should work with multiple entries and "dependOn" 1`] = ` +exports[`entry > should work with multiple entries and \"dependOn\" 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -67,7 +67,7 @@ exports[`entry > should work with multiple entries and "dependOn" 1`] = ` ] `; -exports[`entry > should work with multiple entries and "dependOn" 2`] = ` +exports[`entry > should work with multiple entries and \"dependOn\" 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/headers.test.js.snap.webpack5 b/test/e2e/__snapshots__/headers.test.js.snap.webpack5 index 8fc426151c..e8ab9ff440 100644 --- a/test/e2e/__snapshots__/headers.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/headers.test.js.snap.webpack5 @@ -1,6 +1,5 @@ exports[`headers option > as a function > should handle GET request with headers as a function 1`] = ` -"key1=value1 -key2=value2" +"key1=value1, key2=value2" `; exports[`headers option > as a function > should handle GET request with headers as a function 2`] = ` @@ -84,8 +83,7 @@ exports[`headers option > as a string and support HEAD request > should handle H `; exports[`headers option > as an array > should handle GET request with headers as an array 1`] = ` -"key1=value1 -key2=value2" +"key1=value1, key2=value2" `; exports[`headers option > as an array > should handle GET request with headers as an array 2`] = ` diff --git a/test/e2e/__snapshots__/history-api-fallback.test.js.snap.webpack5 b/test/e2e/__snapshots__/history-api-fallback.test.js.snap.webpack5 index 1ddc3106f8..6372475512 100644 --- a/test/e2e/__snapshots__/history-api-fallback.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/history-api-fallback.test.js.snap.webpack5 @@ -166,45 +166,45 @@ exports[`historyApiFallback option > as object with static set to false > histor [] `; -exports[`historyApiFallback option > as object with the "logger" option > request to directory and log 1`] = ` +exports[`historyApiFallback option > as object with the \"logger\" option > request to directory and log 1`] = ` "text/html; charset=utf-8" `; -exports[`historyApiFallback option > as object with the "logger" option > request to directory and log 2`] = ` +exports[`historyApiFallback option > as object with the \"logger\" option > request to directory and log 2`] = ` 200 `; -exports[`historyApiFallback option > as object with the "logger" option > request to directory and log 3`] = ` +exports[`historyApiFallback option > as object with the \"logger\" option > request to directory and log 3`] = ` "Foobar " `; -exports[`historyApiFallback option > as object with the "logger" option > request to directory and log 4`] = ` +exports[`historyApiFallback option > as object with the \"logger\" option > request to directory and log 4`] = ` [] `; -exports[`historyApiFallback option > as object with the "logger" option > request to directory and log 5`] = ` +exports[`historyApiFallback option > as object with the \"logger\" option > request to directory and log 5`] = ` [] `; -exports[`historyApiFallback option > as object with the "verbose" option > request to directory and log 1`] = ` +exports[`historyApiFallback option > as object with the \"verbose\" option > request to directory and log 1`] = ` "text/html; charset=utf-8" `; -exports[`historyApiFallback option > as object with the "verbose" option > request to directory and log 2`] = ` +exports[`historyApiFallback option > as object with the \"verbose\" option > request to directory and log 2`] = ` 200 `; -exports[`historyApiFallback option > as object with the "verbose" option > request to directory and log 3`] = ` +exports[`historyApiFallback option > as object with the \"verbose\" option > request to directory and log 3`] = ` "Foobar " `; -exports[`historyApiFallback option > as object with the "verbose" option > request to directory and log 4`] = ` +exports[`historyApiFallback option > as object with the \"verbose\" option > request to directory and log 4`] = ` [] `; -exports[`historyApiFallback option > as object with the "verbose" option > request to directory and log 5`] = ` +exports[`historyApiFallback option > as object with the \"verbose\" option > request to directory and log 5`] = ` [] `; diff --git a/test/e2e/__snapshots__/host.test.js.snap.webpack5 b/test/e2e/__snapshots__/host.test.js.snap.webpack5 index b43c45a9d1..a0705f2660 100644 --- a/test/e2e/__snapshots__/host.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/host.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`host > should work using "0.0.0.0" host and "auto" port 1`] = ` +exports[`host > should work using \"0.0.0.0\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -6,11 +6,11 @@ exports[`host > should work using "0.0.0.0" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "0.0.0.0" host and "auto" port 2`] = ` +exports[`host > should work using \"0.0.0.0\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "0.0.0.0" host and port as number 1`] = ` +exports[`host > should work using \"0.0.0.0\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -18,11 +18,11 @@ exports[`host > should work using "0.0.0.0" host and port as number 1`] = ` ] `; -exports[`host > should work using "0.0.0.0" host and port as number 2`] = ` +exports[`host > should work using \"0.0.0.0\" host and port as number 2`] = ` [] `; -exports[`host > should work using "0.0.0.0" host and port as string 1`] = ` +exports[`host > should work using \"0.0.0.0\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -30,11 +30,11 @@ exports[`host > should work using "0.0.0.0" host and port as string 1`] = ` ] `; -exports[`host > should work using "0.0.0.0" host and port as string 2`] = ` +exports[`host > should work using \"0.0.0.0\" host and port as string 2`] = ` [] `; -exports[`host > should work using "127.0.0.1" host and "auto" port 1`] = ` +exports[`host > should work using \"127.0.0.1\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -42,11 +42,11 @@ exports[`host > should work using "127.0.0.1" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "127.0.0.1" host and "auto" port 2`] = ` +exports[`host > should work using \"127.0.0.1\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "127.0.0.1" host and port as number 1`] = ` +exports[`host > should work using \"127.0.0.1\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -54,11 +54,11 @@ exports[`host > should work using "127.0.0.1" host and port as number 1`] = ` ] `; -exports[`host > should work using "127.0.0.1" host and port as number 2`] = ` +exports[`host > should work using \"127.0.0.1\" host and port as number 2`] = ` [] `; -exports[`host > should work using "127.0.0.1" host and port as string 1`] = ` +exports[`host > should work using \"127.0.0.1\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -66,11 +66,11 @@ exports[`host > should work using "127.0.0.1" host and port as string 1`] = ` ] `; -exports[`host > should work using "127.0.0.1" host and port as string 2`] = ` +exports[`host > should work using \"127.0.0.1\" host and port as string 2`] = ` [] `; -exports[`host > should work using "::" host and "auto" port 1`] = ` +exports[`host > should work using \"::1\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -78,11 +78,11 @@ exports[`host > should work using "::" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "::" host and "auto" port 2`] = ` +exports[`host > should work using \"::1\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "::" host and port as number 1`] = ` +exports[`host > should work using \"::1\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -90,11 +90,11 @@ exports[`host > should work using "::" host and port as number 1`] = ` ] `; -exports[`host > should work using "::" host and port as number 2`] = ` +exports[`host > should work using \"::1\" host and port as number 2`] = ` [] `; -exports[`host > should work using "::" host and port as string 1`] = ` +exports[`host > should work using \"::1\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -102,11 +102,11 @@ exports[`host > should work using "::" host and port as string 1`] = ` ] `; -exports[`host > should work using "::" host and port as string 2`] = ` +exports[`host > should work using \"::1\" host and port as string 2`] = ` [] `; -exports[`host > should work using "::1" host and "auto" port 1`] = ` +exports[`host > should work using \"::\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -114,11 +114,11 @@ exports[`host > should work using "::1" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "::1" host and "auto" port 2`] = ` +exports[`host > should work using \"::\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "::1" host and port as number 1`] = ` +exports[`host > should work using \"::\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -126,11 +126,11 @@ exports[`host > should work using "::1" host and port as number 1`] = ` ] `; -exports[`host > should work using "::1" host and port as number 2`] = ` +exports[`host > should work using \"::\" host and port as number 2`] = ` [] `; -exports[`host > should work using "::1" host and port as string 1`] = ` +exports[`host > should work using \"::\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -138,11 +138,11 @@ exports[`host > should work using "::1" host and port as string 1`] = ` ] `; -exports[`host > should work using "::1" host and port as string 2`] = ` +exports[`host > should work using \"::\" host and port as string 2`] = ` [] `; -exports[`host > should work using "" host and "auto" port 1`] = ` +exports[`host > should work using \"\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -150,11 +150,11 @@ exports[`host > should work using "" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "" host and "auto" port 2`] = ` +exports[`host > should work using \"\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "" host and port as number 1`] = ` +exports[`host > should work using \"\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -162,11 +162,11 @@ exports[`host > should work using "" host and port as number 1`] ] `; -exports[`host > should work using "" host and port as number 2`] = ` +exports[`host > should work using \"\" host and port as number 2`] = ` [] `; -exports[`host > should work using "" host and port as string 1`] = ` +exports[`host > should work using \"\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -174,11 +174,11 @@ exports[`host > should work using "" host and port as string 1`] ] `; -exports[`host > should work using "" host and port as string 2`] = ` +exports[`host > should work using \"\" host and port as string 2`] = ` [] `; -exports[`host > should work using "local-ip" host and "auto" port 1`] = ` +exports[`host > should work using \"local-ip\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -186,11 +186,11 @@ exports[`host > should work using "local-ip" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "local-ip" host and "auto" port 2`] = ` +exports[`host > should work using \"local-ip\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "local-ip" host and port as number 1`] = ` +exports[`host > should work using \"local-ip\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -198,11 +198,11 @@ exports[`host > should work using "local-ip" host and port as number 1`] = ` ] `; -exports[`host > should work using "local-ip" host and port as number 2`] = ` +exports[`host > should work using \"local-ip\" host and port as number 2`] = ` [] `; -exports[`host > should work using "local-ip" host and port as string 1`] = ` +exports[`host > should work using \"local-ip\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -210,11 +210,11 @@ exports[`host > should work using "local-ip" host and port as string 1`] = ` ] `; -exports[`host > should work using "local-ip" host and port as string 2`] = ` +exports[`host > should work using \"local-ip\" host and port as string 2`] = ` [] `; -exports[`host > should work using "local-ipv4" host and "auto" port 1`] = ` +exports[`host > should work using \"local-ipv4\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -222,11 +222,11 @@ exports[`host > should work using "local-ipv4" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "local-ipv4" host and "auto" port 2`] = ` +exports[`host > should work using \"local-ipv4\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "local-ipv4" host and port as number 1`] = ` +exports[`host > should work using \"local-ipv4\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -234,11 +234,11 @@ exports[`host > should work using "local-ipv4" host and port as number 1`] = ` ] `; -exports[`host > should work using "local-ipv4" host and port as number 2`] = ` +exports[`host > should work using \"local-ipv4\" host and port as number 2`] = ` [] `; -exports[`host > should work using "local-ipv4" host and port as string 1`] = ` +exports[`host > should work using \"local-ipv4\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -246,11 +246,11 @@ exports[`host > should work using "local-ipv4" host and port as string 1`] = ` ] `; -exports[`host > should work using "local-ipv4" host and port as string 2`] = ` +exports[`host > should work using \"local-ipv4\" host and port as string 2`] = ` [] `; -exports[`host > should work using "local-ipv6" host and "auto" port 1`] = ` +exports[`host > should work using \"local-ipv6\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -258,11 +258,11 @@ exports[`host > should work using "local-ipv6" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "local-ipv6" host and "auto" port 2`] = ` +exports[`host > should work using \"local-ipv6\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "local-ipv6" host and port as number 1`] = ` +exports[`host > should work using \"local-ipv6\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -270,11 +270,11 @@ exports[`host > should work using "local-ipv6" host and port as number 1`] = ` ] `; -exports[`host > should work using "local-ipv6" host and port as number 2`] = ` +exports[`host > should work using \"local-ipv6\" host and port as number 2`] = ` [] `; -exports[`host > should work using "local-ipv6" host and port as string 1`] = ` +exports[`host > should work using \"local-ipv6\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -282,11 +282,11 @@ exports[`host > should work using "local-ipv6" host and port as string 1`] = ` ] `; -exports[`host > should work using "local-ipv6" host and port as string 2`] = ` +exports[`host > should work using \"local-ipv6\" host and port as string 2`] = ` [] `; -exports[`host > should work using "localhost" host and "auto" port 1`] = ` +exports[`host > should work using \"localhost\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -294,11 +294,11 @@ exports[`host > should work using "localhost" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "localhost" host and "auto" port 2`] = ` +exports[`host > should work using \"localhost\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "localhost" host and port as number 1`] = ` +exports[`host > should work using \"localhost\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -306,11 +306,11 @@ exports[`host > should work using "localhost" host and port as number 1`] = ` ] `; -exports[`host > should work using "localhost" host and port as number 2`] = ` +exports[`host > should work using \"localhost\" host and port as number 2`] = ` [] `; -exports[`host > should work using "localhost" host and port as string 1`] = ` +exports[`host > should work using \"localhost\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -318,11 +318,11 @@ exports[`host > should work using "localhost" host and port as string 1`] = ` ] `; -exports[`host > should work using "localhost" host and port as string 2`] = ` +exports[`host > should work using \"localhost\" host and port as string 2`] = ` [] `; -exports[`host > should work using "undefined" host and "auto" port 1`] = ` +exports[`host > should work using \"undefined\" host and \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -330,11 +330,11 @@ exports[`host > should work using "undefined" host and "auto" port 1`] = ` ] `; -exports[`host > should work using "undefined" host and "auto" port 2`] = ` +exports[`host > should work using \"undefined\" host and \"auto\" port 2`] = ` [] `; -exports[`host > should work using "undefined" host and port as number 1`] = ` +exports[`host > should work using \"undefined\" host and port as number 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -342,11 +342,11 @@ exports[`host > should work using "undefined" host and port as number 1`] = ` ] `; -exports[`host > should work using "undefined" host and port as number 2`] = ` +exports[`host > should work using \"undefined\" host and port as number 2`] = ` [] `; -exports[`host > should work using "undefined" host and port as string 1`] = ` +exports[`host > should work using \"undefined\" host and port as string 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -354,6 +354,6 @@ exports[`host > should work using "undefined" host and port as string 1`] = ` ] `; -exports[`host > should work using "undefined" host and port as string 2`] = ` +exports[`host > should work using \"undefined\" host and port as string 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/hot-and-live-reload.test.js.snap.webpack5 b/test/e2e/__snapshots__/hot-and-live-reload.test.js.snap.webpack5 index cedf476743..487fe0bda7 100644 --- a/test/e2e/__snapshots__/hot-and-live-reload.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/hot-and-live-reload.test.js.snap.webpack5 @@ -20,7 +20,7 @@ exports[`hot and live reload > should not refresh content when hot and no live r [] `; -exports[`hot and live reload > should work and allow to disable hot module replacement and live reload using the "webpack-dev-server-hot=false&webpack-dev-server-live-reload=false" (default) 1`] = ` +exports[`hot and live reload > should work and allow to disable hot module replacement and live reload using the \"webpack-dev-server-hot=false&webpack-dev-server-live-reload=false\" (default) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -28,11 +28,11 @@ exports[`hot and live reload > should work and allow to disable hot module repla ] `; -exports[`hot and live reload > should work and allow to disable hot module replacement and live reload using the "webpack-dev-server-hot=false&webpack-dev-server-live-reload=false" (default) 2`] = ` +exports[`hot and live reload > should work and allow to disable hot module replacement and live reload using the \"webpack-dev-server-hot=false&webpack-dev-server-live-reload=false\" (default) 2`] = ` [] `; -exports[`hot and live reload > should work and allow to disable hot module replacement using the "webpack-dev-server-hot=false" (default) 1`] = ` +exports[`hot and live reload > should work and allow to disable hot module replacement using the \"webpack-dev-server-hot=false\" (default) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -43,18 +43,18 @@ exports[`hot and live reload > should work and allow to disable hot module repla ] `; -exports[`hot and live reload > should work and allow to disable hot module replacement using the "webpack-dev-server-hot=false" (default) 2`] = ` +exports[`hot and live reload > should work and allow to disable hot module replacement using the \"webpack-dev-server-hot=false\" (default) 2`] = ` [] `; -exports[`hot and live reload > should work and allow to disable live reload using the "webpack-dev-server-live-reload=false" (default) 1`] = ` +exports[`hot and live reload > should work and allow to disable live reload using the \"webpack-dev-server-live-reload=false\" (default) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement disabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[webpack-dev-server] App updated. Recompiling...", ] `; -exports[`hot and live reload > should work and allow to disable live reload using the "webpack-dev-server-live-reload=false" (default) 2`] = ` +exports[`hot and live reload > should work and allow to disable live reload using the \"webpack-dev-server-live-reload=false\" (default) 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/ipc.test.js.snap.webpack5 b/test/e2e/__snapshots__/ipc.test.js.snap.webpack5 index 22b543cf22..f049f775d2 100644 --- a/test/e2e/__snapshots__/ipc.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/ipc.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`web socket server URL > should work with the "ipc" option using "string" value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"ipc\" option using \"string\" value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -6,11 +6,11 @@ exports[`web socket server URL > should work with the "ipc" option using "string ] `; -exports[`web socket server URL > should work with the "ipc" option using "string" value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"ipc\" option using \"string\" value (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "ipc" option using "true" value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"ipc\" option using \"true\" value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -18,6 +18,6 @@ exports[`web socket server URL > should work with the "ipc" option using "true" ] `; -exports[`web socket server URL > should work with the "ipc" option using "true" value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"ipc\" option using \"true\" value (\"ws\") 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/logging.test.js.snap.webpack5 b/test/e2e/__snapshots__/logging.test.js.snap.webpack5 index 0ca274a740..a6b7c53a2f 100644 --- a/test/e2e/__snapshots__/logging.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/logging.test.js.snap.webpack5 @@ -42,7 +42,7 @@ Warning from compilation", ] `; -exports[`logging > plugin mode > should work when the "client.logging" is "none" 1`] = ` +exports[`logging > plugin mode > should work when the \"client.logging\" is \"none\" 1`] = ` [ "Hey.", ] @@ -149,7 +149,7 @@ Warning from compilation", ] `; -exports[`logging > should work when the "client.logging" is "info" (ws) 1`] = ` +exports[`logging > should work when the \"client.logging\" is \"info\" (ws) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -157,7 +157,7 @@ exports[`logging > should work when the "client.logging" is "info" (ws) 1`] = ` ] `; -exports[`logging > should work when the "client.logging" is "log" (ws) 1`] = ` +exports[`logging > should work when the \"client.logging\" is \"log\" (ws) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -165,13 +165,13 @@ exports[`logging > should work when the "client.logging" is "log" (ws) 1`] = ` ] `; -exports[`logging > should work when the "client.logging" is "none" (ws) 1`] = ` +exports[`logging > should work when the \"client.logging\" is \"none\" (ws) 1`] = ` [ "Hey.", ] `; -exports[`logging > should work when the "client.logging" is "verbose" (ws) 1`] = ` +exports[`logging > should work when the \"client.logging\" is \"verbose\" (ws) 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", diff --git a/test/e2e/__snapshots__/overlay.test.js.snap.webpack5 b/test/e2e/__snapshots__/overlay.test.js.snap.webpack5 index 90edcf521b..cc27c7c873 100644 --- a/test/e2e/__snapshots__/overlay.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/overlay.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`overlay > should not show a warning when "client.overlay" is "false" 1`] = ` +exports[`overlay > should not show a warning when \"client.overlay.warnings\" is \"false\" 1`] = ` "

webpack-dev-server is running...

@@ -6,7 +6,7 @@ exports[`overlay > should not show a warning when "client.overlay" is "false" 1` " `; -exports[`overlay > should not show a warning when "client.overlay.warnings" is "false" 1`] = ` +exports[`overlay > should not show a warning when \"client.overlay\" is \"false\" 1`] = ` "

webpack-dev-server is running...

@@ -14,7 +14,7 @@ exports[`overlay > should not show a warning when "client.overlay.warnings" is " " `; -exports[`overlay > should not show an error when "client.overlay" is "false" 1`] = ` +exports[`overlay > should not show an error when \"client.overlay.errors\" is \"false\" 1`] = ` "

webpack-dev-server is running...

@@ -22,7 +22,7 @@ exports[`overlay > should not show an error when "client.overlay" is "false" 1`] " `; -exports[`overlay > should not show an error when "client.overlay.errors" is "false" 1`] = ` +exports[`overlay > should not show an error when \"client.overlay\" is \"false\" 1`] = ` "

webpack-dev-server is running...

@@ -51,7 +51,10 @@ exports[`overlay > should not show initially, then show on an error and allow to inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -104,7 +107,10 @@ exports[`overlay > should not show initially, then show on an error and allow to right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -177,7 +183,10 @@ exports[`overlay > should not show initially, then show on an error, then hide o inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -230,7 +239,10 @@ exports[`overlay > should not show initially, then show on an error, then hide o right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -303,7 +315,10 @@ exports[`overlay > should not show initially, then show on an error, then show o inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -356,7 +371,10 @@ exports[`overlay > should not show initially, then show on an error, then show o right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -413,7 +431,10 @@ exports[`overlay > should not show initially, then show on an error, then show o inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -466,7 +487,10 @@ exports[`overlay > should not show initially, then show on an error, then show o right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -539,7 +563,10 @@ exports[`overlay > should show a warning after invalidation 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -592,7 +619,10 @@ exports[`overlay > should show a warning after invalidation 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -644,7 +674,10 @@ exports[`overlay > should show a warning and error for initial compilation 1`] = inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -697,7 +730,10 @@ exports[`overlay > should show a warning and error for initial compilation 2`] = right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -857,7 +893,10 @@ exports[`overlay > should show a warning and error for initial compilation and p inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -910,7 +949,10 @@ exports[`overlay > should show a warning and error for initial compilation and p right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -989,7 +1031,10 @@ exports[`overlay > should show a warning and hide them after closing connection inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1042,7 +1087,10 @@ exports[`overlay > should show a warning and hide them after closing connection right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1102,7 +1150,10 @@ exports[`overlay > should show a warning for initial compilation 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1155,7 +1206,10 @@ exports[`overlay > should show a warning for initial compilation 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1194,7 +1248,7 @@ exports[`overlay > should show a warning for initial compilation 2`] = ` " `; -exports[`overlay > should show a warning when "client.overlay" is "true" 1`] = ` +exports[`overlay > should show a warning when \"client.overlay.errors\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -1207,7 +1261,10 @@ exports[`overlay > should show a warning when "client.overlay" is "true" 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1215,7 +1272,7 @@ exports[`overlay > should show a warning when "client.overlay" is "true" 1`] = ` " `; -exports[`overlay > should show a warning when "client.overlay" is "true" 2`] = ` +exports[`overlay > should show a warning when \"client.overlay.errors\" is \"true\" 2`] = ` "
should show a warning when "client.overlay" is "true" 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1299,7 +1359,7 @@ exports[`overlay > should show a warning when "client.overlay" is "true" 2`] = ` " `; -exports[`overlay > should show a warning when "client.overlay.errors" is "true" 1`] = ` +exports[`overlay > should show a warning when \"client.overlay.warnings\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -1312,7 +1372,10 @@ exports[`overlay > should show a warning when "client.overlay.errors" is "true" inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1320,7 +1383,7 @@ exports[`overlay > should show a warning when "client.overlay.errors" is "true" " `; -exports[`overlay > should show a warning when "client.overlay.errors" is "true" 2`] = ` +exports[`overlay > should show a warning when \"client.overlay.warnings\" is \"true\" 2`] = ` "
should show a warning when "client.overlay.errors" is "true" right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1404,7 +1470,7 @@ exports[`overlay > should show a warning when "client.overlay.errors" is "true" " `; -exports[`overlay > should show a warning when "client.overlay.warnings" is "true" 1`] = ` +exports[`overlay > should show a warning when \"client.overlay\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -1417,7 +1483,10 @@ exports[`overlay > should show a warning when "client.overlay.warnings" is "true inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1425,7 +1494,7 @@ exports[`overlay > should show a warning when "client.overlay.warnings" is "true " `; -exports[`overlay > should show a warning when "client.overlay.warnings" is "true" 2`] = ` +exports[`overlay > should show a warning when \"client.overlay\" is \"true\" 2`] = ` "
should show a warning when "client.overlay.warnings" is "true right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1522,7 +1594,10 @@ exports[`overlay > should show an ansi formatted error for initial compilation 1 inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1575,7 +1650,10 @@ exports[`overlay > should show an ansi formatted error for initial compilation 2 right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1638,7 +1716,10 @@ exports[`overlay > should show an error after invalidation 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1691,7 +1772,10 @@ exports[`overlay > should show an error after invalidation 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1743,7 +1827,10 @@ exports[`overlay > should show an error for initial compilation 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1796,7 +1883,10 @@ exports[`overlay > should show an error for initial compilation 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1835,7 +1925,7 @@ exports[`overlay > should show an error for initial compilation 2`] = ` " `; -exports[`overlay > should show an error when "client.overlay" is "true" 1`] = ` +exports[`overlay > should show an error when \"client.overlay.errors\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -1848,7 +1938,10 @@ exports[`overlay > should show an error when "client.overlay" is "true" 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1856,7 +1949,7 @@ exports[`overlay > should show an error when "client.overlay" is "true" 1`] = ` " `; -exports[`overlay > should show an error when "client.overlay" is "true" 2`] = ` +exports[`overlay > should show an error when \"client.overlay.errors\" is \"true\" 2`] = ` "
should show an error when "client.overlay" is "true" 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -1940,7 +2036,7 @@ exports[`overlay > should show an error when "client.overlay" is "true" 2`] = ` " `; -exports[`overlay > should show an error when "client.overlay.errors" is "true" 1`] = ` +exports[`overlay > should show an error when \"client.overlay.warnings\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -1953,7 +2049,10 @@ exports[`overlay > should show an error when "client.overlay.errors" is "true" 1 inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -1961,7 +2060,7 @@ exports[`overlay > should show an error when "client.overlay.errors" is "true" 1 " `; -exports[`overlay > should show an error when "client.overlay.errors" is "true" 2`] = ` +exports[`overlay > should show an error when \"client.overlay.warnings\" is \"true\" 2`] = ` "
should show an error when "client.overlay.errors" is "true" 2 right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2014,8 +2116,8 @@ exports[`overlay > should show an error when "client.overlay.errors" is "true" 2
@@ -2027,7 +2129,7 @@ exports[`overlay > should show an error when "client.overlay.errors" is "true" 2 font-family: sans-serif; " > - ERROR + WARNING
- Error from compilation. Can't find 'test' module. + Warning from compilation
@@ -2045,7 +2147,7 @@ exports[`overlay > should show an error when "client.overlay.errors" is "true" 2 " `; -exports[`overlay > should show an error when "client.overlay.warnings" is "true" 1`] = ` +exports[`overlay > should show an error when \"client.overlay\" is \"true\" 1`] = ` "

webpack-dev-server is running...

@@ -2058,7 +2160,10 @@ exports[`overlay > should show an error when "client.overlay.warnings" is "true" inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2066,7 +2171,7 @@ exports[`overlay > should show an error when "client.overlay.warnings" is "true" " `; -exports[`overlay > should show an error when "client.overlay.warnings" is "true" 2`] = ` +exports[`overlay > should show an error when \"client.overlay\" is \"true\" 2`] = ` "
should show an error when "client.overlay.warnings" is "true" right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2119,8 +2227,8 @@ exports[`overlay > should show an error when "client.overlay.warnings" is "true"
@@ -2132,7 +2240,7 @@ exports[`overlay > should show an error when "client.overlay.warnings" is "true" font-family: sans-serif; " > - WARNING + ERROR
- Warning from compilation + Error from compilation. Can't find 'test' module.
@@ -2195,7 +2303,10 @@ exports[`overlay > should show error for uncaught promise rejection 1`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2279,7 +2390,10 @@ exports[`overlay > should show error for uncaught runtime error 1`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2332,7 +2446,10 @@ exports[`overlay > should show error when it is not filtered 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2385,7 +2502,10 @@ exports[`overlay > should show error when it is not filtered 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2424,7 +2544,7 @@ exports[`overlay > should show error when it is not filtered 2`] = ` " `; -exports[`overlay > should show overlay when "Content-Security-Policy" is "default-src 'self'" was used 1`] = ` +exports[`overlay > should show overlay when Trusted Types are enabled 1`] = ` "

webpack-dev-server is running...

@@ -2437,7 +2557,10 @@ exports[`overlay > should show overlay when "Content-Security-Policy" is "defaul inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2445,7 +2568,7 @@ exports[`overlay > should show overlay when "Content-Security-Policy" is "defaul " `; -exports[`overlay > should show overlay when "Content-Security-Policy" is "default-src 'self'" was used 2`] = ` +exports[`overlay > should show overlay when Trusted Types are enabled 2`] = ` "
should show overlay when "Content-Security-Policy" is "defaul right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > - X + ×
should show overlay when "Content-Security-Policy" is "defaul " `; -exports[`overlay > should show overlay when Trusted Types are enabled 1`] = ` +exports[`overlay > should show overlay when Trusted Types are enabled and the \"require-trusted-types-for 'script'\" header was used 1`] = ` "

webpack-dev-server is running...

@@ -2542,7 +2668,10 @@ exports[`overlay > should show overlay when Trusted Types are enabled 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2550,7 +2679,7 @@ exports[`overlay > should show overlay when Trusted Types are enabled 1`] = ` " `; -exports[`overlay > should show overlay when Trusted Types are enabled 2`] = ` +exports[`overlay > should show overlay when Trusted Types are enabled and the \"require-trusted-types-for 'script'\" header was used 2`] = ` "
should show overlay when Trusted Types are enabled 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × @@ -2634,7 +2766,7 @@ exports[`overlay > should show overlay when Trusted Types are enabled 2`] = ` " `; -exports[`overlay > should show overlay when Trusted Types are enabled and the "require-trusted-types-for 'script'" header was used 1`] = ` +exports[`overlay > should show overlay when \"Content-Security-Policy\" is \"default-src 'self'\" was used 1`] = ` "

webpack-dev-server is running...

@@ -2647,7 +2779,10 @@ exports[`overlay > should show overlay when Trusted Types are enabled and the "r inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2655,7 +2790,7 @@ exports[`overlay > should show overlay when Trusted Types are enabled and the "r " `; -exports[`overlay > should show overlay when Trusted Types are enabled and the "require-trusted-types-for 'script'" header was used 2`] = ` +exports[`overlay > should show overlay when \"Content-Security-Policy\" is \"default-src 'self'\" was used 2`] = ` "
should show overlay when Trusted Types are enabled and the "r right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > - × + X
should show warning when it is not filtered 1`] = ` inset: 0px; width: 100vw; height: 100vh; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; z-index: 2147483647; " > @@ -2805,7 +2946,10 @@ exports[`overlay > should show warning when it is not filtered 2`] = ` right: 0px; top: 0px; background-color: transparent; - border: none; + border-width: medium; + border-style: none; + border-color: currentcolor; + border-image: none; " > × diff --git a/test/e2e/__snapshots__/port.test.js.snap.webpack5 b/test/e2e/__snapshots__/port.test.js.snap.webpack5 index 5afe975db3..a3a8768bc5 100644 --- a/test/e2e/__snapshots__/port.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/port.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`port > should work using "0" port 1`] = ` +exports[`port > should work using \"0\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -6,11 +6,11 @@ exports[`port > should work using "0" port 1`] = ` ] `; -exports[`port > should work using "0" port 2`] = ` +exports[`port > should work using \"0\" port 2`] = ` [] `; -exports[`port > should work using "8160" port 1`] = ` +exports[`port > should work using \"8160\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -18,11 +18,11 @@ exports[`port > should work using "8160" port 1`] = ` ] `; -exports[`port > should work using "8160" port 2`] = ` +exports[`port > should work using \"8160\" port 2`] = ` [] `; -exports[`port > should work using "8160" port 3`] = ` +exports[`port > should work using \"8160\" port 3`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -30,11 +30,11 @@ exports[`port > should work using "8160" port 3`] = ` ] `; -exports[`port > should work using "8160" port 4`] = ` +exports[`port > should work using \"8160\" port 4`] = ` [] `; -exports[`port > should work using "" port 1`] = ` +exports[`port > should work using \"\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -42,11 +42,11 @@ exports[`port > should work using "" port 1`] = ` ] `; -exports[`port > should work using "" port 2`] = ` +exports[`port > should work using \"\" port 2`] = ` [] `; -exports[`port > should work using "auto" port 1`] = ` +exports[`port > should work using \"auto\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -54,11 +54,11 @@ exports[`port > should work using "auto" port 1`] = ` ] `; -exports[`port > should work using "auto" port 2`] = ` +exports[`port > should work using \"auto\" port 2`] = ` [] `; -exports[`port > should work using "undefined" port 1`] = ` +exports[`port > should work using \"undefined\" port 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -66,6 +66,6 @@ exports[`port > should work using "undefined" port 1`] = ` ] `; -exports[`port > should work using "undefined" port 2`] = ` +exports[`port > should work using \"undefined\" port 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/server-and-client-transport.test.js.snap.webpack5 b/test/e2e/__snapshots__/server-and-client-transport.test.js.snap.webpack5 index 3ee013ede0..f5f4324749 100644 --- a/test/e2e/__snapshots__/server-and-client-transport.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/server-and-client-transport.test.js.snap.webpack5 @@ -10,28 +10,28 @@ exports[`server and client transport > should throw an error on wrong path 1`] = "webSocketServer (webSocketServer.type) must be a string denoting a default implementation (e.g. 'ws'), a resolvable module specifier or absolute file path which exports a class extending BaseServer (webpack-dev-server/lib/servers/BaseServer.js), or the class itself which extends BaseServer" `; -exports[`server and client transport > should use "ws" transport and "ws" web socket server 1`] = ` +exports[`server and client transport > should use \"ws\" transport and \"ws\" web socket server 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", ] `; -exports[`server and client transport > should use "ws" transport, when web socket server is not specify 1`] = ` +exports[`server and client transport > should use \"ws\" transport, when web socket server is not specify 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", ] `; -exports[`server and client transport > should use "ws" web socket server when specify "ws" value 1`] = ` +exports[`server and client transport > should use \"ws\" web socket server when specify \"ws\" value 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", ] `; -exports[`server and client transport > should use "ws" web socket server when specify "ws" value using object 1`] = ` +exports[`server and client transport > should use \"ws\" web socket server when specify \"ws\" value using object 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -66,7 +66,7 @@ exports[`server and client transport > should use custom web socket server when ] `; -exports[`server and client transport > should use default web socket server ("ws") 1`] = ` +exports[`server and client transport > should use default web socket server (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", diff --git a/test/e2e/__snapshots__/server.test.js.snap.webpack5 b/test/e2e/__snapshots__/server.test.js.snap.webpack5 index 96e974a7ec..9d872c0059 100644 --- a/test/e2e/__snapshots__/server.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/server.test.js.snap.webpack5 @@ -542,16 +542,16 @@ exports[`server option > as object > custom server with options > should handle [] `; -exports[`server option > as object > should support the "requestCert" option > should handle GET request to index route (/) 1`] = ` +exports[`server option > as object > should support the \"requestCert\" option > should handle GET request to index route (/) 1`] = ` 200 `; -exports[`server option > as object > should support the "requestCert" option > should handle GET request to index route (/) 2`] = ` +exports[`server option > as object > should support the \"requestCert\" option > should handle GET request to index route (/) 2`] = ` "Heyo. " `; -exports[`server option > as object > should support the "requestCert" option > should pass options to the 'https.createServer' method 1`] = ` +exports[`server option > as object > should support the \"requestCert\" option > should pass options to the 'https.createServer' method 1`] = ` { "cert": "", "key": "", diff --git a/test/e2e/__snapshots__/setup-middlewares.test.js.snap.webpack5 b/test/e2e/__snapshots__/setup-middlewares.test.js.snap.webpack5 index 7407c58602..3565f1bdf1 100644 --- a/test/e2e/__snapshots__/setup-middlewares.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/setup-middlewares.test.js.snap.webpack5 @@ -2,6 +2,26 @@ exports[`setupMiddlewares option > should handle GET request to /setup-middlewar "text/html; charset=utf-8" `; +exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 10`] = ` +"text/html; charset=utf-8" +`; + +exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 11`] = ` +200 +`; + +exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 12`] = ` +"Hello World as function!" +`; + +exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 13`] = ` +[] +`; + +exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 14`] = ` +[] +`; + exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 2`] = ` 200 `; @@ -34,26 +54,6 @@ exports[`setupMiddlewares option > should handle GET request to /setup-middlewar "Hello World without path!" `; -exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 10`] = ` -"text/html; charset=utf-8" -`; - -exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 11`] = ` -200 -`; - -exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 12`] = ` -"Hello World as function!" -`; - -exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 13`] = ` -[] -`; - -exports[`setupMiddlewares option > should handle GET request to /setup-middleware/some/path route 14`] = ` -[] -`; - exports[`setupMiddlewares option > should handle POST request to /setup-middleware/some/path route 1`] = ` "text/html; charset=utf-8" `; diff --git a/test/e2e/__snapshots__/stats.test.js.snap.webpack5 b/test/e2e/__snapshots__/stats.test.js.snap.webpack5 index b055692428..1834fdbcb8 100644 --- a/test/e2e/__snapshots__/stats.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/stats.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`stats > should work and respect the "ignoreWarnings" option 1`] = ` +exports[`stats > should work and respect the \"ignoreWarnings\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -6,7 +6,7 @@ exports[`stats > should work and respect the "ignoreWarnings" option 1`] = ` ] `; -exports[`stats > should work using "errors-only" value for the "stats" option 1`] = ` +exports[`stats > should work using \"errors-only\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -14,7 +14,7 @@ exports[`stats > should work using "errors-only" value for the "stats" option 1` ] `; -exports[`stats > should work using "false" value for the "stats" option 1`] = ` +exports[`stats > should work using \"false\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -22,7 +22,7 @@ exports[`stats > should work using "false" value for the "stats" option 1`] = ` ] `; -exports[`stats > should work using "undefined" value for the "stats" option 1`] = ` +exports[`stats > should work using \"undefined\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -30,7 +30,7 @@ exports[`stats > should work using "undefined" value for the "stats" option 1`] ] `; -exports[`stats > should work using "{ assets: false }" value for the "stats" option 1`] = ` +exports[`stats > should work using \"{ assets: false }\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -38,7 +38,7 @@ exports[`stats > should work using "{ assets: false }" value for the "stats" opt ] `; -exports[`stats > should work using "{ assets: false }" value for the "stats" option 2`] = ` +exports[`stats > should work using \"{ assets: false }\" value for the \"stats\" option 2`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -46,7 +46,7 @@ exports[`stats > should work using "{ assets: false }" value for the "stats" opt ] `; -exports[`stats > should work using "{ warningsFilter: 'test' }" value for the "stats" option 1`] = ` +exports[`stats > should work using \"{ warningsFilter: 'test' }\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -54,7 +54,7 @@ exports[`stats > should work using "{ warningsFilter: 'test' }" value for the "s ] `; -exports[`stats > should work using "{}" value for the "stats" option 1`] = ` +exports[`stats > should work using \"{}\" value for the \"stats\" option 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -62,7 +62,7 @@ exports[`stats > should work using "{}" value for the "stats" option 1`] = ` ] `; -exports[`stats > should work when "stats" is not specified 1`] = ` +exports[`stats > should work when \"stats\" is not specified 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", diff --git a/test/e2e/__snapshots__/target.test.js.snap.webpack5 b/test/e2e/__snapshots__/target.test.js.snap.webpack5 index b48bddf035..c5e8db2b18 100644 --- a/test/e2e/__snapshots__/target.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/target.test.js.snap.webpack5 @@ -1,8 +1,8 @@ -exports[`target > should work using "async-node" target 1`] = ` +exports[`target > should work using \"async-node\" target 1`] = ` [] `; -exports[`target > should work using "browserslist:defaults" target 1`] = ` +exports[`target > should work using \"browserslist:defaults\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -10,57 +10,57 @@ exports[`target > should work using "browserslist:defaults" target 1`] = ` ] `; -exports[`target > should work using "browserslist:defaults" target 2`] = ` +exports[`target > should work using \"browserslist:defaults\" target 2`] = ` [] `; -exports[`target > should work using "electron-main" target 1`] = ` +exports[`target > should work using \"electron-main\" target 1`] = ` [] `; -exports[`target > should work using "electron-preload" target 1`] = ` +exports[`target > should work using \"electron-preload\" target 1`] = ` [] `; -exports[`target > should work using "electron-renderer" target 1`] = ` +exports[`target > should work using \"electron-renderer\" target 1`] = ` [] `; -exports[`target > should work using "es5" target 1`] = ` +exports[`target > should work using \"es5\" target 1`] = ` [ "[HMR] Waiting for update signal from WDS...", "Hey.", ] `; -exports[`target > should work using "es5" target 2`] = ` +exports[`target > should work using \"es5\" target 2`] = ` [] `; -exports[`target > should work using "false" target 1`] = ` +exports[`target > should work using \"false\" target 1`] = ` [ "[HMR] Waiting for update signal from WDS...", "Hey.", ] `; -exports[`target > should work using "false" target 2`] = ` +exports[`target > should work using \"false\" target 2`] = ` [] `; -exports[`target > should work using "node" target 1`] = ` +exports[`target > should work using \"node-webkit\" target 1`] = ` [] `; -exports[`target > should work using "node-webkit" target 1`] = ` +exports[`target > should work using \"node\" target 1`] = ` [] `; -exports[`target > should work using "nwjs" target 1`] = ` +exports[`target > should work using \"nwjs\" target 1`] = ` [] `; -exports[`target > should work using "universal" target 1`] = ` +exports[`target > should work using \"universal\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -68,11 +68,11 @@ exports[`target > should work using "universal" target 1`] = ` ] `; -exports[`target > should work using "universal" target 2`] = ` +exports[`target > should work using \"universal\" target 2`] = ` [] `; -exports[`target > should work using "web" target 1`] = ` +exports[`target > should work using \"web,es5\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -80,11 +80,11 @@ exports[`target > should work using "web" target 1`] = ` ] `; -exports[`target > should work using "web" target 2`] = ` +exports[`target > should work using \"web,es5\" target 2`] = ` [] `; -exports[`target > should work using "web,es5" target 1`] = ` +exports[`target > should work using \"web,node\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -92,11 +92,11 @@ exports[`target > should work using "web,es5" target 1`] = ` ] `; -exports[`target > should work using "web,es5" target 2`] = ` +exports[`target > should work using \"web,node\" target 2`] = ` [] `; -exports[`target > should work using "web,node" target 1`] = ` +exports[`target > should work using \"web\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -104,11 +104,11 @@ exports[`target > should work using "web,node" target 1`] = ` ] `; -exports[`target > should work using "web,node" target 2`] = ` +exports[`target > should work using \"web\" target 2`] = ` [] `; -exports[`target > should work using "webworker" target 1`] = ` +exports[`target > should work using \"webworker\" target 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -116,7 +116,7 @@ exports[`target > should work using "webworker" target 1`] = ` ] `; -exports[`target > should work using "webworker" target 2`] = ` +exports[`target > should work using \"webworker\" target 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 b/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 index 523a975216..5af7de2299 100644 --- a/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 @@ -122,7 +122,7 @@ exports[`watchFiles option > should work with object with single path > should r [] `; -exports[`watchFiles option > should work with options > {"interval":400,"poll":200} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"interval\":400,\"poll\":200} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -138,21 +138,21 @@ exports[`watchFiles option > should work with options > {"interval":400,"poll":2 } `; -exports[`watchFiles option > should work with options > {"interval":400,"poll":200} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"interval\":400,\"poll\":200} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"interval":400,"poll":200} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"interval\":400,\"poll\":200} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"interval":400,"poll":200} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"interval\":400,\"poll\":200} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"poll":200} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"poll\":200} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -168,21 +168,21 @@ exports[`watchFiles option > should work with options > {"poll":200} > should re } `; -exports[`watchFiles option > should work with options > {"poll":200} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"poll\":200} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"poll":200} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"poll\":200} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"poll":200} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"poll\":200} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"poll":true} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"poll\":true} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -198,21 +198,21 @@ exports[`watchFiles option > should work with options > {"poll":true} > should r } `; -exports[`watchFiles option > should work with options > {"poll":true} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"poll\":true} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"poll":true} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"poll\":true} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"poll":true} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"poll\":true} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"usePolling":false,"interval":200,"poll":400} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":200} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -228,51 +228,21 @@ exports[`watchFiles option > should work with options > {"usePolling":false,"int } `; -exports[`watchFiles option > should work with options > {"usePolling":false,"interval":200,"poll":400} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":200} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"usePolling":false,"interval":200,"poll":400} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":200} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"usePolling":false,"interval":200,"poll":400} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":200} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":200} > should reload when file content is changed 1`] = ` -{ - "alwaysStat": true, - "atomic": false, - "awaitWriteFinish": false, - "binaryInterval": 300, - "followSymlinks": false, - "ignoreInitial": true, - "ignorePermissionErrors": true, - "ignored": [], - "interval": 200, - "persistent": true, - "usePolling": true, -} -`; - -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":200} > should reload when file content is changed 2`] = ` -200 -`; - -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":200} > should reload when file content is changed 3`] = ` -[ - "Hey.", -] -`; - -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":200} > should reload when file content is changed 4`] = ` -[] -`; - -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":true} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":true} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -288,21 +258,21 @@ exports[`watchFiles option > should work with options > {"usePolling":false,"pol } `; -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":true} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":true} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":true} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":true} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"usePolling":false,"poll":true} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"poll\":true} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"usePolling":false} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -318,51 +288,21 @@ exports[`watchFiles option > should work with options > {"usePolling":false} > s } `; -exports[`watchFiles option > should work with options > {"usePolling":false} > should reload when file content is changed 2`] = ` -200 -`; - -exports[`watchFiles option > should work with options > {"usePolling":false} > should reload when file content is changed 3`] = ` -[ - "Hey.", -] -`; - -exports[`watchFiles option > should work with options > {"usePolling":false} > should reload when file content is changed 4`] = ` -[] -`; - -exports[`watchFiles option > should work with options > {"usePolling":true,"interval":200,"poll":400} > should reload when file content is changed 1`] = ` -{ - "alwaysStat": true, - "atomic": false, - "awaitWriteFinish": false, - "binaryInterval": 300, - "followSymlinks": false, - "ignoreInitial": true, - "ignorePermissionErrors": true, - "ignored": [], - "interval": 200, - "persistent": true, - "usePolling": true, -} -`; - -exports[`watchFiles option > should work with options > {"usePolling":true,"interval":200,"poll":400} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"usePolling":true,"interval":200,"poll":400} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"usePolling":true,"interval":200,"poll":400} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":false} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"usePolling":true,"poll":200} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"poll\":200} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -378,21 +318,21 @@ exports[`watchFiles option > should work with options > {"usePolling":true,"poll } `; -exports[`watchFiles option > should work with options > {"usePolling":true,"poll":200} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"poll\":200} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"usePolling":true,"poll":200} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"poll\":200} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"usePolling":true,"poll":200} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"poll\":200} > should reload when file content is changed 4`] = ` [] `; -exports[`watchFiles option > should work with options > {"usePolling":true} > should reload when file content is changed 1`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true} > should reload when file content is changed 1`] = ` { "alwaysStat": true, "atomic": false, @@ -408,17 +348,17 @@ exports[`watchFiles option > should work with options > {"usePolling":true} > sh } `; -exports[`watchFiles option > should work with options > {"usePolling":true} > should reload when file content is changed 2`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true} > should reload when file content is changed 2`] = ` 200 `; -exports[`watchFiles option > should work with options > {"usePolling":true} > should reload when file content is changed 3`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true} > should reload when file content is changed 3`] = ` [ "Hey.", ] `; -exports[`watchFiles option > should work with options > {"usePolling":true} > should reload when file content is changed 4`] = ` +exports[`watchFiles option > should work with options > {\"usePolling\":true} > should reload when file content is changed 4`] = ` [] `; diff --git a/test/e2e/__snapshots__/web-socket-communication.test.js.snap.webpack5 b/test/e2e/__snapshots__/web-socket-communication.test.js.snap.webpack5 index de28937f66..d778700f4e 100644 --- a/test/e2e/__snapshots__/web-socket-communication.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/web-socket-communication.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`web socket communication > should work and close web socket client connection when web socket server closed ("ws") 1`] = ` +exports[`web socket communication > should work and close web socket client connection when web socket server closed (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -8,11 +8,11 @@ exports[`web socket communication > should work and close web socket client conn ] `; -exports[`web socket communication > should work and close web socket client connection when web socket server closed ("ws") 2`] = ` +exports[`web socket communication > should work and close web socket client connection when web socket server closed (\"ws\") 2`] = ` [] `; -exports[`web socket communication > should work and reconnect when the connection is lost ("ws") 1`] = ` +exports[`web socket communication > should work and reconnect when the connection is lost (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -30,11 +30,11 @@ exports[`web socket communication > should work and reconnect when the connectio ] `; -exports[`web socket communication > should work and reconnect when the connection is lost ("ws") 2`] = ` +exports[`web socket communication > should work and reconnect when the connection is lost (\"ws\") 2`] = ` [] `; -exports[`web socket communication > should work and terminate client that is not alive ("ws") 1`] = ` +exports[`web socket communication > should work and terminate client that is not alive (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -42,6 +42,6 @@ exports[`web socket communication > should work and terminate client that is not ] `; -exports[`web socket communication > should work and terminate client that is not alive ("ws") 2`] = ` +exports[`web socket communication > should work and terminate client that is not alive (\"ws\") 2`] = ` [] `; diff --git a/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 b/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 index 64c7eaadb1..37d3e7c200 100644 --- a/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 @@ -1,4 +1,4 @@ -exports[`web socket server URL > should not work and output disconnect wrong web socket URL ("ws") 1`] = ` +exports[`web socket server URL > should not work and output disconnect wrong web socket URL (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -9,23 +9,11 @@ exports[`web socket server URL > should not work and output disconnect wrong web ] `; -exports[`web socket server URL > should not work and output disconnect wrong web socket URL ("ws") 2`] = ` +exports[`web socket server URL > should not work and output disconnect wrong web socket URL (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work and throw an error on invalid web socket URL ("ws") 1`] = ` -[ - "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", -] -`; - -exports[`web socket server URL > should work and throw an error on invalid web socket URL ("ws") 2`] = ` -[ - "Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. 'unknown' is not allowed.", -] -`; - -exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are different ("ws") 1`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are different (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -33,11 +21,11 @@ exports[`web socket server URL > should work behind proxy, when hostnames are di ] `; -exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are different ("ws") 2`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are different (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are same ("ws") 1`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are same (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -45,11 +33,11 @@ exports[`web socket server URL > should work behind proxy, when hostnames are di ] `; -exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are same ("ws") 2`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are same (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work behind proxy, when hostnames are same and ports are different ("ws") 1`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are same and ports are different (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -57,11 +45,11 @@ exports[`web socket server URL > should work behind proxy, when hostnames are sa ] `; -exports[`web socket server URL > should work behind proxy, when hostnames are same and ports are different ("ws") 2`] = ` +exports[`web socket server URL > should work behind proxy, when hostnames are same and ports are different (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("ws") 1`] = ` +exports[`web socket server URL > should work behind proxy, when the \"host\" option is \"local-ip\" and the \"port\" option is \"auto\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -69,11 +57,11 @@ exports[`web socket server URL > should work behind proxy, when the "host" optio ] `; -exports[`web socket server URL > should work behind proxy, when the "host" option is "local-ip" and the "port" option is "auto" ("ws") 2`] = ` +exports[`web socket server URL > should work behind proxy, when the \"host\" option is \"local-ip\" and the \"port\" option is \"auto\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work when "host" option is "local-ip" ("ws") 1`] = ` +exports[`web socket server URL > should work when \"host\" option is IPv4 (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -81,11 +69,11 @@ exports[`web socket server URL > should work when "host" option is "local-ip" (" ] `; -exports[`web socket server URL > should work when "host" option is "local-ip" ("ws") 2`] = ` +exports[`web socket server URL > should work when \"host\" option is IPv4 (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work when "host" option is "local-ipv4" ("ws") 1`] = ` +exports[`web socket server URL > should work when \"host\" option is \"local-ip\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -93,11 +81,11 @@ exports[`web socket server URL > should work when "host" option is "local-ipv4" ] `; -exports[`web socket server URL > should work when "host" option is "local-ipv4" ("ws") 2`] = ` +exports[`web socket server URL > should work when \"host\" option is \"local-ip\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work when "host" option is IPv4 ("ws") 1`] = ` +exports[`web socket server URL > should work when \"host\" option is \"local-ipv4\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -105,11 +93,11 @@ exports[`web socket server URL > should work when "host" option is IPv4 ("ws") 1 ] `; -exports[`web socket server URL > should work when "host" option is IPv4 ("ws") 2`] = ` +exports[`web socket server URL > should work when \"host\" option is \"local-ipv4\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work when "port" option is "auto" ("ws") 1`] = ` +exports[`web socket server URL > should work when \"port\" option is \"auto\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -117,11 +105,11 @@ exports[`web socket server URL > should work when "port" option is "auto" ("ws") ] `; -exports[`web socket server URL > should work when "port" option is "auto" ("ws") 2`] = ` +exports[`web socket server URL > should work when \"port\" option is \"auto\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with "client.webSocketURL.*" options ("ws") 1`] = ` +exports[`web socket server URL > should work with \"client.webSocketURL.*\" options (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -129,11 +117,11 @@ exports[`web socket server URL > should work with "client.webSocketURL.*" option ] `; -exports[`web socket server URL > should work with "client.webSocketURL.*" options ("ws") 2`] = ` +exports[`web socket server URL > should work with \"client.webSocketURL.*\" options (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with "client.webSocketURL.port" and "webSocketServer.options.port" options as string ("ws") 1`] = ` +exports[`web socket server URL > should work with \"client.webSocketURL.port\" and \"webSocketServer.options.port\" options as string (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -141,11 +129,11 @@ exports[`web socket server URL > should work with "client.webSocketURL.port" and ] `; -exports[`web socket server URL > should work with "client.webSocketURL.port" and "webSocketServer.options.port" options as string ("ws") 2`] = ` +exports[`web socket server URL > should work with \"client.webSocketURL.port\" and \"webSocketServer.options.port\" options as string (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with "server: 'https'" option ("ws") 1`] = ` +exports[`web socket server URL > should work with \"server: 'https'\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -153,11 +141,11 @@ exports[`web socket server URL > should work with "server: 'https'" option ("ws" ] `; -exports[`web socket server URL > should work with "server: 'https'" option ("ws") 2`] = ` +exports[`web socket server URL > should work with \"server: 'https'\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with default "/ws" value of the "client.webSocketURL.pathname" option ("ws") 1`] = ` +exports[`web socket server URL > should work with default \"/ws\" value of the \"client.webSocketURL.pathname\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -165,11 +153,11 @@ exports[`web socket server URL > should work with default "/ws" value of the "cl ] `; -exports[`web socket server URL > should work with default "/ws" value of the "client.webSocketURL.pathname" option ("ws") 2`] = ` +exports[`web socket server URL > should work with default \"/ws\" value of the \"client.webSocketURL.pathname\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL" option as "string" ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.host\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -177,11 +165,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL" opti ] `; -exports[`web socket server URL > should work with the "client.webSocketURL" option as "string" ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.host\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.host" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.host\" option using \"0.0.0.0\" value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -189,11 +177,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.host" ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.host" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.host\" option using \"0.0.0.0\" value (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.host" option using "0.0.0.0" value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.password\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -201,11 +189,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.host" ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.host" option using "0.0.0.0" value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.password\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.password" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -213,11 +201,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.passw ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.password" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option (\"ws\") 3`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -225,11 +213,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option (\"ws\") 4`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option ("ws") 3`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -237,11 +225,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option ("ws") 4`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" ending with slash (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -249,11 +237,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" ending with slash (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ending with slash ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" ending without slash (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -261,11 +249,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ending with slash ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" ending without slash (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ending without slash ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" using empty value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -273,11 +261,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" ending without slash ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.pathname\" option and the custom web socket server \"path\" using empty value (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" using empty value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -285,11 +273,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.pathn ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.pathname" option and the custom web socket server "path" using empty value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option as string (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -297,11 +285,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.port" ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option as string (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option as string ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option using \"0\" value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -309,11 +297,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.port" ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option as string ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.port\" option using \"0\" value (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option using "0" value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -321,11 +309,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.port" ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.port" option using "0" value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option using \"auto:\" value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -333,11 +321,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.proto ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option using \"auto:\" value (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option using "auto:" value ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option using \"http:\" value and convert to \"ws:\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -345,11 +333,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.proto ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option using "auto:" value ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.protocol\" option using \"http:\" value and convert to \"ws:\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option using "http:" value and convert to "ws:" ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.username\" and \"client.webSocketURL.password\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -357,11 +345,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.proto ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.protocol" option using "http:" value and convert to "ws:" ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.username\" and \"client.webSocketURL.password\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.username" and "client.webSocketURL.password" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.username\" option (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -369,11 +357,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.usern ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.username" and "client.webSocketURL.password" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL.username\" option (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the "client.webSocketURL.username" option ("ws") 1`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL\" option as \"string\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -381,11 +369,11 @@ exports[`web socket server URL > should work with the "client.webSocketURL.usern ] `; -exports[`web socket server URL > should work with the "client.webSocketURL.username" option ("ws") 2`] = ` +exports[`web socket server URL > should work with the \"client.webSocketURL\" option as \"string\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the custom web socket server "path" ("ws") 1`] = ` +exports[`web socket server URL > should work with the custom web socket server \"path\" (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -393,11 +381,11 @@ exports[`web socket server URL > should work with the custom web socket server " ] `; -exports[`web socket server URL > should work with the custom web socket server "path" ("ws") 2`] = ` +exports[`web socket server URL > should work with the custom web socket server \"path\" (\"ws\") 2`] = ` [] `; -exports[`web socket server URL > should work with the custom web socket server "path" using empty value ("ws") 1`] = ` +exports[`web socket server URL > should work with the custom web socket server \"path\" using empty value (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", "[HMR] Waiting for update signal from WDS...", @@ -405,6 +393,6 @@ exports[`web socket server URL > should work with the custom web socket server " ] `; -exports[`web socket server URL > should work with the custom web socket server "path" using empty value ("ws") 2`] = ` +exports[`web socket server URL > should work with the custom web socket server \"path\" using empty value (\"ws\") 2`] = ` [] `; From 517c15b730b18e44cfaca1ba2aec053c727af55b Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 22:39:17 -0500 Subject: [PATCH 09/12] fixup! --- .../web-socket-server-url.test.js.snap.webpack5 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 b/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 index 37d3e7c200..40e78665d1 100644 --- a/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/web-socket-server-url.test.js.snap.webpack5 @@ -13,6 +13,18 @@ exports[`web socket server URL > should not work and output disconnect wrong web [] `; +exports[`web socket server URL > should work and throw an error on invalid web socket URL (\"ws\") 1`] = ` +[ + "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", +] +`; + +exports[`web socket server URL > should work and throw an error on invalid web socket URL (\"ws\") 2`] = ` +[ + "Failed to construct 'WebSocket': The URL's scheme must be either 'http', 'https', 'ws', or 'wss'. 'unknown' is not allowed.", +] +`; + exports[`web socket server URL > should work behind proxy, when hostnames are different and ports are different (\"ws\") 1`] = ` [ "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", From b6ee777fa7c8ab9ef29969a29075a9a35dea58c9 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 22:47:31 -0500 Subject: [PATCH 10/12] fixup! --- .../api-plugin.test.js.snap.webpack5 | 12 ++++ .../watch-files.test.js.snap.webpack5 | 60 +++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 b/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 index a5bc230958..7818c4c0a2 100644 --- a/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/api-plugin.test.js.snap.webpack5 @@ -33,3 +33,15 @@ exports[`API (plugin) > should work with plugin API 1`] = ` exports[`API (plugin) > should work with plugin API 2`] = ` [] `; + +exports[`API (plugin) > plugin in webpack config > should work with output.clean: true 1`] = ` +[ + "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.", + "[HMR] Waiting for update signal from WDS...", + "Hey.", +] +`; + +exports[`API (plugin) > plugin in webpack config > should work with output.clean: true 2`] = ` +[] +`; diff --git a/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 b/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 index 5af7de2299..a6df8ada74 100644 --- a/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 +++ b/test/e2e/__snapshots__/watch-files.test.js.snap.webpack5 @@ -644,3 +644,63 @@ exports[`watchFiles option > should work with string and path to file > should r exports[`watchFiles option > should work with string and path to file > should reload when file content is changed 3`] = ` [] `; + +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"interval\":200,\"poll\":400} > should reload when file content is changed 1`] = ` +{ + "alwaysStat": true, + "atomic": false, + "awaitWriteFinish": false, + "binaryInterval": 300, + "followSymlinks": false, + "ignoreInitial": true, + "ignorePermissionErrors": true, + "ignored": [], + "interval": 200, + "persistent": true, + "usePolling": true, +} +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"interval\":200,\"poll\":400} > should reload when file content is changed 1`] = ` +{ + "alwaysStat": true, + "atomic": false, + "awaitWriteFinish": false, + "binaryInterval": 300, + "followSymlinks": false, + "ignoreInitial": true, + "ignorePermissionErrors": true, + "ignored": [], + "interval": 200, + "persistent": true, + "usePolling": true, +} +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"interval\":200,\"poll\":400} > should reload when file content is changed 2`] = ` +200 +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"interval\":200,\"poll\":400} > should reload when file content is changed 2`] = ` +200 +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"interval\":200,\"poll\":400} > should reload when file content is changed 3`] = ` +[ + "Hey.", +] +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"interval\":200,\"poll\":400} > should reload when file content is changed 3`] = ` +[ + "Hey.", +] +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":false,\"interval\":200,\"poll\":400} > should reload when file content is changed 4`] = ` +[] +`; + +exports[`watchFiles option > should work with options > {\"usePolling\":true,\"interval\":200,\"poll\":400} > should reload when file content is changed 4`] = ` +[] +`; From 0b2a6f53b9570ee7e8ece56b6529c75788883712 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 23:02:53 -0500 Subject: [PATCH 11/12] fixup! --- test/e2e/ipc.test.js | 61 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/test/e2e/ipc.test.js b/test/e2e/ipc.test.js index 70d9e221de..d06e932368 100644 --- a/test/e2e/ipc.test.js +++ b/test/e2e/ipc.test.js @@ -40,14 +40,27 @@ describe("web socket server URL", () => { target: { socketPath: server.options.ipc }, }); + // Sockets can be reset abruptly (e.g. while the browser is closing), + // don't let those errors crash the test process. + proxy.on("error", () => {}); + const proxyServer = http.createServer((request, response) => { // You can define here your custom logic to handle the request // and then proxy the request. - proxy.web(request, response); + proxy.web(request, response).catch(() => { + if (!response.headersSent) { + response.statusCode = 502; + } + + response.end(); + }); }); proxyServer.on("upgrade", (request, socket, head) => { - proxy.ws(request, socket, head); + socket.on("error", () => {}); + proxy.ws(request, socket, head).catch(() => { + socket.destroy(); + }); }); return proxyServer.listen(proxyPort, proxyHost, callback); @@ -101,9 +114,10 @@ describe("web socket server URL", () => { t.assert.snapshot(consoleMessages.map((message) => message.text())); t.assert.snapshot(pageErrors); } finally { - proxy.close(); - await browser.close(); + await new Promise((resolve) => { + proxy.close(resolve); + }); await server.stop(); } }); @@ -132,14 +146,27 @@ describe("web socket server URL", () => { target: { socketPath: ipc }, }); + // Sockets can be reset abruptly (e.g. while the browser is closing), + // don't let those errors crash the test process. + proxy.on("error", () => {}); + const proxyServer = http.createServer((request, response) => { // You can define here your custom logic to handle the request // and then proxy the request. - proxy.web(request, response); + proxy.web(request, response).catch(() => { + if (!response.headersSent) { + response.statusCode = 502; + } + + response.end(); + }); }); proxyServer.on("upgrade", (request, socket, head) => { - proxy.ws(request, socket, head); + socket.on("error", () => {}); + proxy.ws(request, socket, head).catch(() => { + socket.destroy(); + }); }); return proxyServer.listen(proxyPort, proxyHost, callback); @@ -193,9 +220,10 @@ describe("web socket server URL", () => { t.assert.snapshot(consoleMessages.map((message) => message.text())); t.assert.snapshot(pageErrors); } finally { - proxy.close(); - await browser.close(); + await new Promise((resolve) => { + proxy.close(resolve); + }); await server.stop(); } }); @@ -242,14 +270,27 @@ describe("web socket server URL", () => { target: { socketPath: ipc }, }); + // Sockets can be reset abruptly (e.g. while the browser is closing), + // don't let those errors crash the test process. + proxy.on("error", () => {}); + const proxyServer = http.createServer((request, response) => { // You can define here your custom logic to handle the request // and then proxy the request. - proxy.web(request, response); + proxy.web(request, response).catch(() => { + if (!response.headersSent) { + response.statusCode = 502; + } + + response.end(); + }); }); proxyServer.on("upgrade", (request, socket, head) => { - proxy.ws(request, socket, head); + socket.on("error", () => {}); + proxy.ws(request, socket, head).catch(() => { + socket.destroy(); + }); }); return proxyServer.listen(proxyPort, proxyHost, callback); From f7305b2aa8b3b6b6809be2793a2666ccf9ba5c39 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Tue, 21 Jul 2026 23:27:16 -0500 Subject: [PATCH 12/12] fixup! --- .cspell.json | 1 + scripts/node-test-setup.mjs | 1 + 2 files changed, 2 insertions(+) diff --git a/.cspell.json b/.cspell.json index c4133a96b2..b991a433bb 100644 --- a/.cspell.json +++ b/.cspell.json @@ -20,6 +20,7 @@ "selfsigned", "portfinder", "xlink", + "WATCHPACK", "instanceof", "Heyo", "domcontentloaded", diff --git a/scripts/node-test-setup.mjs b/scripts/node-test-setup.mjs index 326ac86c5e..e86c1b213f 100644 --- a/scripts/node-test-setup.mjs +++ b/scripts/node-test-setup.mjs @@ -4,6 +4,7 @@ import { format } from "pretty-format"; import webpack from "webpack"; process.env.CHOKIDAR_USEPOLLING = "true"; +process.env.WATCHPACK_POLLING = "true"; // Normalize "\r\n" and "\r" to "\n" so snapshots are platform-agnostic, // and "[object Event]"-style console text (Puppeteer >= 25) to "JSHandle@object".