diff --git a/.github/workflows/vitest-Windows.yml b/.github/workflows/ut-Windows.yml similarity index 89% rename from .github/workflows/vitest-Windows.yml rename to .github/workflows/ut-Windows.yml index b2c522c58628..b351bd130a7d 100644 --- a/.github/workflows/vitest-Windows.yml +++ b/.github/workflows/ut-Windows.yml @@ -1,7 +1,8 @@ -name: Unit Test (vitest - Windows) +name: Unit Test (Windows) +# TODO: migrate jest tests to rstest later concurrency: - group: windows-vitest-${{ github.head_ref }} + group: windows-unit-test-${{ github.head_ref }} cancel-in-progress: true # Controls when the action will run. @@ -51,4 +52,4 @@ jobs: - name: Test if: ${{steps.skip-ci.outputs.RESULT != 'true'}} - run: pnpm run test:vitest + run: pnpm run test:rstest diff --git a/.github/workflows/vitest-macOS.yml b/.github/workflows/ut-macOS.yml similarity index 89% rename from .github/workflows/vitest-macOS.yml rename to .github/workflows/ut-macOS.yml index 23d5d546a2e0..f558c39dc26c 100644 --- a/.github/workflows/vitest-macOS.yml +++ b/.github/workflows/ut-macOS.yml @@ -1,7 +1,8 @@ -name: Unit Test (vitest - macOS) +name: Unit Test (macOS) +# TODO: migrate jest tests to rstest later concurrency: - group: macos-vitest-${{ github.head_ref }} + group: macos-unit-test-${{ github.head_ref }} cancel-in-progress: true # Controls when the action will run. @@ -50,4 +51,4 @@ jobs: - name: Test if: ${{steps.skip-ci.outputs.RESULT != 'true'}} - run: pnpm run test:vitest + run: pnpm run test:rstest diff --git a/package.json b/package.json index 6cd1eaf5f467..bd0769051719 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,9 @@ "test": "npm run test:ut", "test:rspack": "cd tests && pnpm run test:rspack", "test:jest": "cd tests && pnpm run test:ut", - "test:vitest": "cross-env VITE_CJS_IGNORE_WARNING=true node scripts/vitest-config/vitestRunAll.js", - "test:ut": "pnpm run test:jest && pnpm run test:vitest", - "test:ut:update": "pnpm run test:jest -u && pnpm run test:vitest -u", + "test:rstest": "rstest", + "test:ut": "pnpm run test:jest && pnpm run test:rstest", + "test:ut:update": "pnpm run test:jest -u && pnpm run test:rstest -u", "test:e2e": "cd tests && npm run test", "lint:package-json": "cd ./scripts/lint-package-json && pnpm start", "prepare-build": "cross-env NX_DAEMON=false NX_REJECT_UNKNOWN_LOCAL_CACHE=0 nx run-many -t build -p @modern-js/* --exclude=@modern-js/main-doc,@modern-js/module-tools-docs --maxParallel=4", @@ -75,7 +75,6 @@ "@scripts/build": "workspace:*", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", - "@vitest/ui": "^3.2.4", "check-dependency-version-consistency": "4.1.1", "cross-env": "^7.0.3", "esbuild": "0.25.5", @@ -83,7 +82,7 @@ "lint-staged": "~13.3.0", "nx": "^17.3.2", "rimraf": "^6.1.2", - "vitest": "^3.0.0" + "@rstest/core": "0.6.6" }, "pnpm": { "peerDependencyRules": { diff --git a/packages/cli/babel-preset/package.json b/packages/cli/babel-preset/package.json index 3607e1caa32c..061ea19d4a85 100644 --- a/packages/cli/babel-preset/package.json +++ b/packages/cli/babel-preset/package.json @@ -47,8 +47,8 @@ "scripts": { "build": "modern-lib build", "dev": "modern-lib build --watch", - "test": "vitest run", - "test:watch": "vitest dev" + "test": "rstest run", + "test:watch": "rstest dev" }, "dependencies": { "@babel/core": "^7.28.5", @@ -70,7 +70,7 @@ "devDependencies": { "@modern-js/tsconfig": "workspace:*", "@scripts/build": "workspace:*", - "@scripts/vitest-config": "workspace:*", + "@scripts/rstest-config": "workspace:*", "@types/node": "^20", "typescript": "^5.3.0" }, diff --git a/packages/cli/babel-preset/rstest.config.ts b/packages/cli/babel-preset/rstest.config.ts new file mode 100644 index 000000000000..223758da4966 --- /dev/null +++ b/packages/cli/babel-preset/rstest.config.ts @@ -0,0 +1,6 @@ +import { withTestPreset } from '@scripts/rstest-config'; + +export default withTestPreset({ + root: __dirname, + testEnvironment: 'node', +}); diff --git a/packages/cli/babel-preset/tests/__snapshots__/node.test.ts.snap b/packages/cli/babel-preset/tests/__snapshots__/node.test.ts.snap index 8f92faad5d4f..9af234cff281 100644 --- a/packages/cli/babel-preset/tests/__snapshots__/node.test.ts.snap +++ b/packages/cli/babel-preset/tests/__snapshots__/node.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`should allow to enable legacy decorator 1`] = ` { diff --git a/packages/cli/babel-preset/tests/__snapshots__/web.test.ts.snap b/packages/cli/babel-preset/tests/__snapshots__/web.test.ts.snap index 3cbaa9c67126..6bc3041e983f 100644 --- a/packages/cli/babel-preset/tests/__snapshots__/web.test.ts.snap +++ b/packages/cli/babel-preset/tests/__snapshots__/web.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`should allow to enable legacy decorator 1`] = ` { @@ -24,7 +24,7 @@ exports[`should allow to enable legacy decorator 1`] = ` "version": "7.28.4", }, ], - "/src/pluginLockCorejsVersion.js", + "/packages/cli/babel-preset/src/pluginLockCorejsVersion.js", ], "presets": [ [ @@ -84,7 +84,7 @@ exports[`should allow to enable specific version decorator 1`] = ` "version": "7.28.4", }, ], - "/src/pluginLockCorejsVersion.js", + "/packages/cli/babel-preset/src/pluginLockCorejsVersion.js", ], "presets": [ [ @@ -134,7 +134,7 @@ exports[`should provide web preset as expected 1`] = ` "version": "7.28.4", }, ], - "/src/pluginLockCorejsVersion.js", + "/packages/cli/babel-preset/src/pluginLockCorejsVersion.js", ], "presets": [ [ @@ -225,7 +225,7 @@ exports[`should support inject core-js polyfills by entry 1`] = ` "version": "7.28.4", }, ], - "/src/pluginLockCorejsVersion.js", + "/packages/cli/babel-preset/src/pluginLockCorejsVersion.js", ], "presets": [ [ @@ -278,7 +278,7 @@ exports[`should support inject core-js polyfills by usage 1`] = ` "version": "7.28.4", }, ], - "/src/pluginLockCorejsVersion.js", + "/packages/cli/babel-preset/src/pluginLockCorejsVersion.js", ], "presets": [ [ diff --git a/packages/cli/babel-preset/tests/node.test.ts b/packages/cli/babel-preset/tests/node.test.ts index e848623325ff..88af2f389010 100644 --- a/packages/cli/babel-preset/tests/node.test.ts +++ b/packages/cli/babel-preset/tests/node.test.ts @@ -1,4 +1,4 @@ -import { expect, test } from 'vitest'; +import { expect, test } from '@rstest/core'; import { getBabelConfigForNode } from '../src/node'; test('should provide node preset as expected', () => { diff --git a/packages/cli/babel-preset/tests/setup.ts b/packages/cli/babel-preset/tests/setup.ts deleted file mode 100644 index 876f4168887c..000000000000 --- a/packages/cli/babel-preset/tests/setup.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Console } from 'console'; -import { createSnapshotSerializer } from '@scripts/vitest-config'; -import { expect } from 'vitest'; - -global.console.Console = Console; - -// Disable chalk in test -process.env.FORCE_COLOR = '0'; - -expect.addSnapshotSerializer( - createSnapshotSerializer({ - replace: [ - { - mark: 'fragment', - match: /(?<=\/)modern-js\/stub-builder\/[^/]+\/[^/]+/, - }, - ], - }), -); diff --git a/packages/cli/babel-preset/tests/web.test.ts b/packages/cli/babel-preset/tests/web.test.ts index 315807f2d3ba..03c09a2eea79 100644 --- a/packages/cli/babel-preset/tests/web.test.ts +++ b/packages/cli/babel-preset/tests/web.test.ts @@ -1,4 +1,4 @@ -import { expect, test } from 'vitest'; +import { expect, test } from '@rstest/core'; import { getBabelConfigForWeb } from '../src/web'; test('should provide web preset as expected', () => { diff --git a/packages/cli/babel-preset/vitest.config.ts b/packages/cli/babel-preset/vitest.config.ts deleted file mode 100644 index 3caf208784ba..000000000000 --- a/packages/cli/babel-preset/vitest.config.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { withTestPreset } from '@scripts/vitest-config'; -import { defineConfig } from 'vitest/config'; - -const config = defineConfig({ - test: { - root: __dirname, - environment: 'node', - setupFiles: ['./tests/setup.ts'], - }, -}); - -export default withTestPreset(config); diff --git a/packages/cli/builder/package.json b/packages/cli/builder/package.json index 99338d784727..e0d1dcb3316d 100644 --- a/packages/cli/builder/package.json +++ b/packages/cli/builder/package.json @@ -24,8 +24,8 @@ "scripts": { "build": "modern-lib build", "dev": "modern-lib build --watch", - "test": "vitest run", - "test:watch": "vitest dev" + "test": "rstest run", + "test:watch": "rstest watch" }, "dependencies": { "@modern-js/flight-server-transform-plugin": "workspace:*", @@ -65,7 +65,7 @@ "devDependencies": { "@modern-js/types": "workspace:*", "@scripts/build": "workspace:*", - "@scripts/vitest-config": "workspace:*", + "@scripts/rstest-config": "workspace:*", "@types/html-minifier-terser": "^7.0.2", "@types/lodash": "^4.17.21", "react": "^19.2.0", diff --git a/packages/cli/builder/rstest.config.ts b/packages/cli/builder/rstest.config.ts new file mode 100644 index 000000000000..223758da4966 --- /dev/null +++ b/packages/cli/builder/rstest.config.ts @@ -0,0 +1,6 @@ +import { withTestPreset } from '@scripts/rstest-config'; + +export default withTestPreset({ + root: __dirname, + testEnvironment: 'node', +}); diff --git a/packages/cli/builder/tests/__snapshots__/babel.test.ts.snap b/packages/cli/builder/tests/__snapshots__/babel.test.ts.snap index 216a271691af..995217f7c032 100644 --- a/packages/cli/builder/tests/__snapshots__/babel.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/babel.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`plugin-babel (rspack mode) > should merge environment and shared babel config 1`] = ` [ @@ -45,7 +45,7 @@ exports[`plugin-babel (rspack mode) > should merge environment and shared babel "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -176,7 +176,7 @@ exports[`plugin-babel (rspack mode) > should merge environment and shared babel "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -299,7 +299,7 @@ exports[`plugin-babel (rspack mode) > should not set babel-loader when babel con "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -385,7 +385,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when babel config "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -508,7 +508,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when environment b "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -631,7 +631,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when environment b "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, diff --git a/packages/cli/builder/tests/__snapshots__/cache.test.ts.snap b/packages/cli/builder/tests/__snapshots__/cache.test.ts.snap index 3286c0d9fc07..e14c0e92ce70 100644 --- a/packages/cli/builder/tests/__snapshots__/cache.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/cache.test.ts.snap @@ -1,14 +1,14 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`builder rspack with cache > should disable cache by default 1`] = ` { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", "modern.config.ts", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -19,12 +19,12 @@ exports[`builder rspack with cache > should disable cache by default 1`] = ` exports[`builder rspack with cache > should generator rspack config correctly with cache 1`] = ` { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", "modern.config.ts", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", diff --git a/packages/cli/builder/tests/__snapshots__/default.test.ts.snap b/packages/cli/builder/tests/__snapshots__/default.test.ts.snap index 0f3e78532f91..9e773d4b9854 100644 --- a/packages/cli/builder/tests/__snapshots__/default.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/default.test.ts.snap @@ -1,25 +1,25 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`builder rspack > should generator rspack config correctly 1`] = ` { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "cheap-module-source-map", "entry": { "index": [ - "/datatext/javascript,import \\"core-js\\";", - "src/index.ts", + "data:text/javascript,import \\"core-js\\";", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -254,7 +254,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -322,7 +322,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -756,7 +756,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -836,7 +836,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -886,7 +886,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -962,7 +962,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1076,7 +1076,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "devtoolModuleFilenameTemplate": [Function], "filename": "static/js/[name].js", "hashFunction": "xxhash64", - "path": "dist", + "path": "/packages/cli/builder/dist", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -1141,13 +1141,13 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": true, - "MODE": ""development"", + "MODE": "\\"development\\"", "PROD": false, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -1176,7 +1176,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` }, "typescript": { "build": false, - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "memoryLimit": 8192, "mode": "readonly", "typescriptPath": "/node_modules//typescript/lib/typescript.js", @@ -1230,7 +1230,7 @@ exports[`builder rspack > should generator rspack config correctly 1`] = ` ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, @@ -1266,22 +1266,22 @@ exports[`builder rspack > should generator rspack config correctly 2`] = ` exports[`builder rspack > should generator rspack config correctly when node 1`] = ` { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "source-map", "entry": { "index": [ - "src/index.ts", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -1409,7 +1409,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1469,7 +1469,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1770,7 +1770,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -1799,7 +1799,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -1845,7 +1845,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1916,7 +1916,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2043,7 +2043,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "library": { "type": "commonjs2", }, - "path": "dist/bundles", + "path": "/packages/cli/builder/dist/bundles", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -2059,13 +2059,13 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": false, - "MODE": ""production"", + "MODE": "\\"production\\"", "PROD": true, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -2094,7 +2094,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] }, "typescript": { "build": false, - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "memoryLimit": 8192, "mode": "readonly", "typescriptPath": "/node_modules//typescript/lib/typescript.js", @@ -2126,7 +2126,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, @@ -2140,23 +2140,23 @@ exports[`builder rspack > should generator rspack config correctly when node 1`] exports[`builder rspack > should generator rspack config correctly when prod 1`] = ` { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "hidden-source-map", "entry": { "index": [ - "/datatext/javascript,import \\"core-js\\";", - "src/index.ts", + "data:text/javascript,import \\"core-js\\";", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -2390,7 +2390,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2458,7 +2458,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2892,7 +2892,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -2972,7 +2972,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -3022,7 +3022,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -3098,7 +3098,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -3248,7 +3248,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "devtoolModuleFilenameTemplate": "[absolute-resource-path]", "filename": "static/js/[name].[contenthash:8].js", "hashFunction": "xxhash64", - "path": "dist", + "path": "/packages/cli/builder/dist", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -3310,13 +3310,13 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": false, - "MODE": ""production"", + "MODE": "\\"production\\"", "PROD": true, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -3345,7 +3345,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] }, "typescript": { "build": false, - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "memoryLimit": 8192, "mode": "readonly", "typescriptPath": "/node_modules//typescript/lib/typescript.js", @@ -3377,7 +3377,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, @@ -3394,22 +3394,22 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`] exports[`builder rspack > should generator rspack config correctly when service-worker 1`] = ` { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "hidden-source-map", "entry": { "index": [ - "src/index.ts", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -3534,7 +3534,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -3595,7 +3595,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -3878,7 +3878,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -3907,7 +3907,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": false, @@ -3953,7 +3953,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -4025,7 +4025,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -4149,7 +4149,7 @@ exports[`builder rspack > should generator rspack config correctly when service- "filename": "[name].js", "hashFunction": "xxhash64", "libraryTarget": "commonjs2", - "path": "dist/worker", + "path": "/packages/cli/builder/dist/worker", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -4165,13 +4165,13 @@ exports[`builder rspack > should generator rspack config correctly when service- "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": false, - "MODE": ""production"", + "MODE": "\\"production\\"", "PROD": true, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -4200,7 +4200,7 @@ exports[`builder rspack > should generator rspack config correctly when service- }, "typescript": { "build": false, - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "memoryLimit": 8192, "mode": "readonly", "typescriptPath": "/node_modules//typescript/lib/typescript.js", @@ -4232,7 +4232,7 @@ exports[`builder rspack > should generator rspack config correctly when service- ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, diff --git a/packages/cli/builder/tests/__snapshots__/environment.test.ts.snap b/packages/cli/builder/tests/__snapshots__/environment.test.ts.snap index 579a4d55aa05..6c7741c204b8 100644 --- a/packages/cli/builder/tests/__snapshots__/environment.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/environment.test.ts.snap @@ -1,26 +1,26 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`builder environment compat > should generator environment config correctly 1`] = ` [ { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "cheap-module-source-map", "entry": { "index": [ - "/datatext/javascript,import \\"core-js\\";", - "src/index.ts", + "data:text/javascript,import \\"core-js\\";", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -255,7 +255,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -323,7 +323,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -757,7 +757,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -837,7 +837,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -887,7 +887,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -963,7 +963,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1077,7 +1077,7 @@ exports[`builder environment compat > should generator environment config correc "devtoolModuleFilenameTemplate": [Function], "filename": "static/js/[name].js", "hashFunction": "xxhash64", - "path": "dist", + "path": "/packages/cli/builder/dist", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -1142,13 +1142,13 @@ exports[`builder environment compat > should generator environment config correc "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": true, - "MODE": ""development"", + "MODE": "\\"development\\"", "PROD": false, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -1211,7 +1211,7 @@ exports[`builder environment compat > should generator environment config correc ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, @@ -1225,22 +1225,22 @@ exports[`builder environment compat > should generator environment config correc }, { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "cheap-module-source-map", "entry": { "index": [ - "src/index.ts", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -1368,7 +1368,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1428,7 +1428,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1729,7 +1729,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -1758,7 +1758,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -1804,7 +1804,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1875,7 +1875,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -1966,7 +1966,7 @@ exports[`builder environment compat > should generator environment config correc "library": { "type": "commonjs2", }, - "path": "dist/bundles", + "path": "/packages/cli/builder/dist/bundles", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -1982,13 +1982,13 @@ exports[`builder environment compat > should generator environment config correc "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": true, - "MODE": ""development"", + "MODE": "\\"development\\"", "PROD": false, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -2017,7 +2017,7 @@ exports[`builder environment compat > should generator environment config correc }, "typescript": { "build": false, - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "memoryLimit": 8192, "mode": "readonly", "typescriptPath": "/node_modules//typescript/lib/typescript.js", @@ -2049,7 +2049,7 @@ exports[`builder environment compat > should generator environment config correc ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, @@ -2060,22 +2060,22 @@ exports[`builder environment compat > should generator environment config correc }, { "cache": true, - "context": "", + "context": "/packages/cli/builder", "devtool": "cheap-module-source-map", "entry": { "index": [ - "src/index.ts", + "/packages/cli/builder/src/index.ts", ], }, "experiments": { "asyncWebAssembly": true, "cache": { "buildDependencies": [ - "package.json", - "tsconfig.json", + "/packages/cli/builder/package.json", + "/packages/cli/builder/tsconfig.json", ], "storage": { - "directory": "node_modules/.cache/rspack", + "directory": "/packages/cli/builder/node_modules/.cache/rspack", "type": "filesystem", }, "type": "persistent", @@ -2200,7 +2200,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2261,7 +2261,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2544,7 +2544,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -2573,7 +2573,7 @@ exports[`builder environment compat > should generator environment config correc "lessOptions": { "javascriptEnabled": true, "paths": [ - "node_modules", + "/packages/cli/builder/node_modules", ], }, "sourceMap": true, @@ -2619,7 +2619,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2691,7 +2691,7 @@ exports[`builder environment compat > should generator environment config correc "isModule": "unknown", "jsc": { "experimental": { - "cacheRoot": "node_modules/.cache/.swc", + "cacheRoot": "/packages/cli/builder/node_modules/.cache/.swc", "keepImportAttributes": true, }, "externalHelpers": true, @@ -2779,7 +2779,7 @@ exports[`builder environment compat > should generator environment config correc "filename": "[name].js", "hashFunction": "xxhash64", "libraryTarget": "commonjs2", - "path": "dist/worker", + "path": "/packages/cli/builder/dist/worker", "pathinfo": false, "publicPath": "/", "webassemblyModuleFilename": "static/wasm/[contenthash:8].module.wasm", @@ -2795,13 +2795,13 @@ exports[`builder environment compat > should generator environment config correc "_args": [ { "import.meta.env": { - "ASSET_PREFIX": """", + "ASSET_PREFIX": "\\"\\"", "BASE_URL": "\\"/\\"", "DEV": true, - "MODE": ""development"", + "MODE": "\\"development\\"", "PROD": false, }, - "process.env.ASSET_PREFIX": """", + "process.env.ASSET_PREFIX": "\\"\\"", "process.env.BASE_URL": "\\"/\\"", }, ], @@ -2842,7 +2842,7 @@ exports[`builder environment compat > should generator environment config correc ".json", ], "tsConfig": { - "configFile": "tsconfig.json", + "configFile": "/packages/cli/builder/tsconfig.json", "references": "auto", }, }, diff --git a/packages/cli/builder/tests/__snapshots__/parseConfig.test.ts.snap b/packages/cli/builder/tests/__snapshots__/parseConfig.test.ts.snap index ae0f5437c859..d9d6c2e0fbd1 100644 --- a/packages/cli/builder/tests/__snapshots__/parseConfig.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/parseConfig.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`parseCommonConfig > dev.xxx 1`] = ` { diff --git a/packages/cli/builder/tests/__snapshots__/postcssLegacy.test.ts.snap b/packages/cli/builder/tests/__snapshots__/postcssLegacy.test.ts.snap index 63ef31ccc99b..3b2f335db736 100644 --- a/packages/cli/builder/tests/__snapshots__/postcssLegacy.test.ts.snap +++ b/packages/cli/builder/tests/__snapshots__/postcssLegacy.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`lightningcss-loader > should register lightningcss-loader and disable postcss-loader when lightningcssLoader enabled 1`] = ` [ diff --git a/packages/cli/builder/tests/babel.test.ts b/packages/cli/builder/tests/babel.test.ts index df54107bd62c..dece15c271e1 100644 --- a/packages/cli/builder/tests/babel.test.ts +++ b/packages/cli/builder/tests/babel.test.ts @@ -1,11 +1,12 @@ -import { describe, expect, it } from 'vitest'; +import { join } from 'path'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; import { matchRules, unwrapConfig } from './helper'; describe('plugin-babel (rspack mode)', () => { it('should not set babel-loader when babel config not modified', async () => { const rsbuild = await createBuilder({ - cwd: '', + cwd: join(__dirname, '..'), bundlerType: 'rspack', config: { output: { @@ -32,7 +33,7 @@ describe('plugin-babel (rspack mode)', () => { it('should set babel-loader when babel config modified', async () => { const rsbuild = await createBuilder({ - cwd: '', + cwd: join(__dirname, '..'), bundlerType: 'rspack', config: { output: { @@ -69,7 +70,7 @@ describe('plugin-babel (rspack mode)', () => { it('should set babel-loader when environment babel config defined', async () => { const rsbuild = await createBuilder({ - cwd: '', + cwd: join(__dirname, '..'), bundlerType: 'rspack', config: { output: { @@ -120,7 +121,7 @@ describe('plugin-babel (rspack mode)', () => { it('should merge environment and shared babel config', async () => { const rsbuild = await createBuilder({ - cwd: '', + cwd: join(__dirname, '..'), bundlerType: 'rspack', config: { output: { diff --git a/packages/cli/builder/tests/cache.test.ts b/packages/cli/builder/tests/cache.test.ts index 04d1b1695c3c..ad619250b2c5 100644 --- a/packages/cli/builder/tests/cache.test.ts +++ b/packages/cli/builder/tests/cache.test.ts @@ -1,5 +1,5 @@ -import type { RsbuildPlugin } from '@rsbuild/core'; -import { describe, expect, it } from 'vitest'; +import { join } from 'path'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; describe('builder rspack with cache', () => { @@ -8,7 +8,7 @@ describe('builder rspack with cache', () => { bundlerType: 'rspack', config: {}, frameworkConfigPath: 'modern.config.ts', - cwd: '', + cwd: join(__dirname, '..'), }); const { @@ -28,7 +28,7 @@ describe('builder rspack with cache', () => { }, }, frameworkConfigPath: 'modern.config.ts', - cwd: '', + cwd: join(__dirname, '..'), }); const { diff --git a/packages/cli/builder/tests/default.test.ts b/packages/cli/builder/tests/default.test.ts index fb217ee7865e..048278a8d756 100644 --- a/packages/cli/builder/tests/default.test.ts +++ b/packages/cli/builder/tests/default.test.ts @@ -1,5 +1,6 @@ +import { join } from 'path'; import type { RsbuildPlugin } from '@rsbuild/core'; -import { describe, expect, it } from 'vitest'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; describe('builder rspack', () => { @@ -17,7 +18,7 @@ describe('builder rspack', () => { }, ], }, - cwd: '', + cwd: join(__dirname, '..'), }); const { @@ -40,7 +41,7 @@ describe('builder rspack', () => { const rsbuild = await createBuilder({ bundlerType: 'rspack', config: {}, - cwd: '', + cwd: join(__dirname, '..'), }); const { @@ -67,7 +68,7 @@ describe('builder rspack', () => { }, }, }, - cwd: '', + cwd: join(__dirname, '..'), }); const { @@ -94,7 +95,7 @@ describe('builder rspack', () => { }, }, }, - cwd: '', + cwd: join(__dirname, '..'), }); const { diff --git a/packages/cli/builder/tests/environment.test.ts b/packages/cli/builder/tests/environment.test.ts index 8629b9c11334..041b406ca983 100644 --- a/packages/cli/builder/tests/environment.test.ts +++ b/packages/cli/builder/tests/environment.test.ts @@ -1,4 +1,5 @@ -import { describe, expect, it } from 'vitest'; +import { join } from 'path'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; describe('builder environment compat', () => { @@ -23,7 +24,7 @@ describe('builder environment compat', () => { }, }, }, - cwd: '', + cwd: join(__dirname, '..'), }); const { diff --git a/packages/cli/builder/tests/loaders/__snapshots__/rsc-client-loader.test.ts.snap b/packages/cli/builder/tests/loaders/__snapshots__/rsc-client-loader.test.ts.snap index 487d5002e51d..0aa83d24582f 100644 --- a/packages/cli/builder/tests/loaders/__snapshots__/rsc-client-loader.test.ts.snap +++ b/packages/cli/builder/tests/loaders/__snapshots__/rsc-client-loader.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`rscClientLoader > should not transform the input if it does not have \`use server\` directive 1`] = ` "export async function foo() { diff --git a/packages/cli/builder/tests/loaders/__snapshots__/rsc-server-loader.test.ts.snap b/packages/cli/builder/tests/loaders/__snapshots__/rsc-server-loader.test.ts.snap index e2aafacec268..04400b057849 100644 --- a/packages/cli/builder/tests/loaders/__snapshots__/rsc-server-loader.test.ts.snap +++ b/packages/cli/builder/tests/loaders/__snapshots__/rsc-server-loader.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`rscServerLoader > should handle inline actions correctly 1`] = ` "/* @modern-js-rsc-metadata diff --git a/packages/cli/builder/tests/loaders/__snapshots__/rsc-ssr-loader.test.ts.snap b/packages/cli/builder/tests/loaders/__snapshots__/rsc-ssr-loader.test.ts.snap index c60ed8e75b03..d9182d3e3e6d 100644 --- a/packages/cli/builder/tests/loaders/__snapshots__/rsc-ssr-loader.test.ts.snap +++ b/packages/cli/builder/tests/loaders/__snapshots__/rsc-ssr-loader.test.ts.snap @@ -1,4 +1,4 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Rstest Snapshot v1 exports[`rscSsrLoader > should not transform non server module 1`] = ` "'use client'; @@ -50,13 +50,13 @@ exports[`rscSsrLoader > should transform server module correctly 1`] = ` 'use server'; export const foo = () => { - throw new Error("Server actions must not be called during server-side rendering.") + throw new Error(\\"Server actions must not be called during server-side rendering.\\") } export const bar = () => { - throw new Error("Server actions must not be called during server-side rendering.") + throw new Error(\\"Server actions must not be called during server-side rendering.\\") } export const b = () => { - throw new Error("Server actions must not be called during server-side rendering.") + throw new Error(\\"Server actions must not be called during server-side rendering.\\") } -export default () => {throw new Error("Server actions must not be called during server-side rendering.")}" +export default () => {throw new Error(\\"Server actions must not be called during server-side rendering.\\")}" `; diff --git a/packages/cli/builder/tests/loaders/rsc-client-loader.test.ts b/packages/cli/builder/tests/loaders/rsc-client-loader.test.ts index 9e407b736327..0dfd13afe5f7 100644 --- a/packages/cli/builder/tests/loaders/rsc-client-loader.test.ts +++ b/packages/cli/builder/tests/loaders/rsc-client-loader.test.ts @@ -1,7 +1,7 @@ import path from 'path'; import type { Rspack } from '@rsbuild/core'; +import { type Mock, beforeEach, describe, expect, it, rs } from '@rstest/core'; import fs from 'fs/promises'; -import { type Mock, beforeEach, describe, expect, it, vi } from 'vitest'; import { type ServerReferencesMap, sharedData } from '../../src/rsc/common'; import rscClientLoader, { type ClientLoaderOptions, @@ -18,7 +18,7 @@ async function callLoader( const context: Partial> = { getOptions: () => options || {}, resourcePath, - cacheable: vi.fn(), + cacheable: rs.fn(), emitError, async: () => context.callback!, callback: (error, content) => { @@ -95,7 +95,7 @@ describe('rscClientLoader', () => { const resourcePath = path.resolve(__dirname, 'fixtures/server-actions.ts'); const serverReferencesMap: ServerReferencesMap = new Map(); - const emitError = vi.fn(); + const emitError = rs.fn(); const output = await callLoader(resourcePath, {}, emitError); diff --git a/packages/cli/builder/tests/loaders/rsc-server-loader.test.ts b/packages/cli/builder/tests/loaders/rsc-server-loader.test.ts index 03eae70cef9d..ed5de6ae5ba5 100644 --- a/packages/cli/builder/tests/loaders/rsc-server-loader.test.ts +++ b/packages/cli/builder/tests/loaders/rsc-server-loader.test.ts @@ -1,7 +1,7 @@ import path from 'node:path'; import type { Rspack } from '@rsbuild/core'; +import { beforeEach, describe, expect, it, rs } from '@rstest/core'; import fs from 'fs/promises'; -import { beforeEach, describe, expect, it, vi } from 'vitest'; import { MODERN_RSC_INFO, sharedData } from '../../src/rsc/common'; import rscServerLoader, { type RscServerLoaderOptions, @@ -19,7 +19,7 @@ async function callLoader( appDir: __dirname, }), resourcePath, - cacheable: vi.fn(), + cacheable: rs.fn(), _module: { buildInfo: buildInfo || {}, } as any, diff --git a/packages/cli/builder/tests/loaders/rsc-ssr-loader.test.ts b/packages/cli/builder/tests/loaders/rsc-ssr-loader.test.ts index 5265759653d5..2b4209c56c56 100644 --- a/packages/cli/builder/tests/loaders/rsc-ssr-loader.test.ts +++ b/packages/cli/builder/tests/loaders/rsc-ssr-loader.test.ts @@ -1,8 +1,8 @@ import path from 'path'; import url from 'url'; import type { Rspack } from '@rsbuild/core'; +import { describe, expect, it, rs } from '@rstest/core'; import fs from 'fs/promises'; -import { describe, expect, it, vi } from 'vitest'; import { MODERN_RSC_INFO } from '../../src/rsc/common'; import rscSsrLoader, { type RscSsrLoaderOptions, @@ -20,7 +20,7 @@ async function callLoader( const context: Partial> = { getOptions: () => ({}), resourcePath, - cacheable: vi.fn(), + cacheable: rs.fn(), _module: { buildInfo: buildInfo || {}, } as any, diff --git a/packages/cli/builder/tests/parseConfig.test.ts b/packages/cli/builder/tests/parseConfig.test.ts index b9f41c182008..00b9e4d4fa92 100644 --- a/packages/cli/builder/tests/parseConfig.test.ts +++ b/packages/cli/builder/tests/parseConfig.test.ts @@ -1,5 +1,5 @@ import type { OutputConfig } from '@rsbuild/core'; -import { afterAll, afterEach, describe, expect, test } from 'vitest'; +import { afterAll, afterEach, describe, expect, test } from '@rstest/core'; import { parseCommonConfig } from '../src/shared/parseCommonConfig'; import type { BuilderConfig } from '../src/types'; diff --git a/packages/cli/builder/tests/postcssLegacy.test.ts b/packages/cli/builder/tests/postcssLegacy.test.ts index 7debc28cc2a7..c8f098227293 100644 --- a/packages/cli/builder/tests/postcssLegacy.test.ts +++ b/packages/cli/builder/tests/postcssLegacy.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from 'vitest'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; import { matchRules, unwrapConfig } from './helper'; diff --git a/packages/cli/builder/tests/sourcemap.test.ts b/packages/cli/builder/tests/sourcemap.test.ts index 9b2887012f4a..abb3407600fa 100644 --- a/packages/cli/builder/tests/sourcemap.test.ts +++ b/packages/cli/builder/tests/sourcemap.test.ts @@ -1,4 +1,4 @@ -import { describe, expect, it } from 'vitest'; +import { describe, expect, it } from '@rstest/core'; import { createBuilder } from '../src'; import { unwrapConfig } from './helper'; diff --git a/packages/cli/builder/vitest.config.ts b/packages/cli/builder/vitest.config.ts deleted file mode 100644 index 3caf208784ba..000000000000 --- a/packages/cli/builder/vitest.config.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { withTestPreset } from '@scripts/vitest-config'; -import { defineConfig } from 'vitest/config'; - -const config = defineConfig({ - test: { - root: __dirname, - environment: 'node', - setupFiles: ['./tests/setup.ts'], - }, -}); - -export default withTestPreset(config); diff --git a/packages/cli/plugin-bff/tests/helper.ts b/packages/cli/plugin-bff/tests/helper.ts index 86d621724263..9eb1cc67c8a3 100644 --- a/packages/cli/plugin-bff/tests/helper.ts +++ b/packages/cli/plugin-bff/tests/helper.ts @@ -1,3 +1,3 @@ import { initSnapshotSerializer } from '@scripts/jest-config/utils'; -initSnapshotSerializer({ cwd: __dirname }); +initSnapshotSerializer({ root: __dirname }); diff --git a/packages/document/docs/en/community/contributing-guide.mdx b/packages/document/docs/en/community/contributing-guide.mdx index b6ef93a14aba..962face65c8c 100644 --- a/packages/document/docs/en/community/contributing-guide.mdx +++ b/packages/document/docs/en/community/contributing-guide.mdx @@ -125,7 +125,7 @@ pnpm run reset If you've fixed a bug or added code that should be tested, then add some tests. -You can add unit test cases in the `/tests` folder. The test syntax is based on [Jest](https://jestjs.io/) and [Vitest](https://vitest.dev/). +You can add unit test cases in the `/tests` folder. The test syntax is based on [Jest](https://jestjs.io/) and [Rstest](https://rstest.rs/). ### Run Unit Tests diff --git a/packages/document/docs/zh/community/contributing-guide.mdx b/packages/document/docs/zh/community/contributing-guide.mdx index 44cf8b4499d7..86048e226ece 100644 --- a/packages/document/docs/zh/community/contributing-guide.mdx +++ b/packages/document/docs/zh/community/contributing-guide.mdx @@ -124,7 +124,7 @@ pnpm run reset 如果你进行了 bugfix,或者添加了需要测试的代码,请添加一些测试代码。 -你可以在 `/tests` 文件夹中添加单元测试用例。测试语法基于 [Jest](https://jestjs.io/) 和 [Vitest](https://vitest.dev/)。 +你可以在 `/tests` 文件夹中添加单元测试用例。测试语法基于 [Jest](https://jestjs.io/) 和 [Rstest](https://rstest.rs/)。 ### 运行单元测试 diff --git a/packages/runtime/plugin-runtime/tests/router/nestedRoutes.test.ts b/packages/runtime/plugin-runtime/tests/router/nestedRoutes.test.ts index 89af0f0fb68a..0ed4f8af2adc 100644 --- a/packages/runtime/plugin-runtime/tests/router/nestedRoutes.test.ts +++ b/packages/runtime/plugin-runtime/tests/router/nestedRoutes.test.ts @@ -8,7 +8,7 @@ import { optimizeRoute, walk } from '../../src/router/cli/code/nestedRoutes'; const fixtures = path.join(__dirname, 'fixtures'); -initSnapshotSerializer({ cwd: path.resolve(__dirname, '../..') }); +initSnapshotSerializer({ root: path.resolve(__dirname, '../..') }); describe('nested routes', () => { describe('optimizeRoute', () => { diff --git a/packages/server/utils/tests/__snapshots__/babel.test.ts.snap b/packages/server/utils/tests/__snapshots__/babel.test.ts.snap index 480b395f2ae4..bd0b2e5ae8d9 100644 --- a/packages/server/utils/tests/__snapshots__/babel.test.ts.snap +++ b/packages/server/utils/tests/__snapshots__/babel.test.ts.snap @@ -31,7 +31,7 @@ exports[`babel resolveBabelConfig 1`] = ` { "alias": { "@/*": [ - "src/*", + "./src/*", ], }, "extensions": [ @@ -44,7 +44,7 @@ exports[`babel resolveBabelConfig 1`] = ` ".mjs", ], "resolvePath": [Function], - "root": "/tests/fixtures/", + "root": "/packages/server/utils/tests/fixtures/", }, ], "/node_modules//babel-plugin-transform-typescript-metadata/lib/plugin.js", diff --git a/packages/server/utils/tests/babel.test.ts b/packages/server/utils/tests/babel.test.ts index 50410a464e79..c3a60b024878 100644 --- a/packages/server/utils/tests/babel.test.ts +++ b/packages/server/utils/tests/babel.test.ts @@ -4,7 +4,7 @@ import { initSnapshotSerializer } from '@scripts/jest-config/utils'; import { compile, resolveBabelConfig } from '../src'; import { defaults, join } from './helpers'; -initSnapshotSerializer({ cwd: path.resolve(__dirname, '../') }); +initSnapshotSerializer({ workspace: path.resolve(__dirname, '../../../..') }); describe('babel', () => { jest.setTimeout(30000); diff --git a/packages/solutions/app-tools/tests/builder/__snapshots__/index.test.ts.snap b/packages/solutions/app-tools/tests/builder/__snapshots__/index.test.ts.snap index 67e586de2cde..bd899e7f7468 100644 --- a/packages/solutions/app-tools/tests/builder/__snapshots__/index.test.ts.snap +++ b/packages/solutions/app-tools/tests/builder/__snapshots__/index.test.ts.snap @@ -11,11 +11,11 @@ exports[`create builder Options test create builder environments config 1`] = ` "source": { "entry": { "main": [ - "src/index.ts", - "src/main.ts", + "./src/index.ts", + "./src/main.ts", ], "next": [ - "src/next.ts", + "./src/next.ts", ], }, }, @@ -35,11 +35,11 @@ exports[`create builder Options test create builder environments config 2`] = ` "source": { "entry": { "main": [ - "src/index.ts", - "src/main.ts", + "./src/index.ts", + "./src/main.ts", ], "next": [ - "src/next.ts", + "./src/next.ts", ], }, }, @@ -51,11 +51,11 @@ exports[`create builder Options test create builder environments config 2`] = ` "source": { "entry": { "main": [ - "src/index.ts", - "src/main.ts", + "./src/index.ts", + "./src/main.ts", ], "next": [ - "src/next.ts", + "./src/next.ts", ], }, }, @@ -83,11 +83,11 @@ exports[`create builder Options test create builder environments config 3`] = ` "source": { "entry": { "main": [ - "src/index.ts", - "src/main.ts", + "./src/index.ts", + "./src/main.ts", ], "next": [ - "src/next.ts", + "./src/next.ts", ], }, }, @@ -99,11 +99,11 @@ exports[`create builder Options test create builder environments config 3`] = ` "source": { "entry": { "main": [ - "src/index.ts", - "src/main.ts", + "./src/index.ts", + "./src/main.ts", ], "next": [ - "src/next.ts", + "./src/next.ts", ], }, }, diff --git a/packages/solutions/app-tools/tests/builder/index.test.ts b/packages/solutions/app-tools/tests/builder/index.test.ts index da3efc70f34c..66bd0fdd622e 100644 --- a/packages/solutions/app-tools/tests/builder/index.test.ts +++ b/packages/solutions/app-tools/tests/builder/index.test.ts @@ -3,7 +3,7 @@ import { initSnapshotSerializer } from '@scripts/jest-config/utils'; import { createBuilderProviderConfig } from '../../src/builder/generator/createBuilderProviderConfig'; import { getBuilderEnvironments } from '../../src/builder/generator/getBuilderEnvironments'; -initSnapshotSerializer({ cwd: path.resolve(__dirname, '../..') }); +initSnapshotSerializer({ root: path.resolve(__dirname, '../..') }); describe('create builder Options', () => { it('test create builder environments config', () => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 322503bd0225..c03e3d1f8919 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,6 +31,9 @@ importers: '@modern-js/tsconfig': specifier: workspace:* version: link:packages/tsconfig + '@rstest/core': + specifier: 0.6.6 + version: 0.6.6(jsdom@20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)) '@scripts/build': specifier: workspace:* version: link:scripts/build @@ -40,9 +43,6 @@ importers: '@types/react-dom': specifier: ^19.1.6 version: 19.1.6(@types/react@19.1.8) - '@vitest/ui': - specifier: ^3.2.4 - version: 3.2.4(vitest@3.0.5) check-dependency-version-consistency: specifier: 4.1.1 version: 4.1.1 @@ -64,9 +64,6 @@ importers: rimraf: specifier: ^6.1.2 version: 6.1.2 - vitest: - specifier: ^3.0.0 - version: 3.0.5(@types/debug@4.1.12)(@types/node@20.5.1)(@vitest/ui@3.2.4)(jsdom@20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) benchmark/bundle-diff: dependencies: @@ -168,9 +165,9 @@ importers: '@scripts/build': specifier: workspace:* version: link:../../../scripts/build - '@scripts/vitest-config': + '@scripts/rstest-config': specifier: workspace:* - version: link:../../../scripts/vitest-config + version: link:../../../scripts/rstest-config '@types/node': specifier: ^20 version: 20.8.8 @@ -200,7 +197,7 @@ importers: version: 1.6.0(@rsbuild/core@1.6.9) '@rsbuild/plugin-css-minimizer': specifier: 1.1.0 - version: 1.1.0(@rsbuild/core@1.6.9)(esbuild@0.25.5)(lightningcss@1.30.2)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)) + version: 1.1.0(@rsbuild/core@1.6.9)(esbuild@0.25.5)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)) '@rsbuild/plugin-less': specifier: 1.5.0 version: 1.5.0(@rsbuild/core@1.6.9) @@ -286,9 +283,9 @@ importers: '@scripts/build': specifier: workspace:* version: link:../../../scripts/build - '@scripts/vitest-config': + '@scripts/rstest-config': specifier: workspace:* - version: link:../../../scripts/vitest-config + version: link:../../../scripts/rstest-config '@types/html-minifier-terser': specifier: ^7.0.2 version: 7.0.2 @@ -2553,6 +2550,9 @@ importers: jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.8.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@20.8.8)(typescript@5.6.3)) + path-serializer: + specifier: 0.5.1 + version: 0.5.1 scripts/lint-package-json: dependencies: @@ -2867,6 +2867,27 @@ importers: specifier: ^5 version: 5.6.3 + scripts/rstest-config: + dependencies: + '@modern-js/tsconfig': + specifier: workspace:* + version: link:../../packages/tsconfig + '@types/lodash': + specifier: ^4.17.21 + version: 4.17.21 + '@types/node': + specifier: ^20 + version: 20.8.8 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + path-serializer: + specifier: 0.5.1 + version: 0.5.1 + typescript: + specifier: ^5 + version: 5.6.3 + scripts/update-codesmith: dependencies: '@manypkg/get-packages': @@ -2889,36 +2910,6 @@ importers: specifier: ^3.14.0 version: 3.14.0 - scripts/vitest-config: - dependencies: - '@modern-js/tsconfig': - specifier: workspace:* - version: link:../../packages/tsconfig - '@types/lodash': - specifier: ^4.17.21 - version: 4.17.21 - '@types/node': - specifier: ^20 - version: 20.8.8 - execa: - specifier: 5.1.1 - version: 5.1.1 - fs-extra: - specifier: ^10.1.0 - version: 10.1.0 - globby: - specifier: 11.1.0 - version: 11.1.0 - lodash: - specifier: ^4.17.21 - version: 4.17.21 - typescript: - specifier: ^5 - version: 5.6.3 - upath: - specifier: 2.0.1 - version: 2.0.1 - tests: devDependencies: '@modern-js/app-tools': @@ -6703,12 +6694,6 @@ packages: '@emotion/unitless@0.7.5': resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==} - '@esbuild/aix-ppc64@0.21.5': - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.25.5': resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} engines: {node: '>=18'} @@ -6727,12 +6712,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.21.5': - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.25.5': resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} engines: {node: '>=18'} @@ -6757,12 +6736,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.21.5': - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.25.5': resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} engines: {node: '>=18'} @@ -6781,12 +6754,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.21.5': - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.25.5': resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} engines: {node: '>=18'} @@ -6805,12 +6772,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.21.5': - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.25.5': resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} engines: {node: '>=18'} @@ -6829,12 +6790,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.21.5': - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.25.5': resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} engines: {node: '>=18'} @@ -6853,12 +6808,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.21.5': - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.25.5': resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} engines: {node: '>=18'} @@ -6877,12 +6826,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.21.5': - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.25.5': resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} engines: {node: '>=18'} @@ -6901,12 +6844,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.21.5': - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.25.5': resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} engines: {node: '>=18'} @@ -6925,12 +6862,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.21.5': - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.25.5': resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} engines: {node: '>=18'} @@ -6949,12 +6880,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.21.5': - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.25.5': resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} engines: {node: '>=18'} @@ -6979,12 +6904,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.21.5': - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.25.5': resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} engines: {node: '>=18'} @@ -7003,12 +6922,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.21.5': - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.25.5': resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} engines: {node: '>=18'} @@ -7027,12 +6940,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.21.5': - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.25.5': resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} engines: {node: '>=18'} @@ -7051,12 +6958,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.21.5': - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.25.5': resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} engines: {node: '>=18'} @@ -7075,12 +6976,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.21.5': - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.25.5': resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} engines: {node: '>=18'} @@ -7099,12 +6994,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.21.5': - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.25.5': resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} engines: {node: '>=18'} @@ -7129,12 +7018,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.21.5': - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.25.5': resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} engines: {node: '>=18'} @@ -7159,12 +7042,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.21.5': - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.25.5': resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} engines: {node: '>=18'} @@ -7183,12 +7060,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.21.5': - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.25.5': resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} engines: {node: '>=18'} @@ -7207,12 +7078,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.21.5': - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.25.5': resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} engines: {node: '>=18'} @@ -7231,12 +7096,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.21.5': - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.25.5': resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} engines: {node: '>=18'} @@ -7255,12 +7114,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.21.5': - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.25.5': resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} engines: {node: '>=18'} @@ -7967,6 +7820,9 @@ packages: '@module-federation/error-codes@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-h3+dS/2/Lpp+P+AxnhTVk2hwvx3R4CPewiF96G0GfR3fJT7gXs7A9As++2c+Zcqy0eejRBd08pcBBEO/tnCXxw==} + '@module-federation/error-codes@0.21.1': + resolution: {integrity: sha512-h1brnwR9AbwMu1P7ZoJJ9j2O2XWkuMh5p03WhXI1vNEdl3xJheSAvH8RjG8FoKRccVgMnUNDQ+vDVwevUBms/A==} + '@module-federation/error-codes@0.21.4': resolution: {integrity: sha512-ClpL5MereWNXh+EgDjz7w4RrC1JlisQTvXDa1gLxpviHafzNDfdViVmuhi9xXVuj+EYo8KU70Y999KHhk9424Q==} @@ -8039,12 +7895,18 @@ packages: '@module-federation/runtime-core@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-MfWQE41lutPqbcY9pPk2CSLMU2mT/kXlGNQirm4Y6QhKB/0KRWQ+7FD9yCHIeIqM0fbLJVtA/RDihw/kS2qRyQ==} + '@module-federation/runtime-core@0.21.1': + resolution: {integrity: sha512-COob5bepqDc9mKjTziXbQd4WQMCTzhc0cuXyraZhYddYcjcepzZrMpDIXG1x5p+gdg5p1vsGNWt/ZcU8cFh/pg==} + '@module-federation/runtime-core@0.21.4': resolution: {integrity: sha512-SGpmoOLGNxZofpTOk6Lxb2ewaoz5wMi93AFYuuJB04HTVcngEK+baNeUZ2D/xewrqNIJoMY6f5maUjVfIIBPUA==} '@module-federation/runtime-tools@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-RTD9IAV1N9+LmjLzm2RtyrPfFeix0FuKRmJVPvAQGllfjLImprqDg6Dq44Kk0x1FMG0cvglkZrG2lugBu7tiGQ==} + '@module-federation/runtime-tools@0.21.1': + resolution: {integrity: sha512-uQmammw3Osg8370yiRqZwKo7eA5zkyml9pAX9x4oS9QAkEBvQpDogERlF9f7gAgcP2P3v+xLg3/bCdquD0gt8A==} + '@module-federation/runtime-tools@0.21.4': resolution: {integrity: sha512-RzFKaL0DIjSmkn76KZRfzfB6dD07cvID84950jlNQgdyoQFUGkqD80L6rIpVCJTY/R7LzR3aQjHnoqmq4JPo3w==} @@ -8054,6 +7916,9 @@ packages: '@module-federation/runtime@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-LVoGjJQyN+UIoc7hdrKNSzJEpQ9xEFjYytnkKiXUAPrIwXw8zLNkktKJVyJI0hb3aO1Gy0/Su1L6qTWZ4pq5kw==} + '@module-federation/runtime@0.21.1': + resolution: {integrity: sha512-sfBrP0gEPwXPEiREVKVd0IjEWXtr3G/i7EUZVWTt4D491nNpswog/kuKFatGmhcBb+9uD5v9rxFgmIbgL9njnQ==} + '@module-federation/runtime@0.21.4': resolution: {integrity: sha512-wgvGqryurVEvkicufJmTG0ZehynCeNLklv8kIk5BLIsWYSddZAE+xe4xov1kgH5fIJQAoQNkRauFFjVNlHoAkA==} @@ -8063,6 +7928,9 @@ packages: '@module-federation/sdk@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-Q4ZPCuxncjY6OFF40+GxWJ0bHwwLhO2JFx7VveCgPogsaL99DJmr/AvTxTCP3ooWSe3hrFEGdG07w40l0ZLh7A==} + '@module-federation/sdk@0.21.1': + resolution: {integrity: sha512-1cHMrmCCao3NMFM4BkA0GDt4rbYbyneHct5E4z68cu5UBUnI3L/UboP5VNM8lkYMO1nCR8M0FcLkLhK35Nt48A==} + '@module-federation/sdk@0.21.4': resolution: {integrity: sha512-tzvhOh/oAfX++6zCDDxuvioHY4Jurf8vcfoCbKFxusjmyKr32GPbwFDazUP+OPhYCc3dvaa9oWU6X/qpUBLfJw==} @@ -8075,6 +7943,9 @@ packages: '@module-federation/webpack-bundler-runtime@0.0.0-feat-modern-3-0-20251120074204': resolution: {integrity: sha512-ADgapHbMfyGnfM8DuFJjgGtGu5xEXIiGXz+igel0cMuHcSwzvLL4WW0Z3N99LvmJjObt4Lebpgidw8jyjmwxmg==} + '@module-federation/webpack-bundler-runtime@0.21.1': + resolution: {integrity: sha512-yyXX6ugTV07pMxMzAHt6/JDwblS3f1NDyUI7l44CyYgXpl2ItEEUs5aj5h/5xU1c9Px7M//KkY3qW+InW4tR/A==} + '@module-federation/webpack-bundler-runtime@0.21.4': resolution: {integrity: sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA==} @@ -8266,9 +8137,6 @@ packages: engines: {node: '>=18'} hasBin: true - '@polka/url@1.0.0-next.28': - resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} - '@puppeteer/browsers@2.10.13': resolution: {integrity: sha512-a9Ruw3j3qlnB5a/zHRTkruppynxqaeE4H9WNj5eYGRWqw0ZauZ23f4W2ARf3hghF5doozyD+CRtt7XSYuYRI/Q==} engines: {node: '>=18'} @@ -8381,101 +8249,6 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.34.8': - resolution: {integrity: sha512-q217OSE8DTp8AFHuNHXo0Y86e1wtlfVrXiAlwkIvGRQv9zbc6mE3sjIVfwI8sYUyNxwOg0j/Vm1RKM04JcWLJw==} - cpu: [arm] - os: [android] - - '@rollup/rollup-android-arm64@4.34.8': - resolution: {integrity: sha512-Gigjz7mNWaOL9wCggvoK3jEIUUbGul656opstjaUSGC3eT0BM7PofdAJaBfPFWWkXNVAXbaQtC99OCg4sJv70Q==} - cpu: [arm64] - os: [android] - - '@rollup/rollup-darwin-arm64@4.34.8': - resolution: {integrity: sha512-02rVdZ5tgdUNRxIUrFdcMBZQoaPMrxtwSb+/hOfBdqkatYHR3lZ2A2EGyHq2sGOd0Owk80oV3snlDASC24He3Q==} - cpu: [arm64] - os: [darwin] - - '@rollup/rollup-darwin-x64@4.34.8': - resolution: {integrity: sha512-qIP/elwR/tq/dYRx3lgwK31jkZvMiD6qUtOycLhTzCvrjbZ3LjQnEM9rNhSGpbLXVJYQ3rq39A6Re0h9tU2ynw==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-freebsd-arm64@4.34.8': - resolution: {integrity: sha512-IQNVXL9iY6NniYbTaOKdrlVP3XIqazBgJOVkddzJlqnCpRi/yAeSOa8PLcECFSQochzqApIOE1GHNu3pCz+BDA==} - cpu: [arm64] - os: [freebsd] - - '@rollup/rollup-freebsd-x64@4.34.8': - resolution: {integrity: sha512-TYXcHghgnCqYFiE3FT5QwXtOZqDj5GmaFNTNt3jNC+vh22dc/ukG2cG+pi75QO4kACohZzidsq7yKTKwq/Jq7Q==} - cpu: [x64] - os: [freebsd] - - '@rollup/rollup-linux-arm-gnueabihf@4.34.8': - resolution: {integrity: sha512-A4iphFGNkWRd+5m3VIGuqHnG3MVnqKe7Al57u9mwgbyZ2/xF9Jio72MaY7xxh+Y87VAHmGQr73qoKL9HPbXj1g==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm-musleabihf@4.34.8': - resolution: {integrity: sha512-S0lqKLfTm5u+QTxlFiAnb2J/2dgQqRy/XvziPtDd1rKZFXHTyYLoVL58M/XFwDI01AQCDIevGLbQrMAtdyanpA==} - cpu: [arm] - os: [linux] - - '@rollup/rollup-linux-arm64-gnu@4.34.8': - resolution: {integrity: sha512-jpz9YOuPiSkL4G4pqKrus0pn9aYwpImGkosRKwNi+sJSkz+WU3anZe6hi73StLOQdfXYXC7hUfsQlTnjMd3s1A==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-arm64-musl@4.34.8': - resolution: {integrity: sha512-KdSfaROOUJXgTVxJNAZ3KwkRc5nggDk+06P6lgi1HLv1hskgvxHUKZ4xtwHkVYJ1Rep4GNo+uEfycCRRxht7+Q==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-loongarch64-gnu@4.34.8': - resolution: {integrity: sha512-NyF4gcxwkMFRjgXBM6g2lkT58OWztZvw5KkV2K0qqSnUEqCVcqdh2jN4gQrTn/YUpAcNKyFHfoOZEer9nwo6uQ==} - cpu: [loong64] - os: [linux] - - '@rollup/rollup-linux-powerpc64le-gnu@4.34.8': - resolution: {integrity: sha512-LMJc999GkhGvktHU85zNTDImZVUCJ1z/MbAJTnviiWmmjyckP5aQsHtcujMjpNdMZPT2rQEDBlJfubhs3jsMfw==} - cpu: [ppc64] - os: [linux] - - '@rollup/rollup-linux-riscv64-gnu@4.34.8': - resolution: {integrity: sha512-xAQCAHPj8nJq1PI3z8CIZzXuXCstquz7cIOL73HHdXiRcKk8Ywwqtx2wrIy23EcTn4aZ2fLJNBB8d0tQENPCmw==} - cpu: [riscv64] - os: [linux] - - '@rollup/rollup-linux-s390x-gnu@4.34.8': - resolution: {integrity: sha512-DdePVk1NDEuc3fOe3dPPTb+rjMtuFw89gw6gVWxQFAuEqqSdDKnrwzZHrUYdac7A7dXl9Q2Vflxpme15gUWQFA==} - cpu: [s390x] - os: [linux] - - '@rollup/rollup-linux-x64-gnu@4.34.8': - resolution: {integrity: sha512-8y7ED8gjxITUltTUEJLQdgpbPh1sUQ0kMTmufRF/Ns5tI9TNMNlhWtmPKKHCU0SilX+3MJkZ0zERYYGIVBYHIA==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-linux-x64-musl@4.34.8': - resolution: {integrity: sha512-SCXcP0ZpGFIe7Ge+McxY5zKxiEI5ra+GT3QRxL0pMMtxPfpyLAKleZODi1zdRHkz5/BhueUrYtYVgubqe9JBNQ==} - cpu: [x64] - os: [linux] - - '@rollup/rollup-win32-arm64-msvc@4.34.8': - resolution: {integrity: sha512-YHYsgzZgFJzTRbth4h7Or0m5O74Yda+hLin0irAIobkLQFRQd1qWmnoVfwmKm9TXIZVAD0nZ+GEb2ICicLyCnQ==} - cpu: [arm64] - os: [win32] - - '@rollup/rollup-win32-ia32-msvc@4.34.8': - resolution: {integrity: sha512-r3NRQrXkHr4uWy5TOjTpTYojR9XmF0j/RYgKCef+Ag46FWUTltm5ziticv8LdNsDMehjJ543x/+TJAek/xBA2w==} - cpu: [ia32] - os: [win32] - - '@rollup/rollup-win32-x64-msvc@4.34.8': - resolution: {integrity: sha512-U0FaE5O1BCpZSeE6gBl3c5ObhePQSfk9vDRToMmTkbhCOgW4jqvtS5LGyQ76L1fH8sM0keRp4uDTsbjiUyjk0g==} - cpu: [x64] - os: [win32] - '@rsbuild-image/core@0.0.1-next.16': resolution: {integrity: sha512-CA788hY+ZKOMdfdGr1hamyBcS6BBZmq7aBk/bTv8OKnL6iZ3Lyw3TBBvBGG4SQtm86+0djpK3fef3oQNOCcsXQ==} peerDependencies: @@ -8508,6 +8281,11 @@ packages: engines: {node: '>=16.7.0'} hasBin: true + '@rsbuild/core@1.6.0-beta.1': + resolution: {integrity: sha512-UjQnvXDW9m/hS4DP66ubGIMVjK2PzYx8tzgiinrO0kjNCr9i8KWuJSJGUWyczFMpSsXxp20LnuTxtx7kiGiYdA==} + engines: {node: '>=18.12.0'} + hasBin: true + '@rsbuild/core@1.6.9': resolution: {integrity: sha512-wf41bbFIzqQsGkrDal2eVC4cxN6II1k4bUo1g7OFuvWeEOJzjoeK4R5xxKM9g5hRjbGAJs6OiQaGpASvUnDrsw==} engines: {node: '>=18.12.0'} @@ -8667,6 +8445,11 @@ packages: cpu: [arm64] os: [darwin] + '@rspack/binding-darwin-arm64@1.6.0-beta.1': + resolution: {integrity: sha512-RXQ97iVXgvQAb/cq265z/txdHOOJ6fQQRBfnn0IfMNk7gT4W2rvsLrOqQpwtMKxYV4N/mfWnycfAVa0OOf22Gg==} + cpu: [arm64] + os: [darwin] + '@rspack/binding-darwin-arm64@1.6.5': resolution: {integrity: sha512-DaAJTlaenqZIqFqIYcitn0SzjJ7WpC9234JpiSDZdRyXii9qJJiToVwxSPY/CmkrP0201+aC4pzN4tI9T0Ummw==} cpu: [arm64] @@ -8677,6 +8460,11 @@ packages: cpu: [x64] os: [darwin] + '@rspack/binding-darwin-x64@1.6.0-beta.1': + resolution: {integrity: sha512-Ulb7Jyyvuf28BwPXZKSbglaSK/19b32ItWT+pgswhbFsnfhzAQQd7Jo7TUEvHNHAdVDiES8VFlrnOhOSnwEOLg==} + cpu: [x64] + os: [darwin] + '@rspack/binding-darwin-x64@1.6.5': resolution: {integrity: sha512-fPVfp7W/GMbHayb5hbefiMI30JxlsqPexOItHGtufHmTCrNne1aHmApspyUZIUUxG36oDRHuGPnfh+IQbHR6+g==} cpu: [x64] @@ -8687,6 +8475,11 @@ packages: cpu: [arm64] os: [linux] + '@rspack/binding-linux-arm64-gnu@1.6.0-beta.1': + resolution: {integrity: sha512-UyUoh5RXHTWCktqPVnqoc5rwlWyLkWqGu6ga+iyJHDxdxlrHFfwJnTSnCd4y8cRadf7CrmjHElxE61GU3WCYhw==} + cpu: [arm64] + os: [linux] + '@rspack/binding-linux-arm64-gnu@1.6.5': resolution: {integrity: sha512-K68YDoV2e4s+nlrKZxgF0HehiiRwOAGgZFUwJNRMZ7MUrTGMNlPTJlM+bNdaCjDb6GFxBVFcNwIa1sU+0tF1zg==} cpu: [arm64] @@ -8697,6 +8490,11 @@ packages: cpu: [arm64] os: [linux] + '@rspack/binding-linux-arm64-musl@1.6.0-beta.1': + resolution: {integrity: sha512-JAXVKHQieN4Ruvs7MstvsPUtRBSAROqJ0abCh4rXdV+FzncKp/ZkdfjQploDhBWtWfU8rPvIjaxeZcPfHMI5/A==} + cpu: [arm64] + os: [linux] + '@rspack/binding-linux-arm64-musl@1.6.5': resolution: {integrity: sha512-JPtxFBOq7RRmBIwpdGIStf8iyCILehDsjQtEB0Kkhtm7TsAkVGwtC41GLcNuPxcQBKqNDmD8cy3yLYhXadH2CQ==} cpu: [arm64] @@ -8707,6 +8505,11 @@ packages: cpu: [x64] os: [linux] + '@rspack/binding-linux-x64-gnu@1.6.0-beta.1': + resolution: {integrity: sha512-LqAos71CJS5/V4knX9T7T68oGz0XPRZ2IJmI3jEByRlNcyZdxYeQ7Dw09JO9Y5Xj0T+0cudOeL2MxHcD3gTF/w==} + cpu: [x64] + os: [linux] + '@rspack/binding-linux-x64-gnu@1.6.5': resolution: {integrity: sha512-oh4ZNo2HtizZ/E6UK3BEONu20h8VVBw9GAXuWmo1u22cJSihzg+WfRNCMjRDil82LqSsyAgBwnU+dEjEYGKyAA==} cpu: [x64] @@ -8717,11 +8520,20 @@ packages: cpu: [x64] os: [linux] + '@rspack/binding-linux-x64-musl@1.6.0-beta.1': + resolution: {integrity: sha512-E4dRMzIHYaoYkgmDTFLrgnGtdspbAuVbLfaPF9AWW5YkQn52obGAgbbNb1wi1JJ5f29nTBoLauYCucEO5IGFvA==} + cpu: [x64] + os: [linux] + '@rspack/binding-linux-x64-musl@1.6.5': resolution: {integrity: sha512-8Xebp5bvPJqjifpkFEAX5nUvoU2JvbMU3gwAkEovRRuvooCXnVT2tqkUBjkR3AhivAGgAxAr9hRzUUz/6QWt3Q==} cpu: [x64] os: [linux] + '@rspack/binding-wasm32-wasi@1.6.0-beta.1': + resolution: {integrity: sha512-PaKEjXOkYprSFlgdgVm/P3pv2E8nAQx9WSGgPmMVIAtxo3Cyz0wwFf0f1Bp9wCw0KkIWgi+9lz8oXNkgKZilug==} + cpu: [wasm32] + '@rspack/binding-wasm32-wasi@1.6.5': resolution: {integrity: sha512-oINZNqzTxM+9dSUOjAORodHXYoJYzXvpaHI2U6ecEmoWaBCs+x3V3Po8DhpNFBwotB+jGlcoVhEHjpg5uaO6pw==} cpu: [wasm32] @@ -8731,6 +8543,11 @@ packages: cpu: [arm64] os: [win32] + '@rspack/binding-win32-arm64-msvc@1.6.0-beta.1': + resolution: {integrity: sha512-HWz9Qxrjf3TKLCwiFPJaqw+STvEsBvFYZvBXZ8umIZXqtdfgQP5d91V8JRG4Gg1J6xnGC/KhZexxBuR/y64aBA==} + cpu: [arm64] + os: [win32] + '@rspack/binding-win32-arm64-msvc@1.6.5': resolution: {integrity: sha512-UUmep2ayuZxWPdrzkrzAFxVgYUWTB82pa9bkAGyeDO9SNkz8vTpdtbDaTvAzjFb8Pn+ErktDEDBKT57FLjxwxQ==} cpu: [arm64] @@ -8741,6 +8558,11 @@ packages: cpu: [ia32] os: [win32] + '@rspack/binding-win32-ia32-msvc@1.6.0-beta.1': + resolution: {integrity: sha512-alAZHRuyPzCH3rJpEC9EBE60EZPnQjzltZ6HN8lsCidACMFTzaLBvuzZyYQah+Zm58O22ok2Eon4BpP1Coizgg==} + cpu: [ia32] + os: [win32] + '@rspack/binding-win32-ia32-msvc@1.6.5': resolution: {integrity: sha512-7nx+mMimpmCMstcW7nsyToXy5TK7N+YGPu2W/oioX7qv9ZCuJGTddjzLS84wN8DVrNIirg4mcxpBsmOQMZeHQA==} cpu: [ia32] @@ -8751,6 +8573,11 @@ packages: cpu: [x64] os: [win32] + '@rspack/binding-win32-x64-msvc@1.6.0-beta.1': + resolution: {integrity: sha512-/WBzhed0Cu0o9XQ9caGgWwzyNnnPKlENlExa2aGbRCbB14/+CwfhCyETyKlc/ID+dtlV/eHKTC9cckUNI8NpTQ==} + cpu: [x64] + os: [win32] + '@rspack/binding-win32-x64-msvc@1.6.5': resolution: {integrity: sha512-pzO7rYFu6f6stgSccolZHiXGTTwKrIGHHNV1ALY1xPRmQEdbHcbMwadeaG99JL2lRLve9iNI+Z9Pr3oDVRN46g==} cpu: [x64] @@ -8759,6 +8586,9 @@ packages: '@rspack/binding@1.0.14': resolution: {integrity: sha512-0wWqFvr9hkF4LgNPgWfkTU0hhkZAMvOytoCs2p+wDX1Up1E/SgJ1U1JAsCxsl1XtUKm7mRvdWHzJmHbza3y89Q==} + '@rspack/binding@1.6.0-beta.1': + resolution: {integrity: sha512-r3L60ekkDLM5qoRjCMrqsgwU9SQ5e8oA/Omltu/FEEUspIVHawPvAqNZvAXnGB+FoNxM8YgdRRh12PAwXJww0A==} + '@rspack/binding@1.6.5': resolution: {integrity: sha512-FzYsr5vdjaVQIlDTxZFlISOQGxl/4grpF2BeiNy60Fpw9eeADeXk55DVacbXPqpiz7Doj6cyhEyMszQOvihrqQ==} @@ -8771,6 +8601,15 @@ packages: '@swc/helpers': optional: true + '@rspack/core@1.6.0-beta.1': + resolution: {integrity: sha512-2ff8XWonPPHyQ6mEWogMspg+Sul3lXZUfNQVrbYSjfNpi8CeDV0/ZtRbHHbAXiy6pz5fvBFL6X+i/ATckjTYBw==} + engines: {node: '>=18.12.0'} + peerDependencies: + '@swc/helpers': '>=0.5.1' + peerDependenciesMeta: + '@swc/helpers': + optional: true + '@rspack/core@1.6.5': resolution: {integrity: sha512-AqaOMA6MTNhqMYYwrhvPA+2uS662SkAi8Rb7B/IFOzh/Z5ooyczL4lUX+qyhAO3ymn50iwM4jikQCf9XfBiaQA==} engines: {node: '>=18.12.0'} @@ -8866,6 +8705,19 @@ packages: '@rspress/shared@2.0.0-rc.0': resolution: {integrity: sha512-+Zwl+ycVwvwYg9eMTtoI/sst0Q/fJZS2oW+mEwj0La9hWHFutPcBHq0+zHHmi9eV7RHXLUo2lySfnQ14PTUPSw==} + '@rstest/core@0.6.6': + resolution: {integrity: sha512-dY7V+E1woLXxMF20lH6zq+aDViOEJ/0TfB6tfbwamLcfpVrYGK8aYLYe+Te0k4RsqR3Jhmwsd++JKx2fvrex4w==} + engines: {node: '>=18.12.0'} + hasBin: true + peerDependencies: + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + happy-dom: + optional: true + jsdom: + optional: true + '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} @@ -9263,6 +9115,9 @@ packages: '@types/cacheable-request@6.0.3': resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==} + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + '@types/cloneable-readable@2.0.3': resolution: {integrity: sha512-+Ihof4L4iu9k4WTzYbJSkzUxt6f1wzXn6u48fZYxgST+BsC9bBHTOJ59Buy1/4sC9j7ZWF7bxDf/n/mrtk/nzw==} @@ -9392,6 +9247,9 @@ packages: '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/eslint-scope@3.7.7': resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -9404,9 +9262,6 @@ packages: '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - '@types/estree@1.0.6': - resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} @@ -9764,49 +9619,6 @@ packages: engines: {node: '>=16'} hasBin: true - '@vitest/expect@3.0.5': - resolution: {integrity: sha512-nNIOqupgZ4v5jWuQx2DSlHLEs7Q4Oh/7AYwNyE+k0UQzG7tSmjPXShUikn1mpNGzYEN2jJbTvLejwShMitovBA==} - - '@vitest/mocker@3.0.5': - resolution: {integrity: sha512-CLPNBFBIE7x6aEGbIjaQAX03ZZlBMaWwAjBdMkIf/cAn6xzLTiM3zYqO/WAbieEjsAZir6tO71mzeHZoodThvw==} - peerDependencies: - msw: ^2.4.9 - vite: ^5.0.0 || ^6.0.0 - peerDependenciesMeta: - msw: - optional: true - vite: - optional: true - - '@vitest/pretty-format@3.0.5': - resolution: {integrity: sha512-CjUtdmpOcm4RVtB+up8r2vVDLR16Mgm/bYdkGFe3Yj/scRfCpbSi2W/BDSDcFK7ohw8UXvjMbOp9H4fByd/cOA==} - - '@vitest/pretty-format@3.0.8': - resolution: {integrity: sha512-BNqwbEyitFhzYMYHUVbIvepOyeQOSFA/NeJMIP9enMntkkxLgOcgABH6fjyXG85ipTgvero6noreavGIqfJcIg==} - - '@vitest/pretty-format@3.2.4': - resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} - - '@vitest/runner@3.0.5': - resolution: {integrity: sha512-BAiZFityFexZQi2yN4OX3OkJC6scwRo8EhRB0Z5HIGGgd2q+Nq29LgHU/+ovCtd0fOfXj5ZI6pwdlUmC5bpi8A==} - - '@vitest/snapshot@3.0.5': - resolution: {integrity: sha512-GJPZYcd7v8QNUJ7vRvLDmRwl+a1fGg4T/54lZXe+UOGy47F9yUfE18hRCtXL5aHN/AONu29NGzIXSVFh9K0feA==} - - '@vitest/spy@3.0.5': - resolution: {integrity: sha512-5fOzHj0WbUNqPK6blI/8VzZdkBlQLnT25knX0r4dbZI9qoZDf3qAdjoMmDcLG5A83W6oUUFJgUd0EYBc2P5xqg==} - - '@vitest/ui@3.2.4': - resolution: {integrity: sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==} - peerDependencies: - vitest: 3.2.4 - - '@vitest/utils@3.0.5': - resolution: {integrity: sha512-N9AX0NUoUtVwKwy21JtwzaqR5L5R5A99GAbrHfCCXK1lp593i/3AZAXhSP43wRQuxYsflrdzEfXZFo1reR1Nkg==} - - '@vitest/utils@3.2.4': - resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} - '@vue/compiler-core@3.5.24': resolution: {integrity: sha512-eDl5H57AOpNakGNAkFDH+y7kTqrQpJkZFXhWZQGyx/5Wh7B1uQYvcWkvZi11BDhscPgj8N7XV3oRwiPnx1Vrig==} @@ -10505,10 +10317,6 @@ packages: resolution: {integrity: sha512-Baz3aNe2gd2LP2qk5U+sDk/m4oSuwSDcBfayTCTBoWpfIGO5XFxPmjILQII4NGiZjD6DoDI6kf7gKaxkf7s3VQ==} engines: {node: '>=0.10.0'} - chai@5.2.0: - resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==} - engines: {node: '>=12'} - chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -10552,10 +10360,6 @@ packages: engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true - check-error@2.1.1: - resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} - engines: {node: '>= 16'} - chevrotain-allstar@0.3.1: resolution: {integrity: sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw==} peerDependencies: @@ -11383,10 +11187,6 @@ packages: resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} engines: {node: '>=6'} - deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - deep-equal@1.0.1: resolution: {integrity: sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==} @@ -11891,11 +11691,6 @@ packages: engines: {node: '>=12'} hasBin: true - esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - esbuild@0.25.5: resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} engines: {node: '>=18'} @@ -12167,10 +11962,6 @@ packages: resolution: {integrity: sha512-fgxsbOD+HqwOCMitYqEDzRoJM2fxKbCKPYfUoukK+qdZm/nC+cTOI74Au2MfmMZmF/5CgQGO4+1Ywq2GgD8zCQ==} engines: {node: '>=18'} - expect-type@1.1.0: - resolution: {integrity: sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==} - engines: {node: '>=12.0.0'} - expect@29.7.0: resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -12253,14 +12044,6 @@ packages: fd-slicer@1.1.0: resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} - fdir@6.4.4: - resolution: {integrity: sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -12282,9 +12065,6 @@ packages: resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} engines: {node: ^12.20 || >= 14.13} - fflate@0.8.2: - resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} - figures@2.0.0: resolution: {integrity: sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==} engines: {node: '>=4'} @@ -13982,12 +13762,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@3.1.3: - resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==} - - loupe@3.2.0: - resolution: {integrity: sha512-2NCfZcT5VGVNX9mSZIxLRkEAegDGBpuQZBy13desuHeVORmBDyAET4TkJr4SjqQy3A8JDofMN6LpkK8Xcm/dlw==} - lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} @@ -14405,10 +14179,6 @@ packages: resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} engines: {node: '>=10'} - mrmime@2.0.1: - resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==} - engines: {node: '>=10'} - ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} @@ -14858,6 +14628,9 @@ packages: resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} engines: {node: 20 || >=22} + path-serializer@0.5.1: + resolution: {integrity: sha512-bMTznw/TiZbmxlPQEV1pFatJFQcBKt3i9glDcPqygSx5xGrcM4MTCSjY+3SgW9Y628zfRmuJ1uAc/t/A3Tw0QA==} + path-to-regexp@0.1.12: resolution: {integrity: sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==} @@ -14874,10 +14647,6 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - pathval@2.0.0: - resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} - engines: {node: '>= 14.16'} - peberminta@0.9.0: resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==} @@ -16195,11 +15964,6 @@ packages: engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true - rollup@4.34.8: - resolution: {integrity: sha512-489gTVMzAYdiZHFVA/ig/iYFllCcWFHMvUHI1rpFmkoUtRlQxqh6/yiNqnYibjMZ2b/+FUQwldG+aLsEt6bglQ==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - roughjs@4.6.6: resolution: {integrity: sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==} @@ -16546,9 +16310,6 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -16563,10 +16324,6 @@ packages: simple-swizzle@0.2.2: resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} - sirv@3.0.1: - resolution: {integrity: sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==} - engines: {node: '>=18'} - sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} @@ -16682,9 +16439,6 @@ packages: resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} engines: {node: '>=10'} - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - stackframe@1.3.4: resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==} @@ -17031,39 +16785,17 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - - tinyexec@0.3.2: - resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - tinyexec@1.0.1: resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} - tinyglobby@0.2.14: - resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} - tinypool@1.0.2: - resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} - engines: {node: ^18.0.0 || >=20.0.0} - tinypool@1.1.1: resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} engines: {node: ^18.0.0 || >=20.0.0} - tinyrainbow@2.0.0: - resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} - engines: {node: '>=14.0.0'} - - tinyspy@3.0.2: - resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} - engines: {node: '>=14.0.0'} - tmp@0.0.33: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} @@ -17089,10 +16821,6 @@ packages: toposort@2.0.2: resolution: {integrity: sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==} - totalist@3.0.1: - resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} - engines: {node: '>=6'} - tough-cookie@4.1.2: resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==} engines: {node: '>=6'} @@ -17536,85 +17264,21 @@ packages: validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} - varint@6.0.0: - resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} - - vary@1.1.2: - resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} - engines: {node: '>= 0.8'} - - vfile-location@5.0.3: - resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} - - vfile-message@4.0.2: - resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} - - vfile@6.0.3: - resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - - vite-node@3.0.5: - resolution: {integrity: sha512-02JEJl7SbtwSDJdYS537nU6l+ktdvcREfLksk/NDAqtdKWGqHl+joXzEubHROmS3E6pip+Xgu2tFezMu75jH7A==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} - hasBin: true - - vite@5.4.14: - resolution: {integrity: sha512-EK5cY7Q1D8JNhSaPKVK4pwBFvaTmZxEnoKXLG/U9gmdDcihQGNzFlgIvaxezFR4glP1LsuiedwMBqCXH3wZccA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - - vitest@3.0.5: - resolution: {integrity: sha512-4dof+HvqONw9bvsYxtkfUp2uHsTN9bV2CZIi1pWgoFpL1Lld8LA1ka9q/ONSsoScAKG7NVGf2stJTI7XRkXb2Q==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/debug': ^4.1.12 - '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - '@vitest/browser': 3.0.5 - '@vitest/ui': 3.0.5 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/debug': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true + varint@6.0.0: + resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + + vfile-location@5.0.3: + resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} + + vfile-message@4.0.2: + resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} void-elements@3.1.0: resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} @@ -17761,11 +17425,6 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - wicg-inert@3.1.2: resolution: {integrity: sha512-Ba9tGNYxXwaqKEi9sJJvPMKuo063umUPsHN0JJsjrs2j8KDSzkWLMZGZ+MH1Jf1Fq4OWZ5HsESJID6nRza2ang==} @@ -19585,9 +19244,6 @@ snapshots: '@emotion/unitless@0.7.5': {} - '@esbuild/aix-ppc64@0.21.5': - optional: true - '@esbuild/aix-ppc64@0.25.5': optional: true @@ -19597,9 +19253,6 @@ snapshots: '@esbuild/android-arm64@0.19.2': optional: true - '@esbuild/android-arm64@0.21.5': - optional: true - '@esbuild/android-arm64@0.25.5': optional: true @@ -19612,9 +19265,6 @@ snapshots: '@esbuild/android-arm@0.19.2': optional: true - '@esbuild/android-arm@0.21.5': - optional: true - '@esbuild/android-arm@0.25.5': optional: true @@ -19624,9 +19274,6 @@ snapshots: '@esbuild/android-x64@0.19.2': optional: true - '@esbuild/android-x64@0.21.5': - optional: true - '@esbuild/android-x64@0.25.5': optional: true @@ -19636,9 +19283,6 @@ snapshots: '@esbuild/darwin-arm64@0.19.2': optional: true - '@esbuild/darwin-arm64@0.21.5': - optional: true - '@esbuild/darwin-arm64@0.25.5': optional: true @@ -19648,9 +19292,6 @@ snapshots: '@esbuild/darwin-x64@0.19.2': optional: true - '@esbuild/darwin-x64@0.21.5': - optional: true - '@esbuild/darwin-x64@0.25.5': optional: true @@ -19660,9 +19301,6 @@ snapshots: '@esbuild/freebsd-arm64@0.19.2': optional: true - '@esbuild/freebsd-arm64@0.21.5': - optional: true - '@esbuild/freebsd-arm64@0.25.5': optional: true @@ -19672,9 +19310,6 @@ snapshots: '@esbuild/freebsd-x64@0.19.2': optional: true - '@esbuild/freebsd-x64@0.21.5': - optional: true - '@esbuild/freebsd-x64@0.25.5': optional: true @@ -19684,9 +19319,6 @@ snapshots: '@esbuild/linux-arm64@0.19.2': optional: true - '@esbuild/linux-arm64@0.21.5': - optional: true - '@esbuild/linux-arm64@0.25.5': optional: true @@ -19696,9 +19328,6 @@ snapshots: '@esbuild/linux-arm@0.19.2': optional: true - '@esbuild/linux-arm@0.21.5': - optional: true - '@esbuild/linux-arm@0.25.5': optional: true @@ -19708,9 +19337,6 @@ snapshots: '@esbuild/linux-ia32@0.19.2': optional: true - '@esbuild/linux-ia32@0.21.5': - optional: true - '@esbuild/linux-ia32@0.25.5': optional: true @@ -19723,9 +19349,6 @@ snapshots: '@esbuild/linux-loong64@0.19.2': optional: true - '@esbuild/linux-loong64@0.21.5': - optional: true - '@esbuild/linux-loong64@0.25.5': optional: true @@ -19735,9 +19358,6 @@ snapshots: '@esbuild/linux-mips64el@0.19.2': optional: true - '@esbuild/linux-mips64el@0.21.5': - optional: true - '@esbuild/linux-mips64el@0.25.5': optional: true @@ -19747,9 +19367,6 @@ snapshots: '@esbuild/linux-ppc64@0.19.2': optional: true - '@esbuild/linux-ppc64@0.21.5': - optional: true - '@esbuild/linux-ppc64@0.25.5': optional: true @@ -19759,9 +19376,6 @@ snapshots: '@esbuild/linux-riscv64@0.19.2': optional: true - '@esbuild/linux-riscv64@0.21.5': - optional: true - '@esbuild/linux-riscv64@0.25.5': optional: true @@ -19771,9 +19385,6 @@ snapshots: '@esbuild/linux-s390x@0.19.2': optional: true - '@esbuild/linux-s390x@0.21.5': - optional: true - '@esbuild/linux-s390x@0.25.5': optional: true @@ -19783,9 +19394,6 @@ snapshots: '@esbuild/linux-x64@0.19.2': optional: true - '@esbuild/linux-x64@0.21.5': - optional: true - '@esbuild/linux-x64@0.25.5': optional: true @@ -19798,9 +19406,6 @@ snapshots: '@esbuild/netbsd-x64@0.19.2': optional: true - '@esbuild/netbsd-x64@0.21.5': - optional: true - '@esbuild/netbsd-x64@0.25.5': optional: true @@ -19813,9 +19418,6 @@ snapshots: '@esbuild/openbsd-x64@0.19.2': optional: true - '@esbuild/openbsd-x64@0.21.5': - optional: true - '@esbuild/openbsd-x64@0.25.5': optional: true @@ -19825,9 +19427,6 @@ snapshots: '@esbuild/sunos-x64@0.19.2': optional: true - '@esbuild/sunos-x64@0.21.5': - optional: true - '@esbuild/sunos-x64@0.25.5': optional: true @@ -19837,9 +19436,6 @@ snapshots: '@esbuild/win32-arm64@0.19.2': optional: true - '@esbuild/win32-arm64@0.21.5': - optional: true - '@esbuild/win32-arm64@0.25.5': optional: true @@ -19849,9 +19445,6 @@ snapshots: '@esbuild/win32-ia32@0.19.2': optional: true - '@esbuild/win32-ia32@0.21.5': - optional: true - '@esbuild/win32-ia32@0.25.5': optional: true @@ -19861,9 +19454,6 @@ snapshots: '@esbuild/win32-x64@0.19.2': optional: true - '@esbuild/win32-x64@0.21.5': - optional: true - '@esbuild/win32-x64@0.25.5': optional: true @@ -21013,6 +20603,8 @@ snapshots: '@module-federation/error-codes@0.0.0-feat-modern-3-0-20251120074204': {} + '@module-federation/error-codes@0.21.1': {} + '@module-federation/error-codes@0.21.4': {} '@module-federation/inject-external-runtime-core-plugin@0.0.0-feat-modern-3-0-20251120074204(@module-federation/runtime-tools@0.0.0-feat-modern-3-0-20251120074204)': @@ -21138,6 +20730,11 @@ snapshots: '@module-federation/error-codes': 0.0.0-feat-modern-3-0-20251120074204 '@module-federation/sdk': 0.0.0-feat-modern-3-0-20251120074204 + '@module-federation/runtime-core@0.21.1': + dependencies: + '@module-federation/error-codes': 0.21.1 + '@module-federation/sdk': 0.21.1 + '@module-federation/runtime-core@0.21.4': dependencies: '@module-federation/error-codes': 0.21.4 @@ -21148,6 +20745,11 @@ snapshots: '@module-federation/runtime': 0.0.0-feat-modern-3-0-20251120074204 '@module-federation/webpack-bundler-runtime': 0.0.0-feat-modern-3-0-20251120074204 + '@module-federation/runtime-tools@0.21.1': + dependencies: + '@module-federation/runtime': 0.21.1 + '@module-federation/webpack-bundler-runtime': 0.21.1 + '@module-federation/runtime-tools@0.21.4': dependencies: '@module-federation/runtime': 0.21.4 @@ -21164,6 +20766,12 @@ snapshots: '@module-federation/runtime-core': 0.0.0-feat-modern-3-0-20251120074204 '@module-federation/sdk': 0.0.0-feat-modern-3-0-20251120074204 + '@module-federation/runtime@0.21.1': + dependencies: + '@module-federation/error-codes': 0.21.1 + '@module-federation/runtime-core': 0.21.1 + '@module-federation/sdk': 0.21.1 + '@module-federation/runtime@0.21.4': dependencies: '@module-federation/error-codes': 0.21.4 @@ -21176,6 +20784,8 @@ snapshots: '@module-federation/sdk@0.0.0-feat-modern-3-0-20251120074204': {} + '@module-federation/sdk@0.21.1': {} + '@module-federation/sdk@0.21.4': {} '@module-federation/sdk@0.5.1': {} @@ -21191,6 +20801,11 @@ snapshots: '@module-federation/runtime': 0.0.0-feat-modern-3-0-20251120074204 '@module-federation/sdk': 0.0.0-feat-modern-3-0-20251120074204 + '@module-federation/webpack-bundler-runtime@0.21.1': + dependencies: + '@module-federation/runtime': 0.21.1 + '@module-federation/sdk': 0.21.1 + '@module-federation/webpack-bundler-runtime@0.21.4': dependencies: '@module-federation/runtime': 0.21.4 @@ -21340,8 +20955,6 @@ snapshots: dependencies: playwright: 1.56.1 - '@polka/url@1.0.0-next.28': {} - '@puppeteer/browsers@2.10.13': dependencies: debug: 4.4.3(supports-color@5.5.0) @@ -21482,63 +21095,6 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/rollup-android-arm-eabi@4.34.8': - optional: true - - '@rollup/rollup-android-arm64@4.34.8': - optional: true - - '@rollup/rollup-darwin-arm64@4.34.8': - optional: true - - '@rollup/rollup-darwin-x64@4.34.8': - optional: true - - '@rollup/rollup-freebsd-arm64@4.34.8': - optional: true - - '@rollup/rollup-freebsd-x64@4.34.8': - optional: true - - '@rollup/rollup-linux-arm-gnueabihf@4.34.8': - optional: true - - '@rollup/rollup-linux-arm-musleabihf@4.34.8': - optional: true - - '@rollup/rollup-linux-arm64-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-arm64-musl@4.34.8': - optional: true - - '@rollup/rollup-linux-loongarch64-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-powerpc64le-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-riscv64-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-s390x-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-x64-gnu@4.34.8': - optional: true - - '@rollup/rollup-linux-x64-musl@4.34.8': - optional: true - - '@rollup/rollup-win32-arm64-msvc@4.34.8': - optional: true - - '@rollup/rollup-win32-ia32-msvc@4.34.8': - optional: true - - '@rollup/rollup-win32-x64-msvc@4.34.8': - optional: true - '@rsbuild-image/core@0.0.1-next.16(ipx@3.1.1(ioredis@5.6.1))(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(sharp@0.34.5)': dependencies: '@sindresorhus/is': 7.0.1 @@ -21574,6 +21130,14 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + '@rsbuild/core@1.6.0-beta.1': + dependencies: + '@rspack/core': 1.6.0-beta.1(@swc/helpers@0.5.17) + '@rspack/lite-tapable': 1.0.1 + '@swc/helpers': 0.5.17 + core-js: 3.46.0 + jiti: 2.6.1 + '@rsbuild/core@1.6.9': dependencies: '@rspack/core': 1.6.5(@swc/helpers@0.5.17) @@ -21644,9 +21208,9 @@ snapshots: optionalDependencies: '@rsbuild/core': 1.6.9 - '@rsbuild/plugin-css-minimizer@1.1.0(@rsbuild/core@1.6.9)(esbuild@0.25.5)(lightningcss@1.30.2)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5))': + '@rsbuild/plugin-css-minimizer@1.1.0(@rsbuild/core@1.6.9)(esbuild@0.25.5)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5))': dependencies: - css-minimizer-webpack-plugin: 7.0.2(esbuild@0.25.5)(lightningcss@1.30.2)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)) + css-minimizer-webpack-plugin: 7.0.2(esbuild@0.25.5)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)) reduce-configs: 1.1.1 optionalDependencies: '@rsbuild/core': 1.6.9 @@ -21891,39 +21455,62 @@ snapshots: '@rspack/binding-darwin-arm64@1.0.14': optional: true + '@rspack/binding-darwin-arm64@1.6.0-beta.1': + optional: true + '@rspack/binding-darwin-arm64@1.6.5': optional: true '@rspack/binding-darwin-x64@1.0.14': optional: true + '@rspack/binding-darwin-x64@1.6.0-beta.1': + optional: true + '@rspack/binding-darwin-x64@1.6.5': optional: true '@rspack/binding-linux-arm64-gnu@1.0.14': optional: true + '@rspack/binding-linux-arm64-gnu@1.6.0-beta.1': + optional: true + '@rspack/binding-linux-arm64-gnu@1.6.5': optional: true '@rspack/binding-linux-arm64-musl@1.0.14': optional: true + '@rspack/binding-linux-arm64-musl@1.6.0-beta.1': + optional: true + '@rspack/binding-linux-arm64-musl@1.6.5': optional: true '@rspack/binding-linux-x64-gnu@1.0.14': optional: true + '@rspack/binding-linux-x64-gnu@1.6.0-beta.1': + optional: true + '@rspack/binding-linux-x64-gnu@1.6.5': optional: true '@rspack/binding-linux-x64-musl@1.0.14': optional: true + '@rspack/binding-linux-x64-musl@1.6.0-beta.1': + optional: true + '@rspack/binding-linux-x64-musl@1.6.5': optional: true + '@rspack/binding-wasm32-wasi@1.6.0-beta.1': + dependencies: + '@napi-rs/wasm-runtime': 1.0.7 + optional: true + '@rspack/binding-wasm32-wasi@1.6.5': dependencies: '@napi-rs/wasm-runtime': 1.0.7 @@ -21932,18 +21519,27 @@ snapshots: '@rspack/binding-win32-arm64-msvc@1.0.14': optional: true + '@rspack/binding-win32-arm64-msvc@1.6.0-beta.1': + optional: true + '@rspack/binding-win32-arm64-msvc@1.6.5': optional: true '@rspack/binding-win32-ia32-msvc@1.0.14': optional: true + '@rspack/binding-win32-ia32-msvc@1.6.0-beta.1': + optional: true + '@rspack/binding-win32-ia32-msvc@1.6.5': optional: true '@rspack/binding-win32-x64-msvc@1.0.14': optional: true + '@rspack/binding-win32-x64-msvc@1.6.0-beta.1': + optional: true + '@rspack/binding-win32-x64-msvc@1.6.5': optional: true @@ -21959,6 +21555,19 @@ snapshots: '@rspack/binding-win32-ia32-msvc': 1.0.14 '@rspack/binding-win32-x64-msvc': 1.0.14 + '@rspack/binding@1.6.0-beta.1': + optionalDependencies: + '@rspack/binding-darwin-arm64': 1.6.0-beta.1 + '@rspack/binding-darwin-x64': 1.6.0-beta.1 + '@rspack/binding-linux-arm64-gnu': 1.6.0-beta.1 + '@rspack/binding-linux-arm64-musl': 1.6.0-beta.1 + '@rspack/binding-linux-x64-gnu': 1.6.0-beta.1 + '@rspack/binding-linux-x64-musl': 1.6.0-beta.1 + '@rspack/binding-wasm32-wasi': 1.6.0-beta.1 + '@rspack/binding-win32-arm64-msvc': 1.6.0-beta.1 + '@rspack/binding-win32-ia32-msvc': 1.6.0-beta.1 + '@rspack/binding-win32-x64-msvc': 1.6.0-beta.1 + '@rspack/binding@1.6.5': optionalDependencies: '@rspack/binding-darwin-arm64': 1.6.5 @@ -21981,6 +21590,14 @@ snapshots: optionalDependencies: '@swc/helpers': 0.5.17 + '@rspack/core@1.6.0-beta.1(@swc/helpers@0.5.17)': + dependencies: + '@module-federation/runtime-tools': 0.21.1 + '@rspack/binding': 1.6.0-beta.1 + '@rspack/lite-tapable': 1.0.1 + optionalDependencies: + '@swc/helpers': 0.5.17 + '@rspack/core@1.6.5(@swc/helpers@0.5.17)': dependencies: '@module-federation/runtime-tools': 0.21.4 @@ -22110,6 +21727,14 @@ snapshots: lodash-es: 4.17.21 unified: 11.0.5 + '@rstest/core@0.6.6(jsdom@20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))': + dependencies: + '@rsbuild/core': 1.6.0-beta.1 + '@types/chai': 5.2.3 + tinypool: 1.1.1 + optionalDependencies: + jsdom: 20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@rtsao/scc@1.1.0': {} '@selderee/plugin-htmlparser2@0.11.0': @@ -22511,6 +22136,11 @@ snapshots: '@types/node': 20.8.8 '@types/responselike': 1.0.3 + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + '@types/cloneable-readable@2.0.3': dependencies: '@types/node': 20.8.8 @@ -22668,6 +22298,8 @@ snapshots: dependencies: '@types/ms': 0.7.31 + '@types/deep-eql@4.0.2': {} + '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 9.6.1 @@ -22684,8 +22316,6 @@ snapshots: '@types/estree@1.0.5': {} - '@types/estree@1.0.6': {} - '@types/estree@1.0.8': {} '@types/express-serve-static-core@4.19.6': @@ -23111,71 +22741,6 @@ snapshots: - encoding - supports-color - '@vitest/expect@3.0.5': - dependencies: - '@vitest/spy': 3.0.5 - '@vitest/utils': 3.0.5 - chai: 5.2.0 - tinyrainbow: 2.0.0 - - '@vitest/mocker@3.0.5(vite@5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1))': - dependencies: - '@vitest/spy': 3.0.5 - estree-walker: 3.0.3 - magic-string: 0.30.21 - optionalDependencies: - vite: 5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) - - '@vitest/pretty-format@3.0.5': - dependencies: - tinyrainbow: 2.0.0 - - '@vitest/pretty-format@3.0.8': - dependencies: - tinyrainbow: 2.0.0 - - '@vitest/pretty-format@3.2.4': - dependencies: - tinyrainbow: 2.0.0 - - '@vitest/runner@3.0.5': - dependencies: - '@vitest/utils': 3.0.5 - pathe: 2.0.3 - - '@vitest/snapshot@3.0.5': - dependencies: - '@vitest/pretty-format': 3.0.5 - magic-string: 0.30.21 - pathe: 2.0.3 - - '@vitest/spy@3.0.5': - dependencies: - tinyspy: 3.0.2 - - '@vitest/ui@3.2.4(vitest@3.0.5)': - dependencies: - '@vitest/utils': 3.2.4 - fflate: 0.8.2 - flatted: 3.3.3 - pathe: 2.0.3 - sirv: 3.0.1 - tinyglobby: 0.2.14 - tinyrainbow: 2.0.0 - vitest: 3.0.5(@types/debug@4.1.12)(@types/node@20.5.1)(@vitest/ui@3.2.4)(jsdom@20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) - - '@vitest/utils@3.0.5': - dependencies: - '@vitest/pretty-format': 3.0.5 - loupe: 3.1.3 - tinyrainbow: 2.0.0 - - '@vitest/utils@3.2.4': - dependencies: - '@vitest/pretty-format': 3.2.4 - loupe: 3.2.0 - tinyrainbow: 2.0.0 - '@vue/compiler-core@3.5.24': dependencies: '@babel/parser': 7.28.5 @@ -24035,14 +23600,6 @@ snapshots: align-text: 0.1.4 lazy-cache: 1.0.4 - chai@5.2.0: - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.1 - deep-eql: 5.0.2 - loupe: 3.1.3 - pathval: 2.0.0 - chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -24087,8 +23644,6 @@ snapshots: table: 6.8.1 type-fest: 4.41.0 - check-error@2.1.1: {} - chevrotain-allstar@0.3.1(chevrotain@11.0.3): dependencies: chevrotain: 11.0.3 @@ -24515,7 +24070,7 @@ snapshots: dependencies: postcss: 8.5.6 - css-minimizer-webpack-plugin@7.0.2(esbuild@0.25.5)(lightningcss@1.30.2)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)): + css-minimizer-webpack-plugin@7.0.2(esbuild@0.25.5)(webpack@5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5)): dependencies: '@jridgewell/trace-mapping': 0.3.31 cssnano: 7.1.2(postcss@8.5.6) @@ -24526,7 +24081,6 @@ snapshots: webpack: 5.99.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(esbuild@0.25.5) optionalDependencies: esbuild: 0.25.5 - lightningcss: 1.30.2 css-select@5.1.0: dependencies: @@ -24973,8 +24527,6 @@ snapshots: dependencies: type-detect: 4.1.0 - deep-eql@5.0.2: {} - deep-equal@1.0.1: {} deep-is@0.1.4: {} @@ -25563,32 +25115,6 @@ snapshots: '@esbuild/win32-ia32': 0.19.2 '@esbuild/win32-x64': 0.19.2 - esbuild@0.21.5: - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - esbuild@0.25.5: optionalDependencies: '@esbuild/aix-ppc64': 0.25.5 @@ -25952,8 +25478,6 @@ snapshots: expect-puppeteer@11.0.0: {} - expect-type@1.1.0: {} - expect@29.7.0: dependencies: '@jest/expect-utils': 29.7.0 @@ -26082,10 +25606,6 @@ snapshots: dependencies: pend: 1.2.0 - fdir@6.4.4(picomatch@4.0.2): - optionalDependencies: - picomatch: 4.0.2 - fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -26105,8 +25625,6 @@ snapshots: node-domexception: 1.0.0 web-streams-polyfill: 3.3.3 - fflate@0.8.2: {} - figures@2.0.0: dependencies: escape-string-regexp: 1.0.5 @@ -28434,10 +27952,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@3.1.3: {} - - loupe@3.2.0: {} - lower-case@2.0.2: dependencies: tslib: 2.8.1 @@ -29114,8 +28628,6 @@ snapshots: mrmime@1.0.1: {} - mrmime@2.0.1: {} - ms@2.0.0: {} ms@2.1.2: {} @@ -29631,6 +29143,8 @@ snapshots: lru-cache: 11.1.0 minipass: 7.1.2 + path-serializer@0.5.1: {} + path-to-regexp@0.1.12: {} path-to-regexp@6.3.0: {} @@ -29641,8 +29155,6 @@ snapshots: pathe@2.0.3: {} - pathval@2.0.0: {} - peberminta@0.9.0: {} pend@1.2.0: {} @@ -31070,31 +30582,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - rollup@4.34.8: - dependencies: - '@types/estree': 1.0.6 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.34.8 - '@rollup/rollup-android-arm64': 4.34.8 - '@rollup/rollup-darwin-arm64': 4.34.8 - '@rollup/rollup-darwin-x64': 4.34.8 - '@rollup/rollup-freebsd-arm64': 4.34.8 - '@rollup/rollup-freebsd-x64': 4.34.8 - '@rollup/rollup-linux-arm-gnueabihf': 4.34.8 - '@rollup/rollup-linux-arm-musleabihf': 4.34.8 - '@rollup/rollup-linux-arm64-gnu': 4.34.8 - '@rollup/rollup-linux-arm64-musl': 4.34.8 - '@rollup/rollup-linux-loongarch64-gnu': 4.34.8 - '@rollup/rollup-linux-powerpc64le-gnu': 4.34.8 - '@rollup/rollup-linux-riscv64-gnu': 4.34.8 - '@rollup/rollup-linux-s390x-gnu': 4.34.8 - '@rollup/rollup-linux-x64-gnu': 4.34.8 - '@rollup/rollup-linux-x64-musl': 4.34.8 - '@rollup/rollup-win32-arm64-msvc': 4.34.8 - '@rollup/rollup-win32-ia32-msvc': 4.34.8 - '@rollup/rollup-win32-x64-msvc': 4.34.8 - fsevents: 2.3.3 - roughjs@4.6.6: dependencies: hachure-fill: 0.5.2 @@ -31485,8 +30972,6 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 - siginfo@2.0.0: {} - signal-exit@3.0.7: {} signal-exit@4.1.0: {} @@ -31501,12 +30986,6 @@ snapshots: dependencies: is-arrayish: 0.3.2 - sirv@3.0.1: - dependencies: - '@polka/url': 1.0.0-next.28 - mrmime: 2.0.1 - totalist: 3.0.1 - sisteransi@1.0.5: {} slash@3.0.0: {} @@ -31646,8 +31125,6 @@ snapshots: dependencies: escape-string-regexp: 2.0.0 - stackback@0.0.2: {} - stackframe@1.3.4: {} standard-as-callback@2.1.0: {} @@ -32107,30 +31584,15 @@ snapshots: through@2.3.8: {} - tinybench@2.9.0: {} - - tinyexec@0.3.2: {} - tinyexec@1.0.1: {} - tinyglobby@0.2.14: - dependencies: - fdir: 6.4.4(picomatch@4.0.2) - picomatch: 4.0.2 - tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 - tinypool@1.0.2: {} - tinypool@1.1.1: {} - tinyrainbow@2.0.0: {} - - tinyspy@3.0.2: {} - tmp@0.0.33: dependencies: os-tmpdir: 1.0.2 @@ -32149,8 +31611,6 @@ snapshots: toposort@2.0.2: {} - totalist@3.0.1: {} - tough-cookie@4.1.2: dependencies: psl: 1.8.0 @@ -32627,76 +32087,6 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - vite-node@3.0.5(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1): - dependencies: - cac: 6.7.14 - debug: 4.4.3(supports-color@5.5.0) - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vite@5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.6 - rollup: 4.34.8 - optionalDependencies: - '@types/node': 20.5.1 - fsevents: 2.3.3 - less: 4.4.2 - lightningcss: 1.30.2 - sass: 1.94.2 - sass-embedded: 1.90.0 - terser: 5.44.1 - - vitest@3.0.5(@types/debug@4.1.12)(@types/node@20.5.1)(@vitest/ui@3.2.4)(jsdom@20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10))(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1): - dependencies: - '@vitest/expect': 3.0.5 - '@vitest/mocker': 3.0.5(vite@5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1)) - '@vitest/pretty-format': 3.0.8 - '@vitest/runner': 3.0.5 - '@vitest/snapshot': 3.0.5 - '@vitest/spy': 3.0.5 - '@vitest/utils': 3.0.5 - chai: 5.2.0 - debug: 4.4.3(supports-color@5.5.0) - expect-type: 1.1.0 - magic-string: 0.30.17 - pathe: 2.0.3 - std-env: 3.10.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinypool: 1.0.2 - tinyrainbow: 2.0.0 - vite: 5.4.14(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) - vite-node: 3.0.5(@types/node@20.5.1)(less@4.4.2)(lightningcss@1.30.2)(sass-embedded@1.90.0)(sass@1.94.2)(terser@5.44.1) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/debug': 4.1.12 - '@types/node': 20.5.1 - '@vitest/ui': 3.2.4(vitest@3.0.5) - jsdom: 20.0.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - less - - lightningcss - - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - void-elements@3.1.0: {} vscode-jsonrpc@8.2.0: {} @@ -32895,11 +32285,6 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - wicg-inert@3.1.2: {} wide-align@1.1.5: diff --git a/rstest.config.ts b/rstest.config.ts new file mode 100644 index 000000000000..2fb0b03f1e6f --- /dev/null +++ b/rstest.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from '@rstest/core'; + +export default defineConfig({ + projects: ['packages/**/rstest.config.ts'], +}); diff --git a/scripts/jest-config/package.json b/scripts/jest-config/package.json index 9d6db0206177..5f8dc6e717fc 100644 --- a/scripts/jest-config/package.json +++ b/scripts/jest-config/package.json @@ -8,6 +8,7 @@ "@swc/jest": "^0.2.39", "@types/jest": "^29.5.14", "@types/node": "^20", + "path-serializer": "0.5.1", "enhanced-resolve": "5.18.3", "esbuild": "0.25.5", "jest": "^29.7.0" diff --git a/scripts/jest-config/utils.ts b/scripts/jest-config/utils.ts index 02dc2ff95db8..cb02441f395a 100644 --- a/scripts/jest-config/utils.ts +++ b/scripts/jest-config/utils.ts @@ -1,7 +1,7 @@ import { type SnapshotSerializerOptions, createSnapshotSerializer, -} from '../vitest-config/src/utils'; +} from 'path-serializer'; export const initSnapshotSerializer = (options?: SnapshotSerializerOptions) => { expect.addSnapshotSerializer(createSnapshotSerializer(options)); diff --git a/scripts/rstest-config/package.json b/scripts/rstest-config/package.json new file mode 100644 index 000000000000..84b1ffe51d66 --- /dev/null +++ b/scripts/rstest-config/package.json @@ -0,0 +1,15 @@ +{ + "name": "@scripts/rstest-config", + "private": true, + "version": "2.66.0", + "main": "src/index.ts", + "typings": "src/index.ts", + "dependencies": { + "@modern-js/tsconfig": "workspace:*", + "path-serializer": "0.5.1", + "@types/lodash": "^4.17.21", + "@types/node": "^20", + "lodash": "^4.17.21", + "typescript": "^5" + } +} diff --git a/packages/cli/builder/tests/setup.ts b/scripts/rstest-config/setup.ts similarity index 65% rename from packages/cli/builder/tests/setup.ts rename to scripts/rstest-config/setup.ts index 876f4168887c..fcc8d5a4c114 100644 --- a/packages/cli/builder/tests/setup.ts +++ b/scripts/rstest-config/setup.ts @@ -1,6 +1,7 @@ import { Console } from 'console'; -import { createSnapshotSerializer } from '@scripts/vitest-config'; -import { expect } from 'vitest'; +import path from 'path'; +import { expect } from '@rstest/core'; +import { createSnapshotSerializer } from 'path-serializer'; global.console.Console = Console; @@ -9,6 +10,7 @@ process.env.FORCE_COLOR = '0'; expect.addSnapshotSerializer( createSnapshotSerializer({ + workspace: path.join(__dirname, '..', '..'), replace: [ { mark: 'fragment', diff --git a/scripts/rstest-config/src/index.ts b/scripts/rstest-config/src/index.ts new file mode 100644 index 000000000000..52b82f3905e1 --- /dev/null +++ b/scripts/rstest-config/src/index.ts @@ -0,0 +1,26 @@ +import { join } from 'path'; +import { type RstestConfig, defineConfig } from '@rstest/core'; +import _ from 'lodash'; +export const testPreset = defineConfig({ + coverage: { + enabled: false, + }, + testEnvironment: 'happy-dom', + testTimeout: 30000, + include: ['src/**/*.test.[jt]s?(x)', 'tests/**/*.test.[jt]s?(x)'], + restoreMocks: true, + setupFiles: [join(__dirname, '../setup.ts')], + resolve: { + conditionNames: ['jsnext:source', 'require', 'node', 'default'], + }, +}); + +export const withTestPreset = (config: RstestConfig) => { + const mergedConfig = _.merge({}, testPreset, config); + if (config.setupFiles) { + mergedConfig.setupFiles = [...testPreset.setupFiles!, ...config.setupFiles]; + } + return defineConfig(mergedConfig); +}; + +export { defineConfig }; diff --git a/scripts/vitest-config/tsconfig.json b/scripts/rstest-config/tsconfig.json similarity index 100% rename from scripts/vitest-config/tsconfig.json rename to scripts/rstest-config/tsconfig.json diff --git a/scripts/vitest-config/package.json b/scripts/vitest-config/package.json deleted file mode 100644 index c65848cbdc74..000000000000 --- a/scripts/vitest-config/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@scripts/vitest-config", - "private": true, - "version": "2.66.0", - "main": "dist/index.js", - "typings": "dist/index.d.ts", - "scripts": { - "dev": "tsc --watch", - "build": "tsc", - "test": "vitest run", - "test:watch": "vitest dev" - }, - "dependencies": { - "@modern-js/tsconfig": "workspace:*", - "@types/lodash": "^4.17.21", - "@types/node": "^20", - "execa": "5.1.1", - "fs-extra": "^10.1.0", - "globby": "11.1.0", - "lodash": "^4.17.21", - "typescript": "^5", - "upath": "2.0.1" - } -} diff --git a/scripts/vitest-config/src/index.ts b/scripts/vitest-config/src/index.ts deleted file mode 100644 index 4eecc99b677e..000000000000 --- a/scripts/vitest-config/src/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -import _ from 'lodash'; -import { type UserConfigExport, defineConfig } from 'vitest/config'; -import { applyMatcherReplacement } from './pathSerializer'; -import { createSnapshotSerializer } from './utils'; - -export const testPreset = defineConfig({ - test: { - coverage: { - enabled: false, - }, - environment: 'happy-dom', - testTimeout: 30000, - include: ['src/**/*.test.[jt]s?(x)', 'tests/**/*.test.[jt]s?(x)'], - restoreMocks: true, - }, - resolve: { - conditions: ['jsnext:source'], - }, -}); - -export const withTestPreset = (config: UserConfigExport) => - _.merge(testPreset, config); - -export { defineConfig, createSnapshotSerializer, applyMatcherReplacement }; diff --git a/scripts/vitest-config/src/path.ts b/scripts/vitest-config/src/path.ts deleted file mode 100644 index 2850eae72b00..000000000000 --- a/scripts/vitest-config/src/path.ts +++ /dev/null @@ -1,65 +0,0 @@ -import fs from 'fs'; -import os from 'os'; -import path from 'path'; -import _ from 'lodash'; -import upath from 'upath'; - -export const isPathString = (test: string): boolean => - path.posix.basename(test) !== test || path.win32.basename(test) !== test; - -export const isRelativePath = (test: string): boolean => - /^\.\.?($|[\\/])/.test(test); - -export const normalizeOutputPath = (s: string) => s.replace(/\\/g, '\\\\'); - -export const normalizeToPosixPath = (p: string | undefined) => - upath - .normalizeSafe(path.normalize(p || '')) - .replace(/^([a-zA-Z]+):/, (_, m: string) => `/${m.toLowerCase()}`); - -/** - * Compile path string to RegExp. - * @note Only support posix path. - */ -export function compilePathMatcherRegExp(match: string | RegExp) { - if (typeof match !== 'string') { - return match; - } - const escaped = _.escapeRegExp(match); - return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`); -} - -/** @internal @see {@link upwardPaths} */ -export const _joinPathParts = ( - _part: unknown, - i: number, - parts: _.List, -) => - _(parts) - .filter(part => !['/', '\\'].includes(part)) - .tap(parts => parts.unshift('')) - .slice(0, i + 2) - .join('/'); - -export function upwardPaths(start: string): string[] { - return _(start) - .split(/[/\\]/) - .filter(Boolean) - .map(_joinPathParts) - .reverse() - .push('/') - .value(); -} - -export function getRealTemporaryDirectory() { - let ret: string | null = null; - try { - ret = os.tmpdir(); - ret = fs.realpathSync(ret); - } catch {} - return ret; -} - -export function splitPathString(str: string) { - return str.split(/[\\/]/); -} diff --git a/scripts/vitest-config/src/pathSerializer.ts b/scripts/vitest-config/src/pathSerializer.ts deleted file mode 100644 index 80efd17d4277..000000000000 --- a/scripts/vitest-config/src/pathSerializer.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Todo: only @scripts/vitest-config used -import os from 'os'; -import _ from 'lodash'; -import { - compilePathMatcherRegExp, - getRealTemporaryDirectory, - normalizeToPosixPath, - splitPathString, - upwardPaths, -} from './path'; - -/** Different from */ -export type PathMatchExpression = string | RegExp; - -export interface PathMatcher { - match: PathMatchExpression; - mark: string | ((substring: string, ...args: any[]) => string); -} - -export const matchUpwardPathsAsUnknown = (p: string) => - _(upwardPaths(normalizeToPosixPath(p))) - .map(match => ({ match, mark: 'unknown' })) - .slice(1, -1) - .value(); - -export interface ApplyPathMatcherOptions { - minPartials?: number; -} - -export function applyPathMatcher( - matcher: PathMatcher, - str: string, - options: ApplyPathMatcherOptions = {}, -) { - const regex = compilePathMatcherRegExp(matcher.match); - const replacer = (substring: string, ...args: any[]): string => { - if ( - options.minPartials && - splitPathString(substring).length < options.minPartials - ) { - return substring; - } - const ret = - typeof matcher.mark === 'string' - ? matcher.mark - : matcher.mark(substring, ...args); - return `<${_.snakeCase(ret).toUpperCase()}>`; - }; - return str.replace(regex, replacer); -} - -export function applyMatcherReplacement( - matchers: PathMatcher[], - str: string, - options: ApplyPathMatcherOptions = {}, -) { - return matchers.reduce((ret, matcher) => { - return applyPathMatcher(matcher, ret, options); - }, str); -} - -export const createDefaultPathMatchers = (root: string) => { - const ret: PathMatcher[] = [ - { - match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/, - mark: 'pnpmInner', - }, - ]; - const tmpdir = getRealTemporaryDirectory(); - tmpdir && ret.push({ match: tmpdir, mark: 'temp' }); - ret.push({ match: os.tmpdir(), mark: 'temp' }); - ret.push({ match: os.homedir(), mark: 'home' }); - ret.push(...matchUpwardPathsAsUnknown(root)); - return ret; -}; diff --git a/scripts/vitest-config/src/utils.ts b/scripts/vitest-config/src/utils.ts deleted file mode 100644 index 9de9e5da706c..000000000000 --- a/scripts/vitest-config/src/utils.ts +++ /dev/null @@ -1,56 +0,0 @@ -import assert from 'assert'; -import path from 'path'; -import { isPathString, normalizeToPosixPath } from './path'; -import { - type PathMatcher, - applyMatcherReplacement, - createDefaultPathMatchers, -} from './pathSerializer'; - -export const debug: typeof console.log = (...args) => { - process.env.DEBUG_MODERNJS_VITEST && console.log(...args); -}; - -export interface SnapshotSerializerOptions { - cwd?: string; - workspace?: string; - replace?: PathMatcher[]; -} - -export function createSnapshotSerializer(options?: SnapshotSerializerOptions) { - const { - cwd = process.cwd(), - workspace = path.join(__dirname, '../../..'), - replace: customMatchers = [], - } = options || {}; - assert(cwd, 'cwd is required'); - assert(workspace, 'workspace is required'); - const pathMatchers: PathMatcher[] = [ - { mark: 'root', match: cwd }, - { mark: 'workspace', match: workspace }, - ...customMatchers, - ...createDefaultPathMatchers(workspace), - ]; - - pathMatchers - .filter(matcher => typeof matcher.match === 'string') - .forEach( - matcher => - (matcher.match = normalizeToPosixPath(matcher.match as string)), - ); - - return { - pathMatchers, - // match path-format string - test: (val: unknown) => typeof val === 'string' && isPathString(val), - print: (val: unknown) => { - const normalized = normalizeToPosixPath(val as string); - const replaced = applyMatcherReplacement( - pathMatchers, - normalized, - ).replace(/"/g, '\\"'); - debug(`Vitest snapshot serializer: ${val} -> ${replaced}`); - return `"${replaced}"`; - }, - }; -} diff --git a/scripts/vitest-config/tests/path.test.ts b/scripts/vitest-config/tests/path.test.ts deleted file mode 100644 index 5db4e899b66f..000000000000 --- a/scripts/vitest-config/tests/path.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { describe, expect, it } from 'vitest'; -import { - _joinPathParts, - compilePathMatcherRegExp, - upwardPaths, -} from '../src/path'; - -describe('upwardPaths', () => { - it('should get upward paths', () => { - expect(upwardPaths('/a/b/c')).toEqual(['/a/b/c', '/a/b', '/a', '/']); - }); -}); - -describe('joinPathParts', () => { - it('should join path parts', () => { - expect(_joinPathParts('whatever', 0, ['a', 'b', 'c'])).toBe('/a'); - expect(_joinPathParts('whatever', 1, ['a', 'b', 'c'])).toBe('/a/b'); - expect(_joinPathParts('whatever', 2, ['a', 'b', 'c'])).toBe('/a/b/c'); - }); -}); - -describe('compilePathMatcherRegExp', () => { - it('should compile string path matcher', () => { - const regExp = compilePathMatcherRegExp('/a/b/c'); - expect(regExp.test('/a/b/c')).toBe(true); - expect(regExp.test('/a/b/c/')).toBe(true); - expect(regExp.test('/a/b/c/d')).toBe(true); - expect(regExp.test('/a/b/cd')).toBe(false); - expect(regExp.test('/a/c/c/')).toBe(false); - expect(regExp.test('at async (/a/b/c)')).toBe(true); - }); -}); diff --git a/scripts/vitest-config/tests/pathSerializer.test.ts b/scripts/vitest-config/tests/pathSerializer.test.ts deleted file mode 100644 index 9a3820510322..000000000000 --- a/scripts/vitest-config/tests/pathSerializer.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { describe, expect, it } from 'vitest'; -import { - applyMatcherReplacement, - applyPathMatcher, - matchUpwardPathsAsUnknown, -} from '../src/pathSerializer'; - -describe('matchUpwardPathsAsUnknown', () => { - it('should match upward paths', () => { - expect(matchUpwardPathsAsUnknown('/a/b/c')).toEqual([ - { mark: 'unknown', match: '/a/b' }, - { mark: 'unknown', match: '/a' }, - ]); - }); - it('should match upward paths with win32', () => { - expect(matchUpwardPathsAsUnknown('C:\\Windows\\User\\workspace')).toEqual([ - { mark: 'unknown', match: '/c/Windows/User' }, - { mark: 'unknown', match: '/c/Windows' }, - { mark: 'unknown', match: '/c' }, - ]); - }); -}); - -describe('applyPathMatcher', () => { - it('should apply path matcher', () => { - expect(applyPathMatcher({ match: '/a/b', mark: 'temp' }, '/a/b/c/d')).toBe( - '/c/d', - ); - expect(applyPathMatcher({ match: 'b/c', mark: 'inner' }, '/a/b/c/d')).toBe( - '/a//d', - ); - }); - it('should apply multiple path matcher', () => { - expect( - applyMatcherReplacement( - [ - { match: '/a/b', mark: 'temp' }, - { match: 'd/e', mark: 'inner' }, - ], - '/a/b/c/d/e/f', - ), - ).toBe('/c//f'); - }); -}); diff --git a/scripts/vitest-config/tests/tsconfig.json b/scripts/vitest-config/tests/tsconfig.json deleted file mode 100644 index ece298aadab4..000000000000 --- a/scripts/vitest-config/tests/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@modern-js/tsconfig/base", - "compilerOptions": { - "noEmit": true, - "declaration": false, - "jsx": "preserve", - "baseUrl": "./", - "isolatedModules": true, - "paths": {} - } -} diff --git a/scripts/vitest-config/tests/utils.test.ts b/scripts/vitest-config/tests/utils.test.ts deleted file mode 100644 index 0555b86cf9ff..000000000000 --- a/scripts/vitest-config/tests/utils.test.ts +++ /dev/null @@ -1,42 +0,0 @@ -import path from 'path'; -import { describe, expect, it, vi } from 'vitest'; -import { createSnapshotSerializer } from '../src/utils'; - -describe('createSnapshotSerializer', () => { - it.each([ - ['/a/b/c/d/e/f/g', '"/d/e/f/g"'], - ['/a/b/c/foo', '"/foo"'], - ['/a/b/foo/bar', '"/foo/bar"'], - [ - '/a/b/c/node_modules/.pnpm/babel-loader@8.2.5_2cad51bbe9c2876396f118aa6395be78/node_modules/babel-loader/lib/index.js', - '"/node_modules//babel-loader/lib/index.js"', - ], - ])('should handle with posix path %s', (value, expected) => { - const serializer = createSnapshotSerializer({ - cwd: '/a/b/c', - workspace: '/a/b/c/d', - replace: [{ match: '/a/b/c/d/e', mark: 'workspace2' }], - }); - expect(serializer.test(value)).toBe(true); - expect(serializer.print(value)).toBe(expected); - }); - it.each([ - ['A:\\b\\c\\d\\e\\f\\g', '"/d/e/f/g"'], - ['A:\\b\\c\\foo', '"/foo"'], - ['A:\\b\\foo\\bar', '"/foo/bar"'], - ['Z:\\b\\c\\foo', '"/z/b/c/foo"'], - ])('should handle with windows path %s', (value, expected) => { - if (process.platform !== 'win32') { - // will take the error `Maximum call stack size exceeded` in windows & node 16 - vi.spyOn(path, 'resolve').mockImplementationOnce(path.win32.resolve); - vi.spyOn(path, 'normalize').mockImplementationOnce(path.win32.normalize); - } - const serializer = createSnapshotSerializer({ - cwd: 'A:\\b\\c', - workspace: 'A:\\b\\c\\d', - replace: [{ match: 'A:\\b\\c\\d\\e', mark: 'workspace2' }], - }); - expect(serializer.test(value)).toBe(true); - expect(serializer.print(value)).toBe(expected); - }); -}); diff --git a/scripts/vitest-config/vitest.config.ts b/scripts/vitest-config/vitest.config.ts deleted file mode 100644 index 3b8d4bb93602..000000000000 --- a/scripts/vitest-config/vitest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { defineConfig } from 'vitest/config'; -import { withTestPreset } from './'; - -const config = defineConfig({ - test: { - root: __dirname, - environment: 'node', - }, -}); - -export default withTestPreset(config); diff --git a/scripts/vitest-config/vitestRunAll.js b/scripts/vitest-config/vitestRunAll.js deleted file mode 100644 index abfa177412da..000000000000 --- a/scripts/vitest-config/vitestRunAll.js +++ /dev/null @@ -1,42 +0,0 @@ -const path = require('path'); -const execa = require('execa'); -const globby = require('globby'); - -const SHELL = process.env.SHELL || true; -const restArgv = process.argv.slice(2); - -(async () => { - const configs = await globby('**/vitest.config.ts', { - followSymbolicLinks: false, - onlyFiles: true, - absolute: false, - unique: true, - }); - const directories = configs.map(config => path.dirname(config)); - - try { - const filters = ['@scripts/vitest-config']; - const filterCmd = filters - .map(item => `--filter-prod "${item}"...`) - .join(' '); - const buildCmd = `pnpm ${filterCmd} run build`; - - console.log('>', buildCmd); - await execa(buildCmd, { - shell: SHELL, - stdio: 'inherit', - }); - - for (let i = 0; i < directories.length; i++) { - const args = ['run', 'test', ...restArgv]; - await execa('pnpm', args, { - shell: SHELL, - stdio: 'inherit', - cwd: directories[i], - }); - } - } catch (err) { - console.error(err); - process.exit(1); - } -})();