Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: fix testing tools for react (#127)
白熱8734fb1ca7b6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-preview.ymlsimilarity index 97%rename from .github/workflows/ci.ymlrename to .github/workflows/ci-preview.ymlindex acc2b3de08..3ca054b1cc 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci-preview.yml@@ -1,4 +1,4 @@-name: CI+name: 📦 CI Previewon:push:@@ -11,6 +11,7 @@ permissions:jobs:build:+ if: github.repository == 'dream-num/univer'runs-on: ubuntu-latestenv:diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.ymlindex 14a3e2b7fb..e0cd3db09c 100644--- a/.github/workflows/pr-title-lint.yml+++ b/.github/workflows/pr-title-lint.yml@@ -1,4 +1,4 @@-name: PR Title Lint+name: 📌 PR Title Linton:pull_request:diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlnew file mode 100644index 0000000000..7ce6d9c256--- /dev/null+++ b/.github/workflows/test.yml@@ -0,0 +1,52 @@+name: 🧪 CI Test++on:+ push:+ branches: [main, dev]+ pull_request:+ branches: [main, dev]++permissions:+ contents: read++jobs:+ build:+ runs-on: ubuntu-latest++ env:+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}+ TURBO_TEAM: ${{ vars.TURBO_TEAM }}++ steps:+ - name: Checkout+ uses: actions/checkout@v3++ - name: Install Node.js+ uses: actions/setup-node@v3+ with:+ node-version: 16++ - name: Install pnpm+ uses: pnpm/action-setup@v2+ with:+ version: 8+ run_install: false++ - name: Get pnpm store directory+ shell: bash+ run: |+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV++ - name: Setup pnpm cache+ uses: actions/cache@v3+ with:+ path: ${{ env.STORE_PATH }}+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}+ restore-keys: |+ ${{ runner.os }}-pnpm-store-++ - name: Install dependencies+ run: pnpm install++ - name: Testing+ run: pnpm run testdiff --git a/cli/src/templates/base/jest.config.js b/cli/src/templates/base/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/cli/src/templates/base/jest.config.js+++ b/cli/src/templates/base/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/cli/src/templates/base/package.json b/cli/src/templates/base/package.jsonindex f71ebca9e0..a89cab85f6 100644--- a/cli/src/templates/base/package.json+++ b/cli/src/templates/base/package.json@@ -30,9 +30,7 @@"devDependencies": {"@types/jest": "^27.0.1","@types/node": "^16.4.6",- "enzyme": "^3.11.0","less": "^4.1.1",- "prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},diff --git a/cli/src/templates/common-plugin/jest.config.js b/cli/src/templates/common-plugin/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/cli/src/templates/common-plugin/jest.config.js+++ b/cli/src/templates/common-plugin/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/cli/src/templates/common-plugin/package.json b/cli/src/templates/common-plugin/package.jsonindex 131f2f51c6..10e1a59951 100644--- a/cli/src/templates/common-plugin/package.json+++ b/cli/src/templates/common-plugin/package.json@@ -31,7 +31,6 @@"@types/jest": "^27.0.1","@types/node": "^16.4.6","less": "^4.1.1",- "prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},diff --git a/cli/src/templates/docs-plugin/jest.config.js b/cli/src/templates/docs-plugin/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/cli/src/templates/docs-plugin/jest.config.js+++ b/cli/src/templates/docs-plugin/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/cli/src/templates/docs-plugin/package.json b/cli/src/templates/docs-plugin/package.jsonindex 687e2a9eaa..c717fa4489 100644--- a/cli/src/templates/docs-plugin/package.json+++ b/cli/src/templates/docs-plugin/package.json@@ -29,7 +29,6 @@"@types/jest": "^27.0.1","@types/node": "^16.4.6","less": "^4.1.1",- "prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},diff --git a/cli/src/templates/sheets-plugin/jest.config.js b/cli/src/templates/sheets-plugin/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/cli/src/templates/sheets-plugin/jest.config.js+++ b/cli/src/templates/sheets-plugin/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/cli/src/templates/sheets-plugin/package.json b/cli/src/templates/sheets-plugin/package.jsonindex 437ebd2203..d14c8e740a 100644--- a/cli/src/templates/sheets-plugin/package.json+++ b/cli/src/templates/sheets-plugin/package.json@@ -31,7 +31,6 @@"@types/jest": "^27.0.1","@types/node": "^16.4.6","less": "^4.1.1",- "prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},diff --git a/cli/src/templates/slides-plugin/jest.config.js b/cli/src/templates/slides-plugin/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/cli/src/templates/slides-plugin/jest.config.js+++ b/cli/src/templates/slides-plugin/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/cli/src/templates/slides-plugin/package.json b/cli/src/templates/slides-plugin/package.jsonindex 8ba6027f1a..4d70d1f4f0 100644--- a/cli/src/templates/slides-plugin/package.json+++ b/cli/src/templates/slides-plugin/package.json@@ -31,7 +31,6 @@"@types/jest": "^27.0.1","@types/node": "^16.4.6","less": "^4.1.1",- "prettier": "^2.3.2","ts-jest": "29.0.1","ts-node": "^10.2.1"},diff --git a/examples/univer-doc-ts/jest.config.js b/examples/univer-doc-ts/jest.config.jsnew file mode 100644index 0000000000..a03fc8ad40--- /dev/null+++ b/examples/univer-doc-ts/jest.config.js@@ -0,0 +1,22 @@+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */+module.exports = {+ preset: 'ts-jest',+ testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],+ transform: {+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',+ },++ collectCoverage: true,+ coverageReporters: ['json', 'html'],+};diff --git a/examples/univer-doc-ts/package.json b/examples/univer-doc-ts/package.jsonindex 03da8f9ede..4c860fb17f 100644--- a/examples/univer-doc-ts/package.json+++ b/examples/univer-doc-ts/package.json@@ -13,22 +13,20 @@],"private": true,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild:demo": "node ./esbuild.config.js","dev:demo": "node ./esbuild.config.js --watch"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/examples/univer-sheet-ts/jest.config.js b/examples/univer-sheet-ts/jest.config.jsnew file mode 100644index 0000000000..a03fc8ad40--- /dev/null+++ b/examples/univer-sheet-ts/jest.config.js@@ -0,0 +1,22 @@+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */+module.exports = {+ preset: 'ts-jest',+ testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],+ transform: {+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',+ },++ collectCoverage: true,+ coverageReporters: ['json', 'html'],+};diff --git a/examples/univer-sheet-ts/package.json b/examples/univer-sheet-ts/package.jsonindex 909b085a35..a47f723db2 100644--- a/examples/univer-sheet-ts/package.json+++ b/examples/univer-sheet-ts/package.json@@ -10,25 +10,22 @@},"private": true,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild:demo": "node ./esbuild.config.js","dev:demo": "node ./esbuild.config.js --watch"},"devDependencies": {- "@playwright/test": "^1.18.1",- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0","esbuild": "^0.17.10","esbuild-style-plugin": "^1.6.1",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/examples/univer-sheet-ts/playwright.config.ts b/examples/univer-sheet-ts/playwright.config.tsdeleted file mode 100644index 86abc82199..0000000000--- a/examples/univer-sheet-ts/playwright.config.ts+++ /dev/null@@ -1,39 +0,0 @@-// playwright.config.ts-import { PlaywrightTestConfig, devices } from '@playwright/test';--const config: PlaywrightTestConfig = {- forbidOnly: !!process.env.CI,- retries: process.env.CI ? 2 : 0,- webServer: {- command: 'npm run dev',- port: 3103,- timeout: 120 * 1000,- reuseExistingServer: !process.env.CI,- },- use: {- trace: 'on-first-retry',- },- projects: [- {- name: 'chromium',- use: { ...devices['Desktop Chrome'] },- },- {- name: 'firefox',- use: { ...devices['Desktop Firefox'] },- },- {- name: 'webkit',- use: { ...devices['Desktop Safari'] },- },- ],-};-export default config;--// import { PlaywrightTestConfig } from "@playwright/test";-// const config: PlaywrightTestConfig = {-// use: {-// channel: "chrome",-// },-// };-// export default config;diff --git a/examples/univer-slide-ts/jest.config.js b/examples/univer-slide-ts/jest.config.jsnew file mode 100644index 0000000000..a03fc8ad40--- /dev/null+++ b/examples/univer-slide-ts/jest.config.js@@ -0,0 +1,22 @@+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */+module.exports = {+ preset: 'ts-jest',+ testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],+ transform: {+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',+ },++ collectCoverage: true,+ coverageReporters: ['json', 'html'],+};diff --git a/examples/univer-slide-ts/package.json b/examples/univer-slide-ts/package.jsonindex 41cadbc94a..40fa513ae7 100644--- a/examples/univer-slide-ts/package.json+++ b/examples/univer-slide-ts/package.json@@ -10,22 +10,20 @@},"private": true,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild:demo": "node ./esbuild.config.js","dev:demo": "node ./esbuild.config.js --watch"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/examples/univer-vanilla-ts/package.json b/examples/univer-vanilla-ts/package.jsonindex 1670a244c2..01e62be8aa 100644--- a/examples/univer-vanilla-ts/package.json+++ b/examples/univer-vanilla-ts/package.json@@ -13,18 +13,16 @@"test": "jest"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0","esbuild": "^0.16.4",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/package.json b/package.jsonindex 4305bddaa2..12df992d6e 100644--- a/package.json+++ b/package.json@@ -4,7 +4,8 @@"description": "Univer, Luckysheet 2.0 upgrade version","private": true,"scripts": {- "test": "node scripts/test",+ "test": "turbo jest -- --passWithNoTests",+ "test:legacy": "node scripts/test","test:e2e": "pnpm run --filter @univerjs/base-sheets test:play","dev:sheet": "turbo dev:demo --filter ./examples/univer-sheet-ts","dev:doc": "turbo dev:demo --filter ./examples/univer-slide-ts",@@ -41,8 +42,6 @@"@types/jest": "28.1.8","@types/node": "^18.14.0","@types/numeral": "^2.0.2",- "@types/react": "^18.2.21",- "@types/react-dom": "^18.2.7","@typescript-eslint/eslint-plugin": "^6.6.0","@typescript-eslint/parser": "^6.6.0","cross-env": "^7.0.3",@@ -60,7 +59,6 @@"eslint-plugin-simple-import-sort": "^10.0.0","eslint-plugin-unused-imports": "^2.0.0","execa": "^4.1.0",- "find-process": "^1.4.7","husky": "^8.0.1","jest": "29.0.0","lighthouse": "^9.4.0",diff --git a/packages/base-docs/jest.config.js b/packages/base-docs/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/base-docs/jest.config.js+++ b/packages/base-docs/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-docs/package.json b/packages/base-docs/package.jsonindex 63eafcf2c6..95a3f40fd7 100644--- a/packages/base-docs/package.json+++ b/packages/base-docs/package.json@@ -33,16 +33,17 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-formula-engine/jest.config.js b/packages/base-formula-engine/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/base-formula-engine/jest.config.js+++ b/packages/base-formula-engine/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.jsonindex b02c0d1379..fe26c25389 100644--- a/packages/base-formula-engine/package.json+++ b/packages/base-formula-engine/package.json@@ -33,18 +33,18 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-numfmt-engine/jest.config.js b/packages/base-numfmt-engine/jest.config.jsindex 96eb6dc6b6..cf42da6e5f 100644--- a/packages/base-numfmt-engine/jest.config.js+++ b/packages/base-numfmt-engine/jest.config.js@@ -1,13 +1,20 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'node',- collectCoverage: true,- coverageReporters: ['json', 'html'],// coveragePathIgnorePatterns: ['src/Render/'],testMatch: ['<rootDir>/test/**/*.test.ts'],// collectCoverageFrom: ['**/*.{js,jsx}', '!**/node_modules/**', '!**/vendor/**'],transform: {- '^.+\\.ts?$': 'ts-jest',+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-numfmt-engine/package.json b/packages/base-numfmt-engine/package.jsonindex 596ba885be..bcd3ca5dc9 100644--- a/packages/base-numfmt-engine/package.json+++ b/packages/base-numfmt-engine/package.json@@ -33,20 +33,19 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-render/jest.config.js b/packages/base-render/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/base-render/jest.config.js+++ b/packages/base-render/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-render/package.json b/packages/base-render/package.jsonindex 839db94b24..08ec169612 100644--- a/packages/base-render/package.json+++ b/packages/base-render/package.json@@ -37,20 +37,19 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-sheets/jest.config.js b/packages/base-sheets/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/base-sheets/jest.config.js+++ b/packages/base-sheets/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-sheets/package.json b/packages/base-sheets/package.jsonindex c29de630f5..11163ecfd9 100644--- a/packages/base-sheets/package.json+++ b/packages/base-sheets/package.json@@ -36,22 +36,19 @@],"private": false,"scripts": {- "test": "jest",- "test:play": "npx playwright test",- "test:debug": "PWDEBUG=1 npx playwright test",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "enzyme": "^3.11.0",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-slides/jest.config.js b/packages/base-slides/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/base-slides/jest.config.js+++ b/packages/base-slides/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/base-slides/package.json b/packages/base-slides/package.jsonindex d4031a9695..b4612de6d5 100644--- a/packages/base-slides/package.json+++ b/packages/base-slides/package.json@@ -33,16 +33,17 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-ui/jest-puppeteer.config.js b/packages/base-ui/jest-puppeteer.config.jsdeleted file mode 100644index 889e1884ab..0000000000--- a/packages/base-ui/jest-puppeteer.config.js+++ /dev/null@@ -1,8 +0,0 @@-module.exports = {- server: {- command: 'npm run dev',- port: 3103,- launchTimeout: 10000,- debug: true,- },-};diff --git a/packages/base-ui/jest.config.js b/packages/base-ui/jest.config.jsindex 5759c5d399..a03fc8ad40 100644--- a/packages/base-ui/jest.config.js+++ b/packages/base-ui/jest.config.js@@ -1,24 +1,20 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {- // preset: 'ts-jest',- preset: 'jest-puppeteer',+ preset: 'ts-jest',testEnvironment: 'jsdom',- // testRegex: "./*\\e2e\\.test\\.js$",moduleFileExtensions: ['js', 'ts', 'tsx'],roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- moduleNameMapper: {- '\\.(css|less)$': 'identity-obj-proxy',- },- globals: {- 'ts-jest': {- tsconfig: '<rootDir>/tsconfig.test.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},collectCoverage: true,diff --git a/packages/base-ui/package.json b/packages/base-ui/package.jsonindex 9a8ac5511d..03a6c2f142 100644--- a/packages/base-ui/package.json+++ b/packages/base-ui/package.json@@ -35,24 +35,20 @@],"private": false,"scripts": {- "test": "jest -c jest.config.js",- "test:play": "npx playwright test",- "test:debug": "PWDEBUG=1 npx playwright test",- "test:cover": "cross-env NODE_ENV=--experimental-vm-modules jest --coverage",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@testing-library/react": "^14.0.0",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "enzyme": "^3.11.0",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/base-ui/playwright.config.ts b/packages/base-ui/playwright.config.tsdeleted file mode 100644index 86abc82199..0000000000--- a/packages/base-ui/playwright.config.ts+++ /dev/null@@ -1,39 +0,0 @@-// playwright.config.ts-import { PlaywrightTestConfig, devices } from '@playwright/test';--const config: PlaywrightTestConfig = {- forbidOnly: !!process.env.CI,- retries: process.env.CI ? 2 : 0,- webServer: {- command: 'npm run dev',- port: 3103,- timeout: 120 * 1000,- reuseExistingServer: !process.env.CI,- },- use: {- trace: 'on-first-retry',- },- projects: [- {- name: 'chromium',- use: { ...devices['Desktop Chrome'] },- },- {- name: 'firefox',- use: { ...devices['Desktop Firefox'] },- },- {- name: 'webkit',- use: { ...devices['Desktop Safari'] },- },- ],-};-export default config;--// import { PlaywrightTestConfig } from "@playwright/test";-// const config: PlaywrightTestConfig = {-// use: {-// channel: "chrome",-// },-// };-// export default config;diff --git a/packages/base-ui/src/Components/Avatar/test/index.test.tsx b/packages/base-ui/src/Components/Avatar/test/index.test.tsxindex a067d454a8..6d443f46ac 100644--- a/packages/base-ui/src/Components/Avatar/test/index.test.tsx+++ b/packages/base-ui/src/Components/Avatar/test/index.test.tsx@@ -1,20 +1,17 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render } from '@testing-library/preact';-import { Avatar } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('Avatar', () => {- test('should display initial Avatar', () => {- const { container } = render(<Avatar size="small">哈哈</Avatar>);- expect(container);- });- test('should display initial Avatar', () => {- let a = 1;- const { container } = render(- <Avatar src="https//www.baidu.com/img/PC_880906d2a4ad95f5fafb2e540c5cdad7.png" title="a" alt="a" fit="fill" onLoad={() => a++} onError={() => a++}></Avatar>- );- expect(container);- });-});+import { render } from '@testing-library/react';++import { Avatar } from '..';++describe('Avatar', () => {+ test('should display initial Avatar', () => {+ const { container } = render(<Avatar size="small">哈哈</Avatar>);+ expect(container);+ });+ test('should display initial Avatar', () => {+ let a = 1;+ const { container } = render(+ <Avatar src="https//www.baidu.com/img/PC_880906d2a4ad95f5fafb2e540c5cdad7.png" title="a" alt="a" fit="fill" onLoad={() => a++} onError={() => a++}></Avatar>+ );+ expect(container);+ });+});diff --git a/packages/base-ui/src/Components/Button/test/index.test.tsx b/packages/base-ui/src/Components/Button/test/index.test.tsxindex e1c4f22f26..dc66a3c8c3 100644--- a/packages/base-ui/src/Components/Button/test/index.test.tsx+++ b/packages/base-ui/src/Components/Button/test/index.test.tsx@@ -1,35 +1,32 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render, fireEvent, screen } from '@testing-library/preact';-import { Button } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('Button', () => {- test('should display initial Button', () => {- const { container } = render(- <Button type="text" onClick={() => {}}>- 哈哈- </Button>- );- expect(container);- });- test('click onSwitch function', async () => {- let a = 1;-- render(- <Button- type="text"- onClick={() => {- a++;- }}- >- 哈哈- </Button>- );-- fireEvent.click(screen.getByText('哈哈'));-- expect(a).toEqual(2);- });-});+import { fireEvent, render, screen } from '@testing-library/react';++import { Button } from '..';++describe('Button', () => {+ test('should display initial Button', () => {+ const { container } = render(+ <Button type="text" onClick={() => {}}>+ 哈哈+ </Button>+ );+ expect(container);+ });+ test('click onSwitch function', async () => {+ let a = 1;++ render(+ <Button+ type="text"+ onClick={() => {+ a++;+ }}+ >+ 哈哈+ </Button>+ );++ fireEvent.click(screen.getByText('哈哈'));++ expect(a).toEqual(2);+ });+});diff --git a/packages/base-ui/src/Components/Checkbox/test/index.test.tsx b/packages/base-ui/src/Components/Checkbox/test/index.test.tsxindex d5ab86624b..8482734859 100644--- a/packages/base-ui/src/Components/Checkbox/test/index.test.tsx+++ b/packages/base-ui/src/Components/Checkbox/test/index.test.tsx@@ -1,9 +1,6 @@-import { fireEvent, render, screen } from '@testing-library/preact';-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { Checkbox, CheckboxGroup } from '..';+import { fireEvent, render, screen } from '@testing-library/react';-Enzyme.configure({ adapter: new Adapter() });+import { Checkbox, CheckboxGroup } from '..';describe('checkbox', () => {test('checkbox', () => {@@ -16,7 +13,7 @@ describe('checkbox', () => {});test('checkbox group', () => {let a = 1;- let checkGroups = [+ const checkGroups = [{checked: true,disabled: false,diff --git a/packages/base-ui/src/Components/ColorPicker/test/index.test.tsx b/packages/base-ui/src/Components/ColorPicker/test/index.test.tsxdeleted file mode 100644index 2023a06070..0000000000--- a/packages/base-ui/src/Components/ColorPicker/test/index.test.tsx+++ /dev/null@@ -1,20 +0,0 @@-// import Enzyme, { mount } from 'enzyme';-// import Adapter from 'enzyme-adapter-preact-pure';-// import { h } from 'react';-// import { render, fireEvent, screen, findByText } from '@testing-library/preact';-// import { ColorPicker } from '..';-// Enzyme.configure({ adapter: new Adapter() });--// describe('ColorPicker', () => {-// test('should display initial ColorPicker', () => {-// const { container } = render(<ColorPicker onClick={(color) => {}} color="#000" />);-// expect(container).toBe(true);-// });-// test('click onSwitch function', async () => {-// render(<ColorPicker onClick={(color) => {}} color="#000" />);--// fireEvent.click(screen.getByText('自定义'));--// expect(screen.getByText('收起')).toBe(true);-// });-// });diff --git a/packages/base-ui/src/Components/Container/test/Container.test.tsx b/packages/base-ui/src/Components/Container/test/Container.test.tsxindex 251abb4370..40d66a08c5 100644--- a/packages/base-ui/src/Components/Container/test/Container.test.tsx+++ b/packages/base-ui/src/Components/Container/test/Container.test.tsx@@ -1,11 +1,11 @@-import { render } from '@testing-library/preact';--import { Container } from '..';--describe('Container', () => {- test('should display initial Container', () => {- const { container } = render(<Container>container content Text</Container>);-- expect(container.textContent).toMatch('container content Text');- });-});+import { render } from '@testing-library/react';++import { Container } from '..';++describe('Container', () => {+ test('should display initial Container', () => {+ const { container } = render(<Container>container content Text</Container>);++ expect(container.textContent).toMatch('container content Text');+ });+});diff --git a/packages/base-ui/src/Components/Grid/test/Grid.test.tsx b/packages/base-ui/src/Components/Grid/test/Grid.test.tsxindex d657103010..5662bbbee9 100644--- a/packages/base-ui/src/Components/Grid/test/Grid.test.tsx+++ b/packages/base-ui/src/Components/Grid/test/Grid.test.tsx@@ -1,4 +1,4 @@-import { render } from '@testing-library/preact';+import { render } from '@testing-library/react';import { Grid } from '..';diff --git a/packages/base-ui/src/Components/Icon/test/index.test.tsx b/packages/base-ui/src/Components/Icon/test/index.test.tsxindex 018a7aff9a..a28536b41f 100644--- a/packages/base-ui/src/Components/Icon/test/index.test.tsx+++ b/packages/base-ui/src/Components/Icon/test/index.test.tsx@@ -1,9 +1,6 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render } from '@testing-library/preact';-import { Icon } from '../AddIcon';+import { render } from '@testing-library/react';-Enzyme.configure({ adapter: new Adapter() });+import { Icon } from '../AddIcon';describe('icon', () => {test('icon', () => {diff --git a/packages/base-ui/src/Components/Input/test/index.test.tsx b/packages/base-ui/src/Components/Input/test/index.test.tsxindex e468248519..9d892a5ea6 100644--- a/packages/base-ui/src/Components/Input/test/index.test.tsx+++ b/packages/base-ui/src/Components/Input/test/index.test.tsx@@ -1,37 +1,34 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render, fireEvent } from '@testing-library/preact';-import { Input } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('input', () => {- test('input', () => {- const { container } = render(<Input value="test" readonly disabled placeholder="haha" bordered />);- expect(container);- });- test('input event', () => {- let a = 1;- const { container } = render(<Input value="test" readonly onClick={() => a++} disabled placeholder="haha" className="test" />);- fireEvent.click(document.querySelector('.test')!);- expect(a).toEqual(2);- });- test('input focue', () => {- let a = 1;- const { container } = render(<Input value="test" readonly onBlur={() => a++} disabled placeholder="haha" className="test" />);- fireEvent.blur(document.querySelector('.test')!);- expect(a).toEqual(2);- });- test('input blur', () => {- let a = 1;- const { container } = render(<Input value="test" readonly onFocus={() => a++} disabled placeholder="haha" className="test" />);- fireEvent.focus(document.querySelector('.test')!);- expect(a).toEqual(2);- });- test('input change', () => {- let a = 1;- const { container } = render(<Input value="test" readonly onChange={() => a++} disabled placeholder="haha" className="test" />);- fireEvent.change(document.querySelector('.test')!);- expect(a).toEqual(2);- });-});+import { fireEvent, render } from '@testing-library/react';++import { Input } from '..';++describe('input', () => {+ test('input', () => {+ const { container } = render(<Input value="test" readonly disabled placeholder="haha" bordered />);+ expect(container);+ });+ test('input event', () => {+ let a = 1;+ const { container } = render(<Input value="test" readonly onClick={() => a++} disabled placeholder="haha" className="test" />);+ fireEvent.click(document.querySelector('.test')!);+ expect(a).toEqual(2);+ });+ test('input focue', () => {+ let a = 1;+ const { container } = render(<Input value="test" readonly onBlur={() => a++} disabled placeholder="haha" className="test" />);+ fireEvent.blur(document.querySelector('.test')!);+ expect(a).toEqual(2);+ });+ test('input blur', () => {+ let a = 1;+ const { container } = render(<Input value="test" readonly onFocus={() => a++} disabled placeholder="haha" className="test" />);+ fireEvent.focus(document.querySelector('.test')!);+ expect(a).toEqual(2);+ });+ test('input change', () => {+ let a = 1;+ const { container } = render(<Input value="test" readonly onChange={() => a++} disabled placeholder="haha" className="test" />);+ fireEvent.change(document.querySelector('.test')!);+ expect(a).toEqual(2);+ });+});diff --git a/packages/base-ui/src/Components/Layout/test/Layout.test.tsx b/packages/base-ui/src/Components/Layout/test/Layout.test.tsxindex 7d70cbfbe4..5b811f4522 100644--- a/packages/base-ui/src/Components/Layout/test/Layout.test.tsx+++ b/packages/base-ui/src/Components/Layout/test/Layout.test.tsx@@ -1,11 +1,11 @@-import { render } from '@testing-library/preact';--import { Layout } from '..';--describe('Container', () => {- test('should display initial Container', () => {- const { container } = render(<Layout>container content Text</Layout>);-- expect(container.textContent).toMatch('container content Text');- });-});+import { render } from '@testing-library/react';++import { Layout } from '..';++describe('Container', () => {+ test('should display initial Container', () => {+ const { container } = render(<Layout>container content Text</Layout>);++ expect(container.textContent).toMatch('container content Text');+ });+});diff --git a/packages/base-ui/src/Components/Modal/test/index.test.tsx b/packages/base-ui/src/Components/Modal/test/index.test.tsxindex f4f9b7c42f..b33b70edad 100644--- a/packages/base-ui/src/Components/Modal/test/index.test.tsx+++ b/packages/base-ui/src/Components/Modal/test/index.test.tsx@@ -1,23 +1,20 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render, screen } from '@testing-library/preact';-import { Modal } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('Modal', () => {- const title = 'title';- const div = <div>btn</div>;- const modal = (- <Modal visible={true} title={title}>- {div}- </Modal>- );- test('Find Modal title', async () => {- render(modal);-- // fireEvent.click(screen.getByText('1'));-- expect(screen.getByText('btn'));- });-});+import { render, screen } from '@testing-library/react';++import { Modal } from '..';++describe('Modal', () => {+ const title = 'title';+ const div = <div>btn</div>;+ const modal = (+ <Modal visible={true} title={title}>+ {div}+ </Modal>+ );+ test('Find Modal title', async () => {+ render(modal);++ // fireEvent.click(screen.getByText('1'));++ expect(screen.getByText('btn'));+ });+});diff --git a/packages/base-ui/src/Components/Radio/test/index.test.tsx b/packages/base-ui/src/Components/Radio/test/index.test.tsxindex 9e7b1d1377..0c70d8a4af 100644--- a/packages/base-ui/src/Components/Radio/test/index.test.tsx+++ b/packages/base-ui/src/Components/Radio/test/index.test.tsx@@ -1,28 +1,25 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render, fireEvent, screen } from '@testing-library/preact';-import { RadioGroup, Radio } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('RadioGroup', () => {- let active = '0';- const group = (- <RadioGroup- active={active}- onChange={(value) => {- active = value;- }}- >- <Radio value="0" label="0"></Radio>- <Radio value="1" label="1"></Radio>- </RadioGroup>- );- test('click Radio', async () => {- render(group);-- fireEvent.click(screen.getByText('1'));-- expect(active).toBe('1');- });-});+import { fireEvent, render, screen } from '@testing-library/react';++import { Radio, RadioGroup } from '..';++describe('RadioGroup', () => {+ let active = '0';+ const group = (+ <RadioGroup+ active={active}+ onChange={(value) => {+ active = value;+ }}+ >+ <Radio value="0" label="0"></Radio>+ <Radio value="1" label="1"></Radio>+ </RadioGroup>+ );+ test('click Radio', async () => {+ render(group);++ fireEvent.click(screen.getByText('1'));++ expect(active).toBe('1');+ });+});diff --git a/packages/base-ui/src/Components/Slider/test/index.test.tsx b/packages/base-ui/src/Components/Slider/test/index.test.tsxindex c27db12a6c..3aa427ae3c 100644--- a/packages/base-ui/src/Components/Slider/test/index.test.tsx+++ b/packages/base-ui/src/Components/Slider/test/index.test.tsx@@ -1,22 +1,19 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render } from '@testing-library/preact';-import { Slider } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('input', () => {- test('input', () => {- // const dom = document.styleSheets[0];- // console.dir(dom);- const { container } = render(<Slider value={2} min={10} max={200} step={1} className="slider" style={{ color: 'red' }} />);-- expect(container);- });- // test('input event', () => {- // let a = 1;- // const { container } = render(<Input value="test" readonly onClick={() => a++} disabled placeholder="haha" className="test" />);- // fireEvent.click(document.querySelector('.test')!);- // expect(a).toEqual(2);- // });-});+import { render } from '@testing-library/react';++import { Slider } from '..';++describe('input', () => {+ test('input', () => {+ // const dom = document.styleSheets[0];+ // console.dir(dom);+ const { container } = render(<Slider value={2} min={10} max={200} step={1} className="slider" style={{ color: 'red' }} />);++ expect(container);+ });+ // test('input event', () => {+ // let a = 1;+ // const { container } = render(<Input value="test" readonly onClick={() => a++} disabled placeholder="haha" className="test" />);+ // fireEvent.click(document.querySelector('.test')!);+ // expect(a).toEqual(2);+ // });+});diff --git a/packages/base-ui/src/Components/Tabs/test/index.test.tsx b/packages/base-ui/src/Components/Tabs/test/index.test.tsxindex c83e2de3f7..ccb4879ac3 100644--- a/packages/base-ui/src/Components/Tabs/test/index.test.tsx+++ b/packages/base-ui/src/Components/Tabs/test/index.test.tsx@@ -1,23 +1,20 @@-import Enzyme from 'enzyme';-import Adapter from 'enzyme-adapter-preact-pure';-import { render } from '@testing-library/preact';-import { Tab, TabPane } from '..';--Enzyme.configure({ adapter: new Adapter() });--describe('tab', () => {- test('tab', () => {- const { container } = render(- <Tab activeKey="tab" type="card">- <TabPane tab="tab1" keys="tab">- test tab- </TabPane>- <TabPane tab="tab2" keys="tabs">- test tabs- </TabPane>- </Tab>- );-- expect(container);- });-});+import { render } from '@testing-library/react';++import { Tab, TabPane } from '..';++describe('tab', () => {+ test('tab', () => {+ const { container } = render(+ <Tab activeKey="tab" type="card">+ <TabPane tab="tab1" keys="tab">+ test tab+ </TabPane>+ <TabPane tab="tab2" keys="tabs">+ test tabs+ </TabPane>+ </Tab>+ );++ expect(container);+ });+});diff --git a/packages/base-ui/src/Components/Tooltip/test/index.test.tsx b/packages/base-ui/src/Components/Tooltip/test/index.test.tsxdeleted file mode 100644index ea65f1fdd1..0000000000--- a/packages/base-ui/src/Components/Tooltip/test/index.test.tsx+++ /dev/null@@ -1,29 +0,0 @@-// import Enzyme, { mount } from 'enzyme';-// import Adapter from 'enzyme-adapter-preact-pure';-// import { h } from 'react';-// import { render, fireEvent, screen, waitFor } from '@testing-library/preact';-// import { Tooltip } from '..';-// Enzyme.configure({ adapter: new Adapter() });--// describe('Tooltip', () => {-// const title = 'this is title';-// const div = <div>提示</div>;-// const tooltip = <Tooltip title={title}>{div}</Tooltip>;-// it('MouseLeave tooltip', async () => {-// render(tooltip);-// fireEvent.mouseLeave(screen.getByText('提示'));--// const ti = screen.getByText(title);-// const parent = ti.parentElement?.style.display;-// expect(ti).toEqual('inline-block');-// });--// it('MouseOver tooltip', () => {-// render(tooltip);--// fireEvent.mouseOver(screen.getByText('tooltip'));--// const ti = screen.getByText(title).parentElement?.style.display;-// expect(ti).toEqual('none');-// });-// });diff --git a/packages/common-plugin-data/jest.config.js b/packages/common-plugin-data/jest.config.jsindex 8cbf8940cc..a03fc8ad40 100644--- a/packages/common-plugin-data/jest.config.js+++ b/packages/common-plugin-data/jest.config.js@@ -1,5 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {- preset: 'ts-jest',- testEnvironment: 'node',-};\ No newline at end of file+ preset: 'ts-jest',+ testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],+ transform: {+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',+ },++ collectCoverage: true,+ coverageReporters: ['json', 'html'],+};diff --git a/packages/common-plugin-data/package.json b/packages/common-plugin-data/package.jsonindex 982d5d8475..33d901a9d7 100644--- a/packages/common-plugin-data/package.json+++ b/packages/common-plugin-data/package.json@@ -31,7 +31,7 @@],"private": false,"scripts": {- "test": "cross-env NODE_ENV=--experimental-vm-modules jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"license": "MIT",@@ -41,13 +41,13 @@"react-dom": "^18.2.0"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "jest": "29.0.0",- "jest-dev-server": "^6.1.1",- "ts-jest": "29.0.1",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"}}\ No newline at end of filediff --git a/packages/core/jest.config.js b/packages/core/jest.config.jsindex 01c168b64b..30d25668bf 100644--- a/packages/core/jest.config.js+++ b/packages/core/jest.config.js@@ -1,4 +1,4 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'node',@@ -9,10 +9,11 @@ module.exports = {testMatch: ['<rootDir>/**/test/**/*.test.ts'],// collectCoverageFrom: ['**/*.{js,jsx}', '!**/node_modules/**', '!**/vendor/**'],transform: {- '^.+\\.ts?$': [+ '^.+\\.(ts|tsx)$': ['ts-jest',{- experimentalDecorators: true,+ babel: true,+ tsconfig: 'tsconfig.json',},],},diff --git a/packages/core/package.json b/packages/core/package.jsonindex 50cdf78345..0ce189f240 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -40,7 +40,7 @@],"private": false,"scripts": {- "test": "cross-env NODE_ENV=--experimental-vm-modules jest --config=jest.config.js",+ "jest": "jest --config=jest.config.js","esbuild": "node ./esbuild.config.js","api": "node ./api.js","tsc": "tsc",@@ -63,16 +63,14 @@"rxjs": "^7.8.1"},"devDependencies": {- "@types/jest": "^28.1.8",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.4",- "jest": "29.0.0",+ "jest": "29.6.4","jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3","less": "^4.1.3",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"}}diff --git a/packages/sheets-plugin-filter/jest.config.js b/packages/sheets-plugin-filter/jest.config.jsindex ef2425ea8f..a03fc8ad40 100644--- a/packages/sheets-plugin-filter/jest.config.js+++ b/packages/sheets-plugin-filter/jest.config.js@@ -1,16 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',- coverageReporters: ['json', 'html'],- collectCoverage: true,testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.(js|jsx)$': 'babel-jest',- },- globals: {- 'ts-jest': {- tsconfig: '<rootDir>/tsconfig.test.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-filter/package.json b/packages/sheets-plugin-filter/package.jsonindex 010ab18cf8..732203ed14 100644--- a/packages/sheets-plugin-filter/package.json+++ b/packages/sheets-plugin-filter/package.json@@ -33,16 +33,16 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "27.0.3",+ "@types/jest": "29.5.4","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "jest": "29.0.0",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "4.1.1",- "ts-jest": "29.0.1"+ "ts-jest": "29.1.1"},"dependencies": {"@univerjs/base-render": "workspace:^0.0.1",diff --git a/packages/sheets-plugin-find/jest.config.js b/packages/sheets-plugin-find/jest.config.jsindex f378db4dc9..a03fc8ad40 100644--- a/packages/sheets-plugin-find/jest.config.js+++ b/packages/sheets-plugin-find/jest.config.js@@ -1,24 +1,20 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {- // preset: 'ts-jest',- preset: 'jest-puppeteer',+ preset: 'ts-jest',testEnvironment: 'jsdom',- // testRegex: "./*\\e2e\\.test\\.js$",moduleFileExtensions: ['js', 'ts', 'tsx'],roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- // '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- moduleNameMapper: {- '\\.(css|less)$': 'identity-obj-proxy',- },- globals: {- 'ts-jest': {- tsconfig: '<rootDir>/tsconfig.test.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},collectCoverage: true,diff --git a/packages/sheets-plugin-find/package.json b/packages/sheets-plugin-find/package.jsonindex b1385f6252..e4d542b94b 100644--- a/packages/sheets-plugin-find/package.json+++ b/packages/sheets-plugin-find/package.json@@ -33,20 +33,19 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/sheets-plugin-formula/jest.config.js b/packages/sheets-plugin-formula/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/sheets-plugin-formula/jest.config.js+++ b/packages/sheets-plugin-formula/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-formula/package.json b/packages/sheets-plugin-formula/package.jsonindex b1a61585c6..f9f9a148a8 100644--- a/packages/sheets-plugin-formula/package.json+++ b/packages/sheets-plugin-formula/package.json@@ -33,20 +33,19 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/sheets-plugin-image/jest.config.js b/packages/sheets-plugin-image/jest.config.jsindex 8ae70679c5..a03fc8ad40 100644--- a/packages/sheets-plugin-image/jest.config.js+++ b/packages/sheets-plugin-image/jest.config.js@@ -1,17 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {- testEnvironment: 'jsdom',preset: 'ts-jest',- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },- },+ testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],++ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest',+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-image/package.json b/packages/sheets-plugin-image/package.jsonindex 18a494786d..e6762b84bc 100644--- a/packages/sheets-plugin-image/package.json+++ b/packages/sheets-plugin-image/package.json@@ -33,20 +33,19 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/sheets-plugin-import-xlsx/jest.config.js b/packages/sheets-plugin-import-xlsx/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/sheets-plugin-import-xlsx/jest.config.js+++ b/packages/sheets-plugin-import-xlsx/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-import-xlsx/package.json b/packages/sheets-plugin-import-xlsx/package.jsonindex 6cbdaed762..f1beae600b 100644--- a/packages/sheets-plugin-import-xlsx/package.json+++ b/packages/sheets-plugin-import-xlsx/package.json@@ -33,17 +33,18 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/sheets-plugin-numfmt/jest.config.js b/packages/sheets-plugin-numfmt/jest.config.jsindex 8ae70679c5..a03fc8ad40 100644--- a/packages/sheets-plugin-numfmt/jest.config.js+++ b/packages/sheets-plugin-numfmt/jest.config.js@@ -1,17 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {- testEnvironment: 'jsdom',preset: 'ts-jest',- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },- },+ testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],++ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest',+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.jsonindex 385651bd78..2d39f2d622 100644--- a/packages/sheets-plugin-numfmt/package.json+++ b/packages/sheets-plugin-numfmt/package.json@@ -33,19 +33,18 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "^27.5.2",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "debug": "^4.3.3",- "identity-obj-proxy": "^3.0.0",- "jest-dev-server": "^6.1.1",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-css-modules-transform": "^4.4.2",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/sheets-plugin-operation/jest.config.js b/packages/sheets-plugin-operation/jest.config.jsindex ef2425ea8f..a03fc8ad40 100644--- a/packages/sheets-plugin-operation/jest.config.js+++ b/packages/sheets-plugin-operation/jest.config.js@@ -1,16 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',- coverageReporters: ['json', 'html'],- collectCoverage: true,testEnvironment: 'jsdom',+ moduleFileExtensions: ['js', 'ts', 'tsx'],++ roots: ['<rootDir>'],+ testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.(js|jsx)$': 'babel-jest',- },- globals: {- 'ts-jest': {- tsconfig: '<rootDir>/tsconfig.test.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/sheets-plugin-operation/package.json b/packages/sheets-plugin-operation/package.jsonindex 129ba1b549..8ef60aaa54 100644--- a/packages/sheets-plugin-operation/package.json+++ b/packages/sheets-plugin-operation/package.json@@ -33,17 +33,17 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "27.0.3",+ "@types/jest": "29.5.4","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",- "jest": "29.0.0",- "jest-environment-jsdom": "^29.0.3",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "4.1.1",- "ts-jest": "29.0.1"+ "ts-jest": "29.1.1"},"dependencies": {"@univerjs/base-render": "workspace:^0.0.1",diff --git a/packages/ui-plugin-docs/jest.config.js b/packages/ui-plugin-docs/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/ui-plugin-docs/jest.config.js+++ b/packages/ui-plugin-docs/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/ui-plugin-docs/package.json b/packages/ui-plugin-docs/package.jsonindex 8884775a5e..a2c303c304 100644--- a/packages/ui-plugin-docs/package.json+++ b/packages/ui-plugin-docs/package.json@@ -33,16 +33,17 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^16.4.6","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.2.1"},"dependencies": {diff --git a/packages/ui-plugin-sheets/jest.config.js b/packages/ui-plugin-sheets/jest.config.jsindex a1ab72c760..a03fc8ad40 100644--- a/packages/ui-plugin-sheets/jest.config.js+++ b/packages/ui-plugin-sheets/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: 'tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/ui-plugin-sheets/package.json b/packages/ui-plugin-sheets/package.jsonindex 27ed6bbb18..fb51082ccb 100644--- a/packages/ui-plugin-sheets/package.json+++ b/packages/ui-plugin-sheets/package.json@@ -37,17 +37,18 @@],"private": false,"scripts": {- "test": "jest",+ "jest": "jest -c jest.config.js","esbuild": "node ./esbuild.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^18.14.0","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.9.1"},"dependencies": {diff --git a/packages/ui-plugin-slides/jest.config.js b/packages/ui-plugin-slides/jest.config.jsindex a1ab72c760..0e8aab6c4a 100644--- a/packages/ui-plugin-slides/jest.config.js+++ b/packages/ui-plugin-slides/jest.config.js@@ -1,18 +1,22 @@-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */+/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */module.exports = {preset: 'ts-jest',testEnvironment: 'jsdom',moduleFileExtensions: ['js', 'ts', 'tsx'],- roots: ['<rootDir>/src'],+ roots: ['<rootDir>'],testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],transform: {- '^.+\\.(ts|tsx)$': 'ts-jest',- '^.+\\.tsx?$': 'babel-jest', // https://github.com/kulshekhar/ts-jest/issues/937#issuecomment-455431207- },- globals: {- 'ts-jest': {- tsConfig: 'tsconfig.json',- },+ '^.+\\.(ts|tsx)$': [+ 'ts-jest',+ {+ babel: true,+ tsconfig: '<rootDir>/tsconfig.json',+ },+ ],+ '.+\\.(css|less)$': 'jest-css-modules-transform',},++ collectCoverage: true,+ coverageReporters: ['json', 'html'],};diff --git a/packages/ui-plugin-slides/package.json b/packages/ui-plugin-slides/package.jsonindex f8c8d18cd2..0ce5e7ef30 100644--- a/packages/ui-plugin-slides/package.json+++ b/packages/ui-plugin-slides/package.json@@ -33,16 +33,17 @@],"private": true,"scripts": {- "test": "jest"+ "jest": "jest -c jest.config.js"},"devDependencies": {- "@types/jest": "^27.0.1",+ "@types/jest": "^29.5.4","@types/node": "^16.4.6","@types/react": "^18.2.21","@types/react-dom": "^18.2.7",+ "jest": "29.6.4",+ "jest-environment-jsdom": "^29.6.4","less": "^4.1.1",- "prettier": "^2.3.2",- "ts-jest": "29.0.1",+ "ts-jest": "29.1.1","ts-node": "^10.2.1"},"dependencies": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2c1e1bc296..e75795fb8f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -35,12 +35,6 @@ importers:'@types/numeral':specifier: ^2.0.2version: 2.0.2- '@types/react':- specifier: ^18.2.21- version: 18.2.21- '@types/react-dom':- specifier: ^18.2.7- version: 18.2.7'@typescript-eslint/eslint-plugin':specifier: ^6.6.0@@ -92,9 +86,6 @@ importers:execa:specifier: ^4.1.0version: 4.1.0- find-process:- specifier: ^1.4.7- version: 1.4.7husky:specifier: ^8.0.1version: 8.0.1@@ -160,8 +151,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -171,27 +162,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -241,12 +226,9 @@ importers:specifier: ^18.2.0version: 18.2.0([email protected])devDependencies:- '@playwright/test':- specifier: ^1.18.1- version: 1.18.1'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -256,33 +238,27 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0esbuild:specifier: ^0.17.10version: 0.17.10esbuild-style-plugin:specifier: ^1.6.1version: 1.6.2- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -315,8 +291,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -326,27 +302,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -400,8 +370,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -411,30 +381,24 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0esbuild:specifier: ^0.16.4version: 0.16.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -470,8 +434,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -481,15 +445,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -510,8 +477,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -521,18 +488,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -550,8 +517,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -561,24 +528,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -599,8 +563,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -610,24 +574,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -654,8 +615,8 @@ importers:version: 7.8.1devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -665,24 +626,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- enzyme:- specifier: ^3.11.0- version: 3.11.0- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -712,8 +670,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -723,15 +681,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -760,9 +721,12 @@ importers:specifier: ^7.8.1version: 7.8.1devDependencies:+ '@testing-library/react':+ specifier: ^14.0.0+ version: 14.0.0([email protected])([email protected])'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -772,27 +736,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- enzyme:- specifier: ^3.11.0- version: 3.11.0- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -810,8 +768,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -822,14 +780,14 @@ importers:specifier: ^18.2.7version: 18.2.7jest:- specifier: 29.0.0- version: 29.0.0(@types/[email protected])([email protected])- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -862,8 +820,8 @@ importers:version: 7.8.1devDependencies:'@types/jest':- specifier: ^28.1.8- version: 28.1.8+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -873,24 +831,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.4- version: 4.3.4jest:- specifier: 29.0.0- version: 29.0.0(@types/[email protected])([email protected])+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])jest-dev-server:specifier: ^6.1.1- version: 6.1.1([email protected])- jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ version: 6.1.1less:specifier: ^4.1.3version: 4.1.3ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -920,8 +872,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: 27.0.3- version: 27.0.3+ specifier: 29.5.4+ version: 29.5.4'@types/react':specifier: ^18.2.21version: 18.2.21@@ -929,17 +881,17 @@ importers:specifier: ^18.2.7version: 18.2.7jest:- specifier: 29.0.0- version: 29.0.0(@types/[email protected])([email protected])+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: 4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])packages/sheets-plugin-find:dependencies:@@ -972,8 +924,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -983,24 +935,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1036,8 +985,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -1047,24 +996,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1100,8 +1046,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -1111,24 +1057,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1167,8 +1110,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -1178,15 +1121,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1225,8 +1171,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.5.2- version: 27.5.2+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -1236,24 +1182,21 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7- debug:- specifier: ^4.3.3- version: 4.3.4- identity-obj-proxy:- specifier: ^3.0.0- version: 3.0.0- jest-dev-server:- specifier: ^6.1.1- version: 6.1.1([email protected])+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-css-modules-transform:+ specifier: ^4.4.2+ version: 4.4.2jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1289,8 +1232,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: 27.0.3- version: 27.0.3+ specifier: 29.5.4+ version: 29.5.4'@types/react':specifier: ^18.2.21version: 18.2.21@@ -1298,17 +1241,17 @@ importers:specifier: ^18.2.7version: 18.2.7jest:- specifier: 29.0.0- version: 29.0.0(@types/[email protected])([email protected])+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])jest-environment-jsdom:- specifier: ^29.0.3- version: 29.0.3+ specifier: ^29.6.4+ version: 29.6.4less:specifier: 4.1.1version: 4.1.1ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])packages/ui-plugin-docs:dependencies:@@ -1338,8 +1281,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^16.4.6version: 16.4.6@@ -1349,15 +1292,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.2.1version: 10.9.1(@types/[email protected])([email protected])@@ -1393,8 +1339,8 @@ importers:version: 7.8.1devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^18.14.0version: 18.14.0@@ -1404,15 +1350,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.9.1version: 10.9.1(@types/[email protected])([email protected])@@ -1445,8 +1394,8 @@ importers:version: 18.2.0([email protected])devDependencies:'@types/jest':- specifier: ^27.0.1- version: 27.0.3+ specifier: ^29.5.4+ version: 29.5.4'@types/node':specifier: ^16.4.6version: 16.4.6@@ -1456,15 +1405,18 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ jest:+ specifier: 29.6.4+ version: 29.6.4(@types/[email protected])([email protected])+ jest-environment-jsdom:+ specifier: ^29.6.4+ version: 29.6.4less:specifier: ^4.1.1version: 4.1.1- prettier:- specifier: ^2.3.2- version: 2.3.2ts-jest:- specifier: 29.0.1- version: 29.0.1(@babel/[email protected])([email protected])([email protected])([email protected])+ specifier: 29.1.1+ version: 29.1.1(@babel/[email protected])([email protected])([email protected])([email protected])ts-node:specifier: ^10.2.1version: 10.9.1(@types/[email protected])([email protected])@@ -3734,6 +3686,34 @@ packages:'@sinonjs/commons': 3.0.0dev: true+ /@testing-library/[email protected]:+ resolution: {integrity: sha512-0DGPd9AR3+iDTjGoMpxIkAsUihHZ3Ai6CneU6bRRrffXMgzCdlNk43jTrD2/5LT6CBb3MWTP8v510JzYtahD2w==}+ engines: {node: '>=14'}+ dependencies:+ '@babel/code-frame': 7.22.13+ '@babel/runtime': 7.22.15+ '@types/aria-query': 5.0.1+ aria-query: 5.1.3+ chalk: 4.1.2+ dom-accessibility-api: 0.5.16+ lz-string: 1.5.0+ pretty-format: 27.5.1+ dev: true++ resolution: {integrity: sha512-S04gSNJbYE30TlIMLTzv6QCTzt9AqIF5y6s6SzVFILNcNvbV/jU96GeiTPillGQo+Ny64M/5PV7klNYYgv5Dfg==}+ engines: {node: '>=14'}+ peerDependencies:+ react: ^18.0.0+ react-dom: ^18.0.0+ dependencies:+ '@babel/runtime': 7.22.15+ '@testing-library/dom': 9.3.1+ '@types/react-dom': 18.2.7+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: true+/@tootallnate/[email protected]:resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}engines: {node: '>= 10'}@@ -3759,6 +3739,10 @@ packages:resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==}dev: true+ /@types/[email protected]:+ resolution: {integrity: sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==}+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==}dependencies:@@ -3816,20 +3800,6 @@ packages:'@types/istanbul-lib-report': 3.0.0dev: true- /@types/[email protected]:- resolution: {integrity: sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg==}- dependencies:- jest-diff: 27.5.1- pretty-format: 27.5.1- dev: true-- /@types/[email protected]:- resolution: {integrity: sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==}- dependencies:- jest-matcher-utils: 27.5.1- pretty-format: 27.5.1- dev: true-/@types/[email protected]:resolution: {integrity: sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw==}dependencies:@@ -3837,6 +3807,13 @@ packages:pretty-format: 28.1.3dev: true+ /@types/[email protected]:+ resolution: {integrity: sha512-PhglGmhWeD46FYOVLt3X7TiWjzwuVGW9wG/4qocPevXMjCmrIc5b6db9WjeGE4QYVpUAWMDv3v0IiBwObY289A==}+ dependencies:+ expect: 29.6.4+ pretty-format: 29.6.3+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==}dependencies:@@ -4236,6 +4213,12 @@ packages:resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}dev: true+ resolution: {integrity: sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==}+ dependencies:+ deep-equal: 2.2.2+ dev: true+resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==}dependencies:@@ -4263,17 +4246,6 @@ packages:engines: {node: '>=8'}dev: true- resolution: {integrity: sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.2.0- es-abstract: 1.22.1- es-array-method-boxes-properly: 1.0.0- is-string: 1.0.7- dev: true-resolution: {integrity: sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==}engines: {node: '>= 0.4'}@@ -4342,10 +4314,10 @@ packages:engines: {node: '>=4'}dev: trueresolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==}dependencies:- follow-redirects: 1.15.2([email protected])+ follow-redirects: 1.15.2transitivePeerDependencies:- debugdev: true@@ -4453,10 +4425,6 @@ packages:engines: {node: '>=8'}dev: true- resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}- dev: true-resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==}engines: {node: '>= 5.10.0'}@@ -4598,30 +4566,6 @@ packages:resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}dev: true- resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}- dependencies:- boolbase: 1.0.0- css-select: 5.1.0- css-what: 6.1.0- domelementtype: 2.3.0- domhandler: 5.0.3- domutils: 3.1.0- dev: true-- resolution: {integrity: sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==}- engines: {node: '>= 6'}- dependencies:- cheerio-select: 2.1.0- dom-serializer: 2.0.0- domhandler: 5.0.3- domutils: 3.1.0- htmlparser2: 8.0.2- parse5: 7.1.2- parse5-htmlparser2-tree-adapter: 7.0.0- dev: true-resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}engines: {node: '>= 8.10.0'}@@ -4760,10 +4704,6 @@ packages:delayed-stream: 1.0.0dev: true- resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}- dev: true-resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==}engines: {node: '>= 6'}@@ -4925,16 +4865,6 @@ packages:resolution: {integrity: sha512-TcB+ZH9wZBG314jAUpKHPl1oYbRJV+nAT2YwZ9y4fmUN0FkEJa8e/hKZoOgzLYp1Z/CJdFhbhhGIGh0XG8W54Q==}dev: true- resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==}- dependencies:- boolbase: 1.0.0- css-what: 6.1.0- domhandler: 5.0.3- domutils: 3.1.0- nth-check: 2.1.1- dev: true-resolution: {integrity: sha512-FqUFzMlI5jpPl73R9FrUuittWM/t7RDEnyp0603MCNEy6PI/1PALIX1d15cui6UAN/V8tnIWZDMz6WoZD87eGQ==}dependencies:@@ -4942,11 +4872,6 @@ packages:get-css-data: 2.1.0dev: false- resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}- engines: {node: '>= 6'}- dev: true-resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}engines: {node: '>=4'}@@ -5086,6 +5011,29 @@ packages:optional: truedev: true+ resolution: {integrity: sha512-xjVyBf0w5vH0I42jdAZzOKVldmPgSulmiyPRywoyq7HXC9qdgo17kxJE+rdnif5Tz6+pIrpJI8dCpMNLIGkUiA==}+ dependencies:+ array-buffer-byte-length: 1.0.0+ call-bind: 1.0.2+ es-get-iterator: 1.1.3+ get-intrinsic: 1.2.1+ is-arguments: 1.1.1+ is-array-buffer: 3.0.2+ is-date-object: 1.0.5+ is-regex: 1.1.4+ is-shared-array-buffer: 1.0.2+ isarray: 2.0.5+ object-is: 1.1.5+ object-keys: 1.1.1+ object.assign: 4.1.4+ regexp.prototype.flags: 1.5.0+ side-channel: 1.0.4+ which-boxed-primitive: 1.0.2+ which-collection: 1.0.1+ which-typed-array: 1.1.11+ dev: true+resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}dev: true@@ -5193,10 +5141,6 @@ packages:path-type: 4.0.0dev: true- resolution: {integrity: sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==}- dev: true-resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}engines: {node: '>=0.10.0'}@@ -5211,16 +5155,8 @@ packages:esutils: 2.0.3dev: true- resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}- dependencies:- domelementtype: 2.3.0- domhandler: 5.0.3- entities: 4.5.0- dev: true-- resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}+ resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}dev: true@@ -5230,21 +5166,6 @@ packages:webidl-conversions: 7.0.0dev: true- resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}- engines: {node: '>= 4'}- dependencies:- domelementtype: 2.3.0- dev: true-- resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}- dependencies:- dom-serializer: 2.0.0- domelementtype: 2.3.0- domhandler: 5.0.3- dev: true-resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==}engines: {node: '>=8'}@@ -5300,40 +5221,6 @@ packages:engines: {node: '>=0.12'}dev: true- resolution: {integrity: sha512-i6cwm7hN630JXenxxJFBKzgLC3hMTafFQXflvzHgPmDhOBhxUWDe8AeRv1qp2/uWJ2Y8z5yLWMzmAfkTOiOCZg==}- dependencies:- has: 1.0.3- object-is: 1.1.5- dev: true-- resolution: {integrity: sha512-Dw8/Gs4vRjxY6/6i9wU0V+utmQO9kvh9XLnz3LIudviOnVYDEe2ec+0k+NQoMamn1VrjKgCUOWj5jG/5M5M0Qw==}- dependencies:- array.prototype.flat: 1.3.1- cheerio: 1.0.0-rc.12- enzyme-shallow-equal: 1.0.5- function.prototype.name: 1.1.6- has: 1.0.3- html-element-map: 1.3.1- is-boolean-object: 1.1.2- is-callable: 1.2.7- is-number-object: 1.0.7- is-regex: 1.1.4- is-string: 1.0.7- is-subset: 0.1.1- lodash.escape: 4.0.1- lodash.isequal: 4.5.0- object-inspect: 1.12.3- object-is: 1.1.5- object.assign: 4.1.4- object.entries: 1.1.7- object.values: 1.1.7- raf: 3.4.1- rst-selector-parser: 2.2.3- string.prototype.trim: 1.2.7- dev: true-resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==}hasBin: true@@ -5394,8 +5281,18 @@ packages:which-typed-array: 1.1.11dev: true- resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==}+ resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}+ dependencies:+ call-bind: 1.0.2+ get-intrinsic: 1.2.1+ has-symbols: 1.0.3+ is-arguments: 1.1.1+ is-map: 2.0.2+ is-set: 2.0.2+ is-string: 1.0.7+ isarray: 2.0.5+ stop-iteration-iterator: 1.0.0dev: true@@ -6155,7 +6052,7 @@ packages:resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==}dev: trueresolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}engines: {node: '>=4.0'}peerDependencies:@@ -6163,8 +6060,6 @@ packages:peerDependenciesMeta:debug:optional: true- dependencies:- debug: 4.3.4dev: true@@ -6460,10 +6355,6 @@ packages:engines: {node: '>=6'}dev: true- resolution: {integrity: sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==}- dev: true-resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}dev: true@@ -6526,13 +6417,6 @@ packages:lru-cache: 6.0.0dev: true- resolution: {integrity: sha512-6XMlxrAFX4UEEGxctfFnmrFaaZFNf9i5fNuV5wZ3WWQ4FVaNP1aX1LkX9j2mfEx1NpjeE/rL3nmgEn23GdFmrg==}- dependencies:- array.prototype.filter: 1.0.3- call-bind: 1.0.2- dev: true-resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==}engines: {node: '>=12'}@@ -6544,15 +6428,6 @@ packages:resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}dev: true- resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}- dependencies:- domelementtype: 2.3.0- domhandler: 5.0.3- domutils: 3.1.0- entities: 4.5.0- dev: true-resolution: {integrity: sha512-qsh/wKe1Mk1vtYEFr+LpQBFWTO1gxZQBdii2D0Umj+IUQ23r5sT088Rhpq4XzpSyIpaX7vwjB8Rrtx8u9JTg+Q==}dev: true@@ -6618,6 +6493,7 @@ packages:resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}engines: {node: '>=0.10.0'}+ requiresBuild: truedependencies:safer-buffer: 2.1.2dev: true@@ -6631,13 +6507,6 @@ packages:postcss: 8.4.29dev: true- resolution: {integrity: sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==}- engines: {node: '>=4'}- dependencies:- harmony-reflect: 1.6.2- dev: true-resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}engines: {node: '>= 4'}@@ -6733,6 +6602,14 @@ packages:resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==}dev: true+ resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}+ engines: {node: '>= 0.4'}+ dependencies:+ call-bind: 1.0.2+ has-tostringtag: 1.0.0+ dev: true+resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==}dependencies:@@ -6838,6 +6715,10 @@ packages:is-docker: 3.0.0dev: true+ resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==}+ dev: true+resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==}engines: {node: '>= 0.4'}@@ -6887,6 +6768,10 @@ packages:has-tostringtag: 1.0.0dev: true+ resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==}+ dev: true+resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==}dependencies:@@ -6917,10 +6802,6 @@ packages:better-path-resolve: 1.0.0dev: true- resolution: {integrity: sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==}- dev: true-resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==}engines: {node: '>= 0.4'}@@ -6946,12 +6827,23 @@ packages:resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}dev: true+ resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==}+ dev: true+resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}dependencies:call-bind: 1.0.2dev: true+ resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==}+ dependencies:+ call-bind: 1.0.2+ get-intrinsic: 1.2.1+ dev: true+resolution: {integrity: sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==}dev: true@@ -7091,6 +6983,35 @@ packages:- supports-colordev: true+ resolution: {integrity: sha512-+uMCQ7oizMmh8ZwRfZzKIEszFY9ksjjEQnTEMTaL7fYiL3Kw4XhqT9bYh+A4DQKUb67hZn2KbtEnDuHvcgK4pQ==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ hasBin: true+ peerDependencies:+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0+ peerDependenciesMeta:+ node-notifier:+ optional: true+ dependencies:+ '@jest/core': 29.6.4([email protected])+ '@jest/test-result': 29.6.4+ '@jest/types': 29.6.3+ chalk: 4.1.2+ exit: 0.1.2+ graceful-fs: 4.2.11+ import-local: 3.1.0+ jest-config: 29.6.4(@types/[email protected])([email protected])+ jest-util: 29.6.3+ jest-validate: 29.6.3+ prompts: 2.4.2+ yargs: 17.7.2+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - supports-color+ - ts-node+ dev: true+resolution: {integrity: sha512-+uMCQ7oizMmh8ZwRfZzKIEszFY9ksjjEQnTEMTaL7fYiL3Kw4XhqT9bYh+A4DQKUb67hZn2KbtEnDuHvcgK4pQ==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}@@ -7120,6 +7041,47 @@ packages:- ts-nodedev: true+ resolution: {integrity: sha512-JWohr3i9m2cVpBumQFv2akMEnFEPVOh+9L2xIBJhJ0zOaci2ZXuKJj0tgMKQCBZAKA09H049IR4HVS/43Qb19A==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ peerDependencies:+ '@types/node': '*'+ ts-node: '>=9.0.0'+ peerDependenciesMeta:+ '@types/node':+ optional: true+ ts-node:+ optional: true+ dependencies:+ '@babel/core': 7.22.15+ '@jest/test-sequencer': 29.6.4+ '@jest/types': 29.6.3+ '@types/node': 16.4.6+ babel-jest: 29.6.4(@babel/[email protected])+ chalk: 4.1.2+ ci-info: 3.8.0+ deepmerge: 4.3.1+ glob: 7.2.3+ graceful-fs: 4.2.11+ jest-circus: 29.6.4+ jest-environment-node: 29.6.4+ jest-get-type: 29.6.3+ jest-regex-util: 29.6.3+ jest-resolve: 29.6.4+ jest-runner: 29.6.4+ jest-util: 29.6.3+ jest-validate: 29.6.3+ micromatch: 4.0.5+ parse-json: 5.2.0+ pretty-format: 29.6.3+ slash: 3.0.0+ strip-json-comments: 3.1.1+ ts-node: 10.9.1(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - babel-plugin-macros+ - supports-color+ dev: true+resolution: {integrity: sha512-JWohr3i9m2cVpBumQFv2akMEnFEPVOh+9L2xIBJhJ0zOaci2ZXuKJj0tgMKQCBZAKA09H049IR4HVS/43Qb19A==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}@@ -7161,7 +7123,16 @@ packages:- supports-colordev: true+ resolution: {integrity: sha512-qsUVOcY26chaFMJNMVrFYJBtYvPt1TImi9FWGaVycfsP6xnFW2HlnKRdZdKdg2LVVBv2Q9M4aLv7IbxPSXqPmg==}+ engines: {node: '>=10.0.0'}+ dependencies:+ camelcase: 6.3.0+ postcss: 8.4.29+ postcss-nested: 5.0.6([email protected])+ dev: true+resolution: {integrity: sha512-z5LnaGDvlIkdMv/rppSO4+rq+GyQKf1xI9oiBxf9/2EBeN2hxRaWiMvaLNDnHPZj2PAhBXsycrKslDDoZO2Xtw==}dependencies:chalk: 4.1.2@@ -7170,7 +7141,7 @@ packages:prompts: 2.4.2spawnd: 6.2.0tree-kill: 1.2.2- wait-on: 6.0.1([email protected])+ wait-on: 6.0.1transitivePeerDependencies:- debug- supports-color@@ -7224,9 +7195,14 @@ packages:pretty-format: 29.6.3dev: true- resolution: {integrity: sha512-KIGvpm12c71hoYTjL4wC2c8K6KfhOHJqJtaHc1IApu5rG047YWZoEP13BlbucWfzGISBrmli8KFqdhdQEa8Wnw==}+ resolution: {integrity: sha512-K6wfgUJ16DoMs02JYFid9lOsqfpoVtyJxpRlnTxUHzvZWBnnh2VNGRB9EC1Cro96TQdq5TtSjb3qUjNaJP9IyA==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ peerDependencies:+ canvas: ^2.5.0+ peerDependenciesMeta:+ canvas:+ optional: truedependencies:'@jest/environment': 29.6.4'@jest/fake-timers': 29.6.4@@ -7238,7 +7214,6 @@ packages:jsdom: 20.0.3transitivePeerDependencies:- bufferutil- - canvas- supports-color- utf-8-validatedev: true@@ -7307,16 +7282,6 @@ packages:pretty-format: 27.5.1dev: true- resolution: {integrity: sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==}- engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}- dependencies:- chalk: 4.1.2- jest-diff: 27.5.1- jest-get-type: 27.5.1- pretty-format: 27.5.1- dev: true-resolution: {integrity: sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==}engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}@@ -7606,6 +7571,48 @@ packages:- ts-nodedev: true+ resolution: {integrity: sha512-tEFhVQFF/bzoYV1YuGyzLPZ6vlPrdfvDmmAxudA1dLEuiztqg2Rkx20vkKY32xiDROcD2KXlgZ7Cu8RPeEHRKw==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ hasBin: true+ peerDependencies:+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0+ peerDependenciesMeta:+ node-notifier:+ optional: true+ dependencies:+ '@jest/core': 29.6.4([email protected])+ '@jest/types': 29.6.3+ import-local: 3.1.0+ jest-cli: 29.6.4(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - supports-color+ - ts-node+ dev: true++ resolution: {integrity: sha512-tEFhVQFF/bzoYV1YuGyzLPZ6vlPrdfvDmmAxudA1dLEuiztqg2Rkx20vkKY32xiDROcD2KXlgZ7Cu8RPeEHRKw==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ hasBin: true+ peerDependencies:+ node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0+ peerDependenciesMeta:+ node-notifier:+ optional: true+ dependencies:+ '@jest/core': 29.6.4([email protected])+ '@jest/types': 29.6.3+ import-local: 3.1.0+ jest-cli: 29.6.4(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - supports-color+ - ts-node+ dev: true+resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}dev: true@@ -7692,7 +7699,7 @@ packages:whatwg-encoding: 2.0.0whatwg-mimetype: 3.0.0whatwg-url: 11.0.0- ws: 8.13.0+ ws: 8.14.1xml-name-validator: 4.0.0transitivePeerDependencies:- bufferutil@@ -7996,14 +8003,6 @@ packages:resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==}dev: true- resolution: {integrity: sha512-nXEOnb/jK9g0DYMr1/Xvq6l5xMD7GDG55+GSYIYmS0G4tBk/hURD4JR9WCavs04t33WmJx9kCyp9vJ+mr4BOUw==}- dev: true-- resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==}- dev: true-resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}dev: true@@ -8079,7 +8078,6 @@ packages:hasBin: truedependencies:js-tokens: 4.0.0- dev: falseresolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==}@@ -8116,6 +8114,11 @@ packages:jszip: 3.10.1dev: false+ resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}+ hasBin: true+ dev: true+resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}engines: {node: '>=6'}@@ -8296,10 +8299,6 @@ packages:engines: {node: '>= 8.0.0'}dev: true- resolution: {integrity: sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==}- dev: true-resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}dev: true@@ -8328,16 +8327,6 @@ packages:resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}dev: true- resolution: {integrity: sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==}- hasBin: true- dependencies:- commander: 2.20.3- moo: 0.5.2- railroad-diagrams: 1.0.0- randexp: 0.4.6- dev: true-resolution: {integrity: sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==}engines: {node: '>= 4.4.x'}@@ -8412,12 +8401,6 @@ packages:path-key: 4.0.0dev: true- resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}- dependencies:- boolbase: 1.0.0- dev: true-resolution: {integrity: sha512-qaKRmtYPZ5qdw4jWJD6bxEf1FJEqllJrwxCLIm0sQU/A7v2/czigzOb+C2uSiFsa9lBUzeH7M1oK+Q+OLxL3kA==}dev: false@@ -8648,13 +8631,6 @@ packages:engines: {node: '>=0.10.0'}dev: true- resolution: {integrity: sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==}- dependencies:- domhandler: 5.0.3- parse5: 7.1.2- dev: true-resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}dependencies:@@ -8707,10 +8683,6 @@ packages:resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}dev: true- resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==}- dev: true-resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}dev: true@@ -8851,6 +8823,16 @@ packages:string-hash: 1.1.3dev: true+ resolution: {integrity: sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==}+ engines: {node: '>=12.0'}+ peerDependencies:+ postcss: ^8.2.14+ dependencies:+ postcss: 8.4.29+ postcss-selector-parser: 6.0.13+ dev: true+resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==}engines: {node: '>=4'}@@ -9022,24 +9004,6 @@ packages:engines: {node: '>=8'}dev: true- resolution: {integrity: sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==}- dependencies:- performance-now: 2.1.0- dev: true-- resolution: {integrity: sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==}- dev: true-- resolution: {integrity: sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==}- engines: {node: '>=0.12'}- dependencies:- discontinuous-range: 1.0.0- ret: 0.1.15- dev: true-resolution: {integrity: sha512-zWE5E88zmjPXFhv6mGnRZqKin9s5vip1O3IIGynY9EhZxN8MATUxZkT3e/9OwTEm4DjQBXc6PFWP6AetY+Px+A==}peerDependencies:@@ -9058,7 +9022,6 @@ packages:loose-envify: 1.4.0react: 18.2.0scheduler: 0.23.0- dev: falseresolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}@@ -9073,7 +9036,6 @@ packages:engines: {node: '>=0.10.0'}dependencies:loose-envify: 1.4.0- dev: falseresolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}@@ -9251,11 +9213,6 @@ packages:signal-exit: 3.0.7dev: true- resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==}- engines: {node: '>=0.12'}- dev: true-resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}engines: {node: '>= 4'}@@ -9282,13 +9239,6 @@ packages:engines: {node: '>=10.0.0'}dev: true- resolution: {integrity: sha512-nDG1rZeP6oFTLN6yNDV/uiAvs1+FS/KlrEwh7+y7dpuApDBy6bI2HTBcc0/V8lv9OTqfyD34eF7au2pm8aBbhA==}- dependencies:- lodash.flattendeep: 4.4.0- nearley: 2.20.1- dev: true-resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}engines: {node: '>=12'}@@ -9364,7 +9314,6 @@ packages:resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==}dependencies:loose-envify: 1.4.0- dev: falseresolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}@@ -9608,6 +9557,13 @@ packages:escape-string-regexp: 2.0.0dev: true+ resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}+ engines: {node: '>= 0.4'}+ dependencies:+ internal-slot: 1.0.5+ dev: true+resolution: {integrity: sha512-9GHUiM5hMiCi6Y03jD2ARC1ettBXkQBoQAe7nJsPknnI0ow10aXjTnew8QtYQmLjzn974BnmWEAJgCY6ZP1DeQ==}dependencies:@@ -9880,7 +9836,7 @@ packages:typescript: 5.2.2dev: true- /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):+ /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-htQOHshgvhn93QLxrmxpiQPk69+M1g7govO1g6kf6GsjCv4uvRV0znVmDrrvjUrVCnTYeY4FBxTYYYD4airyJA==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}hasBin: true@@ -9903,7 +9859,7 @@ packages:dependencies:'@babel/core': 7.22.15bs-logger: 0.2.6- esbuild: 0.16.4+ esbuild: 0.19.2fast-json-stable-stringify: 2.1.0jest: 29.0.0(@types/[email protected])([email protected])jest-util: 29.6.3@@ -9915,8 +9871,8 @@ packages:yargs-parser: 21.1.1dev: true- /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):- resolution: {integrity: sha512-htQOHshgvhn93QLxrmxpiQPk69+M1g7govO1g6kf6GsjCv4uvRV0znVmDrrvjUrVCnTYeY4FBxTYYYD4airyJA==}+ /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}hasBin: truepeerDependencies:@@ -9925,7 +9881,42 @@ packages:babel-jest: ^29.0.0esbuild: '*'jest: ^29.0.0- typescript: '>=4.3'+ typescript: '>=4.3 <6'+ peerDependenciesMeta:+ '@babel/core':+ optional: true+ '@jest/types':+ optional: true+ babel-jest:+ optional: true+ esbuild:+ optional: true+ dependencies:+ '@babel/core': 7.22.15+ bs-logger: 0.2.6+ esbuild: 0.16.4+ fast-json-stable-stringify: 2.1.0+ jest: 29.6.4(@types/[email protected])([email protected])+ jest-util: 29.6.3+ json5: 2.2.3+ lodash.memoize: 4.1.2+ make-error: 1.3.6+ semver: 7.5.4+ typescript: 5.2.2+ yargs-parser: 21.1.1+ dev: true++ /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ hasBin: true+ peerDependencies:+ '@babel/core': '>=7.0.0-beta.0 <8'+ '@jest/types': ^29.0.0+ babel-jest: ^29.0.0+ esbuild: '*'+ jest: ^29.0.0+ typescript: '>=4.3 <6'peerDependenciesMeta:'@babel/core':optional: true@@ -9940,7 +9931,7 @@ packages:bs-logger: 0.2.6esbuild: 0.17.10fast-json-stable-stringify: 2.1.0- jest: 29.0.0(@types/[email protected])([email protected])+ jest: 29.6.4(@types/[email protected])([email protected])jest-util: 29.6.3json5: 2.2.3lodash.memoize: 4.1.2@@ -9950,8 +9941,8 @@ packages:yargs-parser: 21.1.1dev: true- /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):- resolution: {integrity: sha512-htQOHshgvhn93QLxrmxpiQPk69+M1g7govO1g6kf6GsjCv4uvRV0znVmDrrvjUrVCnTYeY4FBxTYYYD4airyJA==}+ /[email protected](@babel/[email protected])([email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}hasBin: truepeerDependencies:@@ -9960,7 +9951,7 @@ packages:babel-jest: ^29.0.0esbuild: '*'jest: ^29.0.0- typescript: '>=4.3'+ typescript: '>=4.3 <6'peerDependenciesMeta:'@babel/core':optional: true@@ -9975,7 +9966,7 @@ packages:bs-logger: 0.2.6esbuild: 0.19.2fast-json-stable-stringify: 2.1.0- jest: 29.0.0(@types/[email protected])([email protected])+ jest: 29.6.4(@types/[email protected])([email protected])jest-util: 29.6.3json5: 2.2.3lodash.memoize: 4.1.2@@ -10366,12 +10357,12 @@ packages:xml-name-validator: 4.0.0dev: trueresolution: {integrity: sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==}engines: {node: '>=10.0.0'}hasBin: truedependencies:- axios: 0.25.0([email protected])+ axios: 0.25.0joi: 17.10.1lodash: 4.17.21minimist: 1.2.8@@ -10427,6 +10418,15 @@ packages:is-symbol: 1.0.4dev: true+ resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==}+ dependencies:+ is-map: 2.0.2+ is-set: 2.0.2+ is-weakmap: 2.0.1+ is-weakset: 2.0.2+ dev: true+resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==}dev: true@@ -10526,8 +10526,8 @@ packages:optional: truedev: true- resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==}+ resolution: {integrity: sha512-4OOseMUq8AzRBI/7SLMUwO+FEDnguetSk7KMb1sHwvF2w2Wv5Hoj0nlifx8vtGsftE/jWHojPy8sMMzYLJ2G/A==}engines: {node: '>=10.0.0'}peerDependencies:bufferutil: ^4.0.1diff --git a/scripts/build.js b/scripts/build.jsdeleted file mode 100644index 7181f46fc3..0000000000--- a/scripts/build.js+++ /dev/null@@ -1,70 +0,0 @@-const execa = require('execa');-const os = require('os');-// scripts/build.ts-const { build } = require('esbuild');-const { promises } = require('fs');-const { resolve, join } = require('path');-const { targets: allTargets, covertToPascalCase } = require('./utils');-const { commonBuildOptions, hasFolder } = require('./common');-const { Bright, FgCyan, FgGreen, Reset } = require('./color');--// TODO: run => build d.ts => build esm/umd--run();--async function run() {- await buildAll(allTargets);-}-// Reference https://github.com/vuejs/vue-next/blob/master/scripts/build.js-async function buildAll(targets) {- await runParallel(os.cpus().length, targets, buildTarget);-}--async function runParallel(maxConcurrency, source, iteratorFn) {- const ret = [];- const executing = [];- for (const item of source) {- const p = Promise.resolve().then(() => iteratorFn(item));- ret.push(p);-- if (maxConcurrency <= source.length) {- const e = p.then(() => executing.splice(executing.indexOf(e), 1));- executing.push(e);- if (executing.length >= maxConcurrency) {- await Promise.race(executing);- }- }- }- return Promise.all(ret);-}--async function buildTarget(target) {- const buildPaths = {- entry: resolve(__dirname, `../packages/${target}/src/index.ts`),- // cssEntry: resolve(root, "./src/index.css"),- index: resolve(__dirname, `../packages/${target}/public/index.html`),- out: resolve(__dirname, `../packages/${target}/lib`),- outfile: resolve(__dirname, `../packages/${target}/lib/univer-${target}.js`),- outDev: resolve(__dirname, `../packages/${target}/local`),- };-- if (hasFolder(buildPaths.outDev)) {- promises.rm(buildPaths.out, { recursive: true });- }-- await build({- ...commonBuildOptions,- entryPoints: [buildPaths.entry],- // outdir: buildPaths.out,- define: { 'process.env.NODE_ENV': '"production"' },- format: 'esm',- globalName: `Univer${covertToPascalCase(target)}`,- outfile: buildPaths.outfile,- // minify: true,- // outExtension:{'.js':'.cjs'}, // esm => .js, cjs => .cjs, iife => .iife.js- packages: 'external',- sourcemap: false,- });-- console.log(`${FgGreen}Build success: ${Reset}${target}`);-}diff --git a/scripts/test.js b/scripts/test.jsdeleted file mode 100644index 7310d11a7f..0000000000--- a/scripts/test.js+++ /dev/null@@ -1,29 +0,0 @@-const execa = require('execa');-const child_process = require('child_process');-const { osType } = require('./utils');--const isCI = process.env.CI === 'true';--const devTarget = '@univerjs/core';--run();--async function run() {- await testAll(devTarget);-}--async function testAll(target) {- if (isCI) {- // https://jestjs.io/docs/troubleshooting#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server- await execa('pnpm', ['run', '--filter', target, 'test', '--runInBand'], { stdio: 'inherit' });- return;- }-- if (osType() === 'windows') {- child_process.exec('start /B node scripts/server.js');- } else if (osType() === 'mac') {- child_process.exec('node scripts/server.js');- }-- await execa('pnpm', ['run', '--filter', target, 'test'], { stdio: 'inherit' });-}diff --git a/turbo.json b/turbo.jsonindex 46f3ebc786..8638f7d2bd 100644--- a/turbo.json+++ b/turbo.json@@ -1,6 +1,8 @@{"$schema": "https://turbo.build/schema.json","pipeline": {+ "jest": {+ },"esbuild": {},"esbuild:demo": {