From 611cae0134d809f9012266c689a8ac2e883df573 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 17:37:28 +0100 Subject: [PATCH 01/23] Run the tests under Vitest and remove Jest and Babel (#296) yarn react-test and yarn test now run `vitest run` on the Vite the shell already uses. Jest, babel-jest, every direct @babel/* entry, the Babel resolutions pin, jest.config.js, the Babel transform and the CSS file mock are gone. Only vitest and jsdom are added. - One root vitest.config.mjs: jsdom, globals off, ordered setup (bridge, then the MobX action-warning check), aliases for electron, the Sentry renderer entry and filenamify. - Support files move from jest/ to src/test/. - Every test and support file imports what it uses from vitest; jest.fn/spyOn/restoreAllMocks become the vi.* calls. - The four jest.isolateModules files use vi.resetModules() and await import(); getActiveState uses vi.hoisted with a top-level vi.mock. - The four tests that hold JSX are renamed to .jsx, and the page Node-import scan skips .test.jsx as it skips .test.js. - The setImmediate polyfill, the react-app/jest lint preset and the five testing-library disable comments are deleted. - vitest.config.mjs is excluded from the packaged app, with a pack-test assertion. Same 66 files and 471 tests pass, with equal per-file counts under Jest on master and under Vitest. Notes for the pull request: - Under Vitest's jsdom, `instanceof Error` is true for an error Node's fs throws, and Node's setImmediate is present. The realm mismatch behind "Catch message under Jest" no longer holds. - yarn lint exits 0 but now prints a babel-preset-react-app notice: without the removed resolutions pin, @babel/plugin-proposal-private-property-in-object resolves to the preset-env placeholder. - yarn.lock: jest, babel-jest, every @jest/* and jest-* stanza are gone (133 names removed in all). Remaining @babel/* stanzas are required by eslint-config-react-app, @vitejs/plugin-react, electron-vite, @emotion or @mui; eslint-plugin-jest stays for eslint-config-react-app. Co-Authored-By: Claude Fable 5.2 --- .eslintrc.cjs | 2 +- e2e/helpers/modeltestOutcome.test.js | 2 + e2e/helpers/newick.test.js | 2 + e2e/helpers/raxmlHpcOutcome.test.js | 2 + e2e/helpers/raxmlNgOutcome.test.js | 2 + jest.config.js | 17 - jest/babelTransform.js | 16 - jest/fileMock.js | 1 - package.json | 22 +- src/app/{App.test.js => App.test.jsx} | 4 +- src/app/bootstrap.test.js | 22 +- ...rorDialog.test.js => ErrorDialog.test.jsx} | 11 +- ...oppedFile.test.js => droppedFile.test.jsx} | 12 +- src/app/paths.test.js | 3 +- src/app/promisedComputed.test.js | 3 +- src/app/report.test.js | 3 +- src/app/store/AlignmentOptions.test.js | 3 +- src/app/store/InputFile.test.js | 21 +- src/app/store/Option.test.js | 3 +- src/app/store/OutGroup.test.js | 5 +- src/app/store/Part.test.js | 3 +- src/app/store/Partition.test.js | 5 +- src/app/store/Run.computeds.test.js | 5 +- src/app/store/RunList.test.js | 9 +- src/app/store/RunSimpleOptions.test.js | 3 +- src/app/store/alignmentStore.test.js | 26 +- src/app/store/astral.test.js | 5 +- src/app/store/cancelRun.test.js | 11 +- src/app/store/checkOutputName.test.js | 5 +- src/app/store/citationConfig.test.js | 15 +- src/app/store/finalAlignment.test.js | 15 +- src/app/store/host.test.js | 30 +- src/app/store/loadAlignment.test.js | 7 +- src/app/store/loadAstralTree.test.js | 7 +- src/app/store/loadPartitionFile.test.js | 9 +- src/app/store/loadTree.test.js | 7 +- src/app/store/menu.test.js | 3 +- src/app/store/modelSelection.test.js | 7 +- src/app/store/openPath.test.js | 7 +- src/app/store/pageStoreGaps.test.js | 7 +- src/app/store/parseAlignment.test.js | 5 +- src/app/store/provideStateReport.test.js | 13 +- src/app/store/readText.test.js | 5 +- src/app/store/runInputActions.test.js | 11 +- src/app/store/runLifecycle.test.js | 19 +- src/app/store/selectOutputDir.test.js | 7 +- src/app/store/showItemInFolder.test.js | 9 +- src/app/store/startRun.test.js | 5 +- src/app/store/substitutionOptions.test.js | 3 +- src/app/store/treeFileOptions.test.js | 9 +- src/app/store/version.test.js | 5 +- .../store/writeConcatenatedAlignment.test.js | 5 +- ...dError.test.js => unhandledError.test.jsx} | 4 +- src/main/cancelRun.test.js | 3 +- src/main/checkOutput.test.js | 3 +- src/main/debugInfo.test.js | 3 +- src/main/getActiveState.test.js | 19 +- src/main/pageWindowPreferences.test.js | 3 +- src/main/parseAlignment.test.js | 3 +- src/main/selectAlignment.test.js | 9 +- src/main/selectAstralFile.test.js | 9 +- src/main/selectOutputDir.test.js | 9 +- src/main/selectPartitionFile.test.js | 9 +- src/main/selectTree.test.js | 9 +- src/main/updates.test.js | 28 +- src/mobxActionWarning.test.js | 5 +- src/pack.test.js | 4 +- src/pageNodeImports.test.js | 6 +- src/preload.test.js | 4 +- src/sourceMaps.test.js | 4 +- {jest => src/test}/electron.js | 0 {jest => src/test}/mobxActionWarning.js | 6 +- {jest => src/test}/sentry.js | 0 {jest => src/test}/setup.js | 2 +- {jest => src/test}/storeBridge.js | 4 +- src/typecheckBaseline.test.js | 4 +- vitest.config.mjs | 23 + yarn.lock | 2880 +++-------------- 78 files changed, 767 insertions(+), 2724 deletions(-) delete mode 100644 jest.config.js delete mode 100644 jest/babelTransform.js delete mode 100644 jest/fileMock.js rename src/app/{App.test.js => App.test.jsx} (75%) rename src/app/components/{ErrorDialog.test.js => ErrorDialog.test.jsx} (91%) rename src/app/{droppedFile.test.js => droppedFile.test.jsx} (94%) rename src/app/{unhandledError.test.js => unhandledError.test.jsx} (88%) rename {jest => src/test}/electron.js (100%) rename {jest => src/test}/mobxActionWarning.js (79%) rename {jest => src/test}/sentry.js (100%) rename {jest => src/test}/setup.js (97%) rename {jest => src/test}/storeBridge.js (88%) create mode 100644 vitest.config.mjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 717936db..fca77337 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,6 +1,6 @@ module.exports = { root: true, - extends: ['react-app', 'react-app/jest'], + extends: ['react-app'], ignorePatterns: ['build/', 'dist/', 'docs/', 'node_modules/'], plugins: ['lodash'], rules: { diff --git a/e2e/helpers/modeltestOutcome.test.js b/e2e/helpers/modeltestOutcome.test.js index 5c0e1945..5f6a1e5d 100644 --- a/e2e/helpers/modeltestOutcome.test.js +++ b/e2e/helpers/modeltestOutcome.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + const { parseModelTestLog } = require('./modeltestOutcome'); const { compareOutcome, formatReport } = require('./fixtures'); diff --git a/e2e/helpers/newick.test.js b/e2e/helpers/newick.test.js index f824768b..5f444bf9 100644 --- a/e2e/helpers/newick.test.js +++ b/e2e/helpers/newick.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + const { parseNewick, getTaxa, diff --git a/e2e/helpers/raxmlHpcOutcome.test.js b/e2e/helpers/raxmlHpcOutcome.test.js index b2be78d3..fd080e93 100644 --- a/e2e/helpers/raxmlHpcOutcome.test.js +++ b/e2e/helpers/raxmlHpcOutcome.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + const { parseRaxmlHpcOutput } = require('./raxmlHpcOutcome'); const info = ` diff --git a/e2e/helpers/raxmlNgOutcome.test.js b/e2e/helpers/raxmlNgOutcome.test.js index c47c8f8c..01f50a5b 100644 --- a/e2e/helpers/raxmlNgOutcome.test.js +++ b/e2e/helpers/raxmlNgOutcome.test.js @@ -1,3 +1,5 @@ +import { describe, expect, it } from 'vitest'; + const { parseRaxmlNgOutput } = require('./raxmlNgOutcome'); const log = `RAxML-NG v. 1.2.2 released on 30.04.2024 by The Exelixis Lab. diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 4b0a429a..00000000 --- a/jest.config.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - testEnvironment: 'jsdom', - setupFiles: [ '/jest/setup.js' ], - setupFilesAfterEnv: [ '/jest/mobxActionWarning.js' ], - roots: [ '/src', '/e2e' ], - testMatch: [ '**/*.test.[jt]s?(x)' ], - transform: { - '^.+\\.(js|jsx|mjs|ts|tsx)$': '/jest/babelTransform.js', - }, - transformIgnorePatterns: [ '/node_modules/(?!d3-array/)' ], - moduleFileExtensions: [ 'js', 'jsx', 'mjs', 'ts', 'tsx', 'json', 'node' ], - moduleNameMapper: { - '\\.css$': '/jest/fileMock.js', - '^electron$': '/jest/electron.js', - '^@sentry/electron/renderer$': '/jest/sentry.js', - }, -}; diff --git a/jest/babelTransform.js b/jest/babelTransform.js deleted file mode 100644 index a5b91b8a..00000000 --- a/jest/babelTransform.js +++ /dev/null @@ -1,16 +0,0 @@ -const babelJest = require( 'babel-jest' ); - -// Define-semantics class fields and the automatic JSX runtime, as the page build emits. preset-env and preset-typescript -// are what Jest needs to load the page's ESM and .tsx imports. -module.exports = babelJest.default.createTransformer( { - babelrc: false, - configFile: false, - presets: [ - [ '@babel/preset-env', { targets: { node: 'current' } } ], - '@babel/preset-typescript', - ], - plugins: [ - [ '@babel/plugin-proposal-class-properties', { loose: false } ], - [ '@babel/plugin-transform-react-jsx', { runtime: 'automatic' } ], - ], -} ); diff --git a/jest/fileMock.js b/jest/fileMock.js deleted file mode 100644 index f053ebf7..00000000 --- a/jest/fileMock.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {}; diff --git a/package.json b/package.json index d4c62b1e..dd5956ee 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "main": "./out/main/index.js", "scripts": { "start": "electron-vite dev", - "test": "jest --watchAll=false", - "react-test": "jest --watchAll=false", + "test": "vitest run", + "react-test": "vitest run", "test:e2e": "yarn build && node node_modules/playwright/cli.js test --config e2e/playwright.config.js", "test:e2e:update-fixtures": "yarn build && node e2e/updateFixtures.js", "test:docs": "node node_modules/playwright/cli.js test --config e2e/docs/playwright.config.js", @@ -51,8 +51,8 @@ "docs-serve": "cd docs && bundle exec jekyll serve --config _config.yml,_config_dev.yml", "typecheck": "tsc --noEmit", "typecheck:baseline": "node scripts/typecheck-baseline.js", - "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" electron.vite.config.js jest.config.js \"jest/**/*.js\" --max-warnings 0", - "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" electron.vite.config.js jest.config.js \"jest/**/*.js\" --fix" + "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" electron.vite.config.js vitest.config.mjs --max-warnings 0", + "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" electron.vite.config.js vitest.config.mjs --fix" }, "dependencies": { "@emotion/react": "^11.14.0", @@ -85,11 +85,6 @@ "yup": "^1.7.1" }, "devDependencies": { - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@babel/plugin-transform-react-jsx": "7.25.2", - "@babel/preset-env": "^7.29.7", - "@babel/preset-typescript": "^7.24.7", "@electron/notarize": "^3.1.2", "@sentry/bundler-plugins": "11.12.0", "@sentry/cli": "^3.8.2", @@ -102,7 +97,6 @@ "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", "@vitejs/plugin-react": "5.2.0", - "babel-jest": "27.5.1", "dotenv": "^17.4.2", "download": "^8.0.0", "electron": "^45.2.3", @@ -112,12 +106,13 @@ "eslint": "^8.57.0", "eslint-config-react-app": "7.0.1", "eslint-plugin-lodash": "^8.1.0", - "jest": "27.5.1", + "jsdom": "^29.1.1", "npm-run-all": "^4.1.5", "playwright": "^1.65.0", "prettier": "^3.9.10", "typescript": "^5.9.3", - "vite": "^8.3.7" + "vite": "^8.3.7", + "vitest": "^5.1.1" }, "browserslist": [ ">0.2%", @@ -139,9 +134,9 @@ "!e2e{,/**/*}", "!docs{,/**/*}", "!electron.vite.config.js", + "!vitest.config.mjs", "!static{,/**/*}", "!scripts{,/**/*}", - "!jest{,/**/*}", "!test-results{,/**/*}", "!playwright-report{,/**/*}" ], @@ -216,7 +211,6 @@ } }, "resolutions": { - "@babel/plugin-proposal-private-property-in-object": "7.21.11", "@typescript-eslint/eslint-plugin": "^8.72.1", "@typescript-eslint/parser": "^8.72.1" } diff --git a/src/app/App.test.js b/src/app/App.test.jsx similarity index 75% rename from src/app/App.test.js rename to src/app/App.test.jsx index 380f08bf..bab16d36 100644 --- a/src/app/App.test.js +++ b/src/app/App.test.jsx @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import Page from './index'; @@ -7,7 +8,6 @@ it( 'renders without crashing', () => { const div = document.createElement( 'div' ); const root = createRoot( div ); // createRoot().render paints on a later tick. act flushes that paint. - // eslint-disable-next-line testing-library/no-unnecessary-act act( () => { root.render( ); } ); diff --git a/src/app/bootstrap.test.js b/src/app/bootstrap.test.js index b0756600..18e93cad 100644 --- a/src/app/bootstrap.test.js +++ b/src/app/bootstrap.test.js @@ -1,16 +1,16 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; -function loadBootstrap( nodeEnv ) { +async function loadBootstrap( nodeEnv ) { const previousEnv = process.env.NODE_ENV; const previousE2E = process.env.RAXMLGUI_E2E; process.env.NODE_ENV = nodeEnv; delete process.env.RAXMLGUI_E2E; let store; try { - jest.isolateModules( () => { - store = require( './store' ).default; - require( './bootstrap' ); - } ); + vi.resetModules(); + store = ( await import( './store' ) ).default; + await import( './bootstrap' ); } finally { process.env.NODE_ENV = previousEnv; if ( previousE2E === undefined ) { @@ -23,7 +23,7 @@ function loadBootstrap( nodeEnv ) { } it( 'the dev bootstrap loads the example files', async () => { - const getExampleFiles = jest.fn( async () => ( { + const getExampleFiles = vi.fn( async () => ( { fasta: ['nucleotide.txt'], phylip: ['dna_sequential.txt'], dir: '/examples', @@ -34,7 +34,7 @@ it( 'the dev bootstrap loads the example files', async () => { parseAlignment: () => new Promise( () => {} ), }; - const store = loadBootstrap( 'development' ); + const store = await loadBootstrap( 'development' ); expect( getExampleFiles ).toHaveBeenCalledTimes( 1 ); await getExampleFiles.mock.results[0].value; @@ -44,11 +44,11 @@ it( 'the dev bootstrap loads the example files', async () => { ] ); } ); -it( 'a production load does not ask for the example files', () => { - const getExampleFiles = jest.fn(); +it( 'a production load does not ask for the example files', async () => { + const getExampleFiles = vi.fn(); window.rendererBridge = { getExampleFiles }; - loadBootstrap( 'production' ); + await loadBootstrap( 'production' ); expect( getExampleFiles ).not.toHaveBeenCalled(); } ); diff --git a/src/app/components/ErrorDialog.test.js b/src/app/components/ErrorDialog.test.jsx similarity index 91% rename from src/app/components/ErrorDialog.test.js rename to src/app/components/ErrorDialog.test.jsx index e0980dfe..5eac0848 100644 --- a/src/app/components/ErrorDialog.test.js +++ b/src/app/components/ErrorDialog.test.jsx @@ -1,16 +1,16 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import ErrorDialog from './ErrorDialog'; it( 'the reload action reloads the window', () => { - const reload = jest.fn(); + const reload = vi.fn(); window.rendererBridge = { reload }; const div = document.createElement( 'div' ); document.body.appendChild( div ); const root = createRoot( div ); // createRoot().render paints on a later tick. act flushes that paint. - // eslint-disable-next-line testing-library/no-unnecessary-act act( () => { root.render( { root.render( { + const debugInfo = vi.fn( async () => { order.push( 'debug' ); return info; } ); - const openExternal = jest.fn( async () => { + const openExternal = vi.fn( async () => { order.push( 'open' ); } ); window.rendererBridge = { debugInfo, openExternal }; diff --git a/src/app/droppedFile.test.js b/src/app/droppedFile.test.jsx similarity index 94% rename from src/app/droppedFile.test.js rename to src/app/droppedFile.test.jsx index 9b1be6ed..15df6ffe 100644 --- a/src/app/droppedFile.test.js +++ b/src/app/droppedFile.test.jsx @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import { ThemeProvider } from '@mui/material/styles'; @@ -21,10 +22,10 @@ function baseRun( extra ) { tree: closedTree, backboneConstraint: closedTree, multifurcatingConstraint: closedTree, - addAlignments: jest.fn(), - addPartitionFiles: jest.fn(), - addTreeFiles: jest.fn(), - addAstralFiles: jest.fn(), + addAlignments: vi.fn(), + addPartitionFiles: vi.fn(), + addTreeFiles: vi.fn(), + addAstralFiles: vi.fn(), loadAlignmentFiles() {}, loadAstralTree() {}, loadPartitionFile() {}, @@ -39,7 +40,6 @@ function mountInput( run ) { const div = document.createElement( 'div' ); const root = createRoot( div ); // createRoot().render paints on a later tick. act flushes that paint. - // eslint-disable-next-line testing-library/no-unnecessary-act act( () => { root.render( diff --git a/src/app/paths.test.js b/src/app/paths.test.js index 34b53d54..dabb2d8e 100644 --- a/src/app/paths.test.js +++ b/src/app/paths.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { base, basename, dir, join, name, quote, } from './paths'; diff --git a/src/app/promisedComputed.test.js b/src/app/promisedComputed.test.js index 9d010158..ee59621e 100644 --- a/src/app/promisedComputed.test.js +++ b/src/app/promisedComputed.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { observable, runInAction, reaction, when } from 'mobx'; import { promisedComputed } from './promisedComputed'; diff --git a/src/app/report.test.js b/src/app/report.test.js index 379a792d..431145f6 100644 --- a/src/app/report.test.js +++ b/src/app/report.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { cleanStack, serializeAndCleanError } from './report'; it( 'drops node and electron frames from a stack', () => { diff --git a/src/app/store/AlignmentOptions.test.js b/src/app/store/AlignmentOptions.test.js index 35057a04..86d8e698 100644 --- a/src/app/store/AlignmentOptions.test.js +++ b/src/app/store/AlignmentOptions.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; diff --git a/src/app/store/InputFile.test.js b/src/app/store/InputFile.test.js index 570b0636..3bfdbebf 100644 --- a/src/app/store/InputFile.test.js +++ b/src/app/store/InputFile.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import AstralTree from './AstralTree'; @@ -9,9 +10,9 @@ let bridge; beforeEach( () => { bridge = { - getVersion: jest.fn( () => Promise.resolve( '2.0.0' ) ), - openPath: jest.fn( () => Promise.resolve() ), - showItemInFolder: jest.fn( () => Promise.resolve() ), + getVersion: vi.fn( () => Promise.resolve( '2.0.0' ) ), + openPath: vi.fn( () => Promise.resolve() ), + showItemInFolder: vi.fn( () => Promise.resolve() ), }; window.rendererBridge = bridge; } ); @@ -23,7 +24,7 @@ function track( fn ) { return { seen, stop }; } -const run = { id: 'run1', removeAstralTree: jest.fn() }; +const run = { id: 'run1', removeAstralTree: vi.fn() }; describe( 'StoreBase', () => { it( 'initialises the version from the renderer bridge', async () => { @@ -35,10 +36,10 @@ describe( 'StoreBase', () => { } ); it( 'subscribe registers a bridge listener and unlisten stops them all', () => { - const stopA = jest.fn(); - const stopB = jest.fn(); - bridge.onRunStdout = jest.fn( () => stopA ); - bridge.onRunStderr = jest.fn( () => stopB ); + const stopA = vi.fn(); + const stopB = vi.fn(); + bridge.onRunStdout = vi.fn( () => stopA ); + bridge.onRunStderr = vi.fn( () => stopB ); const store = new StoreBase(); const listener = () => {}; store.subscribe( 'onRunStdout', listener ); @@ -52,7 +53,7 @@ describe( 'StoreBase', () => { } ); it( 'dispose stops the listeners', () => { - const stop = jest.fn(); + const stop = vi.fn(); bridge.onRunStdout = () => stop; const store = new StoreBase(); store.subscribe( 'onRunStdout', () => {} ); diff --git a/src/app/store/Option.test.js b/src/app/store/Option.test.js index c1224320..ef39b147 100644 --- a/src/app/store/Option.test.js +++ b/src/app/store/Option.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import * as yup from 'yup'; diff --git a/src/app/store/OutGroup.test.js b/src/app/store/OutGroup.test.js index 48433b2e..cc2c215d 100644 --- a/src/app/store/OutGroup.test.js +++ b/src/app/store/OutGroup.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import RunList from './RunList'; @@ -6,7 +7,7 @@ import { runEvents } from './StoreBase'; // A run subscribes to bridge events when it is created. beforeEach( () => { - const bridge = { cancelRun: jest.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; + const bridge = { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; for ( const name of Object.values( runEvents ) ) { bridge[name] = () => () => {}; } diff --git a/src/app/store/Part.test.js b/src/app/store/Part.test.js index 057e58f8..6d42975d 100644 --- a/src/app/store/Part.test.js +++ b/src/app/store/Part.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Alignment from './Alignment'; diff --git a/src/app/store/Partition.test.js b/src/app/store/Partition.test.js index 8f69329a..c8cd42e9 100644 --- a/src/app/store/Partition.test.js +++ b/src/app/store/Partition.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Alignment from './Alignment'; @@ -7,7 +8,7 @@ import { runEvents } from './StoreBase'; // The run and alignment subscribe to bridge events; a no-op bridge is enough here. function stubBridge() { - const bridge = { cancelRun: jest.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; + const bridge = { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; for ( const name of Object.values( runEvents ) ) { bridge[name] = () => () => {}; } diff --git a/src/app/store/Run.computeds.test.js b/src/app/store/Run.computeds.test.js index a0d94a96..65270530 100644 --- a/src/app/store/Run.computeds.test.js +++ b/src/app/store/Run.computeds.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; @@ -13,7 +14,7 @@ let stops = []; // The run subscribes to bridge events in its constructor; the stub accepts and ignores them. beforeEach( () => { stops = []; - checkOutput = jest.fn( async ( { outputName } ) => ( { + checkOutput = vi.fn( async ( { outputName } ) => ( { ok: true, outputNameUnused: outputName, resultFilenames: [], diff --git a/src/app/store/RunList.test.js b/src/app/store/RunList.test.js index bbb68d4e..df6b4b3c 100644 --- a/src/app/store/RunList.test.js +++ b/src/app/store/RunList.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import AppStore from './AppStore'; @@ -12,7 +13,7 @@ let cancelRun; function stubBridge() { const byName = {}; listeners = byName; - cancelRun = jest.fn(); + cancelRun = vi.fn(); const bridge = { cancelRun, getVersion: () => Promise.resolve( '2.0.0' ) }; for ( const name of Object.values( runEvents ) ) { bridge[name] = ( listener ) => { @@ -222,7 +223,7 @@ describe( 'RunList', () => { } ); it( 'onUnhandledError sets the title and error', () => { - jest.spyOn( console, 'log' ).mockImplementation( () => {} ); + vi.spyOn( console, 'log' ).mockImplementation( () => {} ); const list = new RunList(); const error = new Error( 'crash' ); list.onUnhandledError( { title: 'Oops', error } ); @@ -248,7 +249,7 @@ describe( 'RunList', () => { } ); it( 'routes bridge events to its actions', () => { - jest.spyOn( console, 'log' ).mockImplementation( () => {} ); + vi.spyOn( console, 'log' ).mockImplementation( () => {} ); const list = new RunList(); fire( runEvents.onAddRun ); expect( list.runs ).toHaveLength( 2 ); diff --git a/src/app/store/RunSimpleOptions.test.js b/src/app/store/RunSimpleOptions.test.js index 8841e026..32e002bf 100644 --- a/src/app/store/RunSimpleOptions.test.js +++ b/src/app/store/RunSimpleOptions.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { afterEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; diff --git a/src/app/store/alignmentStore.test.js b/src/app/store/alignmentStore.test.js index 0ae40f35..7d2e3706 100644 --- a/src/app/store/alignmentStore.test.js +++ b/src/app/store/alignmentStore.test.js @@ -1,7 +1,8 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; -import { stubBridge as sharedStubBridge, track } from '../../../jest/storeBridge'; +import { stubBridge as sharedStubBridge, track } from '../../test/storeBridge'; import Run from './Run'; import { runEvents } from './StoreBase'; @@ -14,8 +15,8 @@ let fire; function stubBridge( extra = {} ) { ( { bridge, listeners, fire } = sharedStubBridge( { parseAlignment: () => new Promise( () => {} ), - startModelSelection: jest.fn( async () => {} ), - cancelModelSelection: jest.fn(), + startModelSelection: vi.fn( async () => {} ), + cancelModelSelection: vi.fn(), ...extra, } ) ); } @@ -322,14 +323,13 @@ describe( 'Alignment constructor', () => { expect( typeof alignment.modeltestDisabled ).toBe( 'boolean' ); } ); - it( 'disables modeltest on Windows 7', () => { + it( 'disables modeltest on Windows 7', async () => { window.rendererBridge = { ...bridge, host: { ...bridge.host, windows: true, release: '6.1.7601' } }; - jest.isolateModules( () => { - const IsolatedRun = require( './Run' ).default; - const run = new IsolatedRun( {}, 1 ); - run.addAlignments( [{ path: '/a.fasta' }] ); - expect( run.alignments[0].modeltestDisabled ).toBe( true ); - } ); + vi.resetModules(); + const IsolatedRun = ( await import( './Run' ) ).default; + const run = new IsolatedRun( {}, 1 ); + run.addAlignments( [{ path: '/a.fasta' }] ); + expect( run.alignments[0].modeltestDisabled ).toBe( true ); } ); } ); @@ -348,7 +348,7 @@ describe( 'Alignment loadParsedAlignment', () => { } it( 'writes the parsed fields', async () => { - const parseAlignment = jest.fn( async () => ( { alignment: parsed, change: null } ) ); + const parseAlignment = vi.fn( async () => ( { alignment: parsed, change: null } ) ); const { alignment } = await load( parseAlignment ); expect( parseAlignment ).toHaveBeenCalledWith( '7_/data/primates.fasta', '/data/primates.fasta' ); expect( alignment.sequences ).toEqual( parsed.sequences ); @@ -425,7 +425,7 @@ describe( 'Alignment loadParsedAlignment', () => { describe( 'Alignment model selection', () => { it( 'runModelTest reports an error for fewer than three sequences', async () => { - const onError = jest.fn(); + const onError = vi.fn(); const { alignment } = setup( { onError } ); set( alignment, { numSequences: 2 } ); await alignment.runModelTest(); diff --git a/src/app/store/astral.test.js b/src/app/store/astral.test.js index bf7b84c8..3f0964e2 100644 --- a/src/app/store/astral.test.js +++ b/src/app/store/astral.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; import { runEvents } from './StoreBase'; @@ -26,7 +27,7 @@ function emit( list, payload ) { } it( 'startAstral starts ASTRAL', async () => { - const startAstral = jest.fn( async () => {} ); + const startAstral = vi.fn( async () => {} ); bridge( { startAstral } ); const run = new Run( { onError() {} }, 7 ); run.setOutputDir( '/out' ); diff --git a/src/app/store/cancelRun.test.js b/src/app/store/cancelRun.test.js index 292c136c..5f394d79 100644 --- a/src/app/store/cancelRun.test.js +++ b/src/app/store/cancelRun.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import fs from 'fs'; import os from 'os'; import path from 'path'; @@ -6,7 +7,7 @@ import path from 'path'; import Run from './Run'; it( 'the cancel control uses cancelRun', () => { - const cancelRun = jest.fn(); + const cancelRun = vi.fn(); window.rendererBridge = { cancelRun }; const run = new Run( { onError() {} }, 7 ); run.running = true; @@ -21,7 +22,7 @@ it( 'cancel before the run is tracked does not start it', async () => { const outputDir = fs.mkdtempSync( path.join( os.tmpdir(), 'raxml-cancel-' ) ); let holdWrites = true; const waiters = []; - const writeFile = jest.fn( () => { + const writeFile = vi.fn( () => { if ( !holdWrites ) { return Promise.resolve(); } @@ -29,8 +30,8 @@ it( 'cancel before the run is tracked does not start it', async () => { waiters.push( resolve ); } ); } ); - const startRun = jest.fn( async () => {} ); - const cancelRun = jest.fn(); + const startRun = vi.fn( async () => {} ); + const cancelRun = vi.fn(); window.rendererBridge = { writeFile, startRun, diff --git a/src/app/store/checkOutputName.test.js b/src/app/store/checkOutputName.test.js index bc7ba708..5b0c6e91 100644 --- a/src/app/store/checkOutputName.test.js +++ b/src/app/store/checkOutputName.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { when } from 'mobx'; import Run from './Run'; it( 'the output-name check uses checkOutput', async () => { - const checkOutput = jest.fn( async () => ( { + const checkOutput = vi.fn( async () => ( { outputDir: '/data/out', outputName: 'tree', ok: false, diff --git a/src/app/store/citationConfig.test.js b/src/app/store/citationConfig.test.js index 6ebd4380..04c7fc78 100644 --- a/src/app/store/citationConfig.test.js +++ b/src/app/store/citationConfig.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { reaction, runInAction } from 'mobx'; import AppStore from './AppStore'; @@ -8,17 +9,17 @@ let bridge; beforeEach( () => { listeners = {}; - const subscribe = ( key ) => jest.fn( ( listener ) => { + const subscribe = ( key ) => vi.fn( ( listener ) => { listeners[key] = listener; return () => { delete listeners[key]; }; } ); bridge = { - getVersion: jest.fn( async () => '2.0.0' ), - getDarkMode: jest.fn( async () => false ), - setDarkMode: jest.fn( async () => {} ), - copyText: jest.fn( async () => {} ), + getVersion: vi.fn( async () => '2.0.0' ), + getDarkMode: vi.fn( async () => false ), + setDarkMode: vi.fn( async () => {} ), + copyText: vi.fn( async () => {} ), onLightMode: subscribe( 'light' ), onDarkMode: subscribe( 'dark' ), }; @@ -110,7 +111,7 @@ describe( 'citation', () => { } ); it( 'copyToClipboard copies the text in the current format', async () => { - jest.spyOn( console, 'log' ).mockImplementation( () => {} ); + vi.spyOn( console, 'log' ).mockImplementation( () => {} ); const { citation } = new AppStore(); citation.setFormat( 'bib' ); await citation.copyToClipboard(); diff --git a/src/app/store/finalAlignment.test.js b/src/app/store/finalAlignment.test.js index 7e16f813..ee5152eb 100644 --- a/src/app/store/finalAlignment.test.js +++ b/src/app/store/finalAlignment.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; @@ -114,19 +115,19 @@ describe( 'FinalAlignment observables', () => { describe( 'FinalAlignment actions', () => { function stubBridge() { const bridge = { - writeFile: jest.fn( async () => {} ), - openPath: jest.fn( async () => {} ), - showItemInFolder: jest.fn( async () => {} ), + writeFile: vi.fn( async () => {} ), + openPath: vi.fn( async () => {} ), + showItemInFolder: vi.fn( async () => {} ), }; window.rendererBridge = bridge; return bridge; } beforeEach( () => { - jest.spyOn( console, 'log' ).mockImplementation( () => {} ); - jest.spyOn( console, 'error' ).mockImplementation( () => {} ); + vi.spyOn( console, 'log' ).mockImplementation( () => {} ); + vi.spyOn( console, 'error' ).mockImplementation( () => {} ); } ); - afterEach( () => jest.restoreAllMocks() ); + afterEach( () => vi.restoreAllMocks() ); it( 'writeConcatenatedAlignment fills gaps or drops taxons', async () => { const f = makeRun( [A, B] ).finalAlignment; diff --git a/src/app/store/host.test.js b/src/app/store/host.test.js index 46f15a8f..e3292f10 100644 --- a/src/app/store/host.test.js +++ b/src/app/store/host.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; function install( host ) { let reads = 0; @@ -15,24 +16,21 @@ function install( host ) { return () => reads; } -function load() { - let Run; - let Alignment; - jest.isolateModules( () => { - Run = require( './Run' ).default; - Alignment = require( './Alignment' ).default; - } ); +async function load() { + vi.resetModules(); + const Run = ( await import( './Run' ) ).default; + const Alignment = ( await import( './Alignment' ) ).default; return { Run, Alignment }; } -it( 'reads the host once and uses it for Windows 7', () => { +it( 'reads the host once and uses it for Windows 7', async () => { const reads = install( { windows: true, release: '6.1.7601', arch: 'x64', cpuModel: 'Intel', } ); - const { Run, Alignment } = load(); + const { Run, Alignment } = await load(); const run = new Run( {}, 7 ); const alignment = new Alignment( { id: 7 }, '/data/primates.fasta' ); @@ -42,14 +40,14 @@ it( 'reads the host once and uses it for Windows 7', () => { expect( alignment.modeltestDisabled ).toBe( true ); } ); -it( 'uses the later Windows binaries when the release is not 6.1', () => { +it( 'uses the later Windows binaries when the release is not 6.1', async () => { install( { windows: true, release: '10.0.19045', arch: 'x64', cpuModel: 'Intel', } ); - const { Run, Alignment } = load(); + const { Run, Alignment } = await load(); const run = new Run( {}, 7 ); const alignment = new Alignment( { id: 7 }, '/data/primates.fasta' ); @@ -58,14 +56,14 @@ it( 'uses the later Windows binaries when the release is not 6.1', () => { expect( alignment.modeltestDisabled ).toBe( false ); } ); -it( 'picks the arm modeltest binary from the arch or the cpu model', () => { +it( 'picks the arm modeltest binary from the arch or the cpu model', async () => { install( { windows: false, release: '25.0.0', arch: 'arm64', cpuModel: 'Intel', } ); - let { Run } = load(); + let { Run } = await load(); expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); install( { @@ -74,7 +72,7 @@ it( 'picks the arm modeltest binary from the arch or the cpu model', () => { arch: 'x64', cpuModel: 'Apple M4', } ); - ( { Run } = load() ); + ( { Run } = await load() ); expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); install( { @@ -83,6 +81,6 @@ it( 'picks the arm modeltest binary from the arch or the cpu model', () => { arch: 'x64', cpuModel: 'Intel', } ); - ( { Run } = load() ); + ( { Run } = await load() ); expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng' ); } ); diff --git a/src/app/store/loadAlignment.test.js b/src/app/store/loadAlignment.test.js index 719300da..dfb379be 100644 --- a/src/app/store/loadAlignment.test.js +++ b/src/app/store/loadAlignment.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; const stayParsed = async () => ( { @@ -17,7 +18,7 @@ const stayParsed = async () => ( { it( 'the alignment picker adds the chosen alignments', async () => { const run = new Run( {}, 7 ); - const selectAlignment = jest.fn( async () => [ + const selectAlignment = vi.fn( async () => [ { path: '/data/primates.fasta', name: 'primates.fasta' }, { path: '/data/cats.phy', name: 'cats.phy' }, ] ); @@ -38,7 +39,7 @@ it( 'cancel leaves the alignments unchanged', async () => { run.addAlignments( [{ path: '/data/already.fasta', name: 'already.fasta' }] ); window.rendererBridge = { parseAlignment: stayParsed, - selectAlignment: jest.fn( async () => null ), + selectAlignment: vi.fn( async () => null ), }; await run.loadAlignmentFiles(); diff --git a/src/app/store/loadAstralTree.test.js b/src/app/store/loadAstralTree.test.js index 60f40667..33023b8a 100644 --- a/src/app/store/loadAstralTree.test.js +++ b/src/app/store/loadAstralTree.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'the ASTRAL file picker adds the chosen file', async () => { const run = new Run( {}, 7 ); - const selectAstralFile = jest.fn( async () => ( { + const selectAstralFile = vi.fn( async () => ( { path: '/data/trees.tre', name: 'trees.tre', } ) ); @@ -19,7 +20,7 @@ it( 'cancel leaves the ASTRAL file unchanged', async () => { const run = new Run( {}, 7 ); run.addAstralFiles( { path: '/data/already.tre' } ); window.rendererBridge = { - selectAstralFile: jest.fn( async () => null ), + selectAstralFile: vi.fn( async () => null ), }; await run.loadAstralTree(); diff --git a/src/app/store/loadPartitionFile.test.js b/src/app/store/loadPartitionFile.test.js index 6d44d587..d7a7814c 100644 --- a/src/app/store/loadPartitionFile.test.js +++ b/src/app/store/loadPartitionFile.test.js @@ -1,10 +1,11 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'the partition picker uses the chosen file', async () => { const run = new Run( {}, 7 ); - const selectPartitionFile = jest.fn( async () => '/data/genes.part' ); - const readFile = jest.fn( async () => 'DNA, gene = 1-100\n' ); + const selectPartitionFile = vi.fn( async () => '/data/genes.part' ); + const readFile = vi.fn( async () => 'DNA, gene = 1-100\n' ); window.rendererBridge = { selectPartitionFile, readFile }; await run.loadPartitionFile(); @@ -19,7 +20,7 @@ it( 'cancel leaves the partition unchanged', async () => { run.partitionFile = '/data/already.part'; run.partitionFileContent = 'kept'; window.rendererBridge = { - selectPartitionFile: jest.fn( async () => null ), + selectPartitionFile: vi.fn( async () => null ), }; await run.loadPartitionFile(); diff --git a/src/app/store/loadTree.test.js b/src/app/store/loadTree.test.js index 430751ee..d4ce74ea 100644 --- a/src/app/store/loadTree.test.js +++ b/src/app/store/loadTree.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'each tree picker keeps the chosen file', async () => { const run = new Run( {}, 7 ); - const selectTree = jest.fn() + const selectTree = vi.fn() .mockResolvedValueOnce( { type: 'tree', filePath: '/data/start.nwk' } ) .mockResolvedValueOnce( { type: 'backboneConstraint', filePath: '/data/backbone.nwk' } ) .mockResolvedValueOnce( { type: 'multifurcatingConstraint', filePath: '/data/multi.nwk' } ); @@ -25,7 +26,7 @@ it( 'cancel leaves the trees unchanged', async () => { const run = new Run( {}, 7 ); run.tree.setFilePath( '/data/already.nwk' ); window.rendererBridge = { - selectTree: jest.fn( async () => null ), + selectTree: vi.fn( async () => null ), }; await run.loadTreeFile(); diff --git a/src/app/store/menu.test.js b/src/app/store/menu.test.js index 0eb30898..2522906d 100644 --- a/src/app/store/menu.test.js +++ b/src/app/store/menu.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import RunList from './RunList'; function bridge() { diff --git a/src/app/store/modelSelection.test.js b/src/app/store/modelSelection.test.js index 0643a58b..c3aaae9f 100644 --- a/src/app/store/modelSelection.test.js +++ b/src/app/store/modelSelection.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; import Run from './Run'; import { runEvents } from './StoreBase'; @@ -29,7 +30,7 @@ function emit( list, payload ) { } it( 'startModelSelection starts model selection', async () => { - const startModelSelection = jest.fn( async () => {} ); + const startModelSelection = vi.fn( async () => {} ); bridge( { startModelSelection } ); const run = new Run( { onError() {} }, 7 ); run.setOutputDir( '/out' ); @@ -77,7 +78,7 @@ it( 'a model selection result sets the model', () => { } ); it( 'the model-selection cancel control uses cancelModelSelection', () => { - const cancelModelSelection = jest.fn(); + const cancelModelSelection = vi.fn(); bridge( { cancelModelSelection } ); const run = new Run( { onError() {} }, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); diff --git a/src/app/store/openPath.test.js b/src/app/store/openPath.test.js index dd704614..95b05a0b 100644 --- a/src/app/store/openPath.test.js +++ b/src/app/store/openPath.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'opens a result file through the renderer bridge', async () => { const run = new Run( {}, 7 ); - const openPath = jest.fn( async () => '' ); + const openPath = vi.fn( async () => '' ); window.rendererBridge = { openPath }; await run.openFile( '/data/results/tree.raxml.bestTree' ); @@ -14,7 +15,7 @@ it( 'opens a result file through the renderer bridge', async () => { it( 'opens the output directory through the renderer bridge', async () => { const run = new Run( {}, 7 ); run.setOutputDir( '/data/results' ); - const openPath = jest.fn( async () => '' ); + const openPath = vi.fn( async () => '' ); window.rendererBridge = { openPath }; await run.openOutputDir(); diff --git a/src/app/store/pageStoreGaps.test.js b/src/app/store/pageStoreGaps.test.js index 1501fbfe..6fca23f2 100644 --- a/src/app/store/pageStoreGaps.test.js +++ b/src/app/store/pageStoreGaps.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; @@ -8,14 +9,14 @@ let bridge; beforeEach( () => { bridge = { - cancelModelSelection: jest.fn(), + cancelModelSelection: vi.fn(), parseAlignment: () => new Promise( () => {} ), }; window.rendererBridge = bridge; } ); function makeRun() { - const parent = { onError: jest.fn(), deleteRun: jest.fn() }; + const parent = { onError: vi.fn(), deleteRun: vi.fn() }; const run = new Run( parent, 7 ); run.addAlignments( [{ path: '/data/a.fasta' }, { path: '/data/b.fasta' }] ); return { run, parent }; diff --git a/src/app/store/parseAlignment.test.js b/src/app/store/parseAlignment.test.js index 04c8a02c..c9dc8441 100644 --- a/src/app/store/parseAlignment.test.js +++ b/src/app/store/parseAlignment.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; const alignment = { @@ -28,7 +29,7 @@ function add( parseAlignment ) { } it( 'the alignment load keeps the path when parsing changes nothing', async () => { - const parseAlignment = jest.fn( async () => ( { alignment, change: null } ) ); + const parseAlignment = vi.fn( async () => ( { alignment, change: null } ) ); const { run, pending } = add( parseAlignment ); await pending; diff --git a/src/app/store/provideStateReport.test.js b/src/app/store/provideStateReport.test.js index a59f9c36..537124e2 100644 --- a/src/app/store/provideStateReport.test.js +++ b/src/app/store/provideStateReport.test.js @@ -1,13 +1,12 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; -it( 'provideStateReport registers the store report once', () => { - const provideStateReport = jest.fn(); +it( 'provideStateReport registers the store report once', async () => { + const provideStateReport = vi.fn(); window.rendererBridge = { provideStateReport }; - let store; - jest.isolateModules( () => { - store = require( './index' ).default; - } ); + vi.resetModules(); + const store = ( await import( './index' ) ).default; expect( provideStateReport ).toHaveBeenCalledTimes( 1 ); const fn = provideStateReport.mock.calls[0][0]; diff --git a/src/app/store/readText.test.js b/src/app/store/readText.test.js index ec8dba01..62e4b162 100644 --- a/src/app/store/readText.test.js +++ b/src/app/store/readText.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'reads a text file through the renderer bridge', async () => { const run = new Run( {}, 7 ); - const readFile = jest.fn( async () => 'DNA, gene = 1-100\n' ); + const readFile = vi.fn( async () => 'DNA, gene = 1-100\n' ); window.rendererBridge = { readFile }; await run.addPartitionFiles( [{ path: '/data/genes.part' }] ); diff --git a/src/app/store/runInputActions.test.js b/src/app/store/runInputActions.test.js index 8cf791fa..8309b22e 100644 --- a/src/app/store/runInputActions.test.js +++ b/src/app/store/runInputActions.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun } from 'mobx'; import Run from './Run'; @@ -16,7 +17,7 @@ const stayParsed = async () => ( { change: null, } ); -const checkOutput = jest.fn( async ( { outputName } ) => ( { +const checkOutput = vi.fn( async ( { outputName } ) => ( { ok: true, outputNameUnused: outputName, resultFilenames: [], @@ -70,7 +71,7 @@ describe( 'output name and directory', () => { } ); it( 'openOutputDir opens the output directory', async () => { - const openPath = jest.fn( async () => {} ); + const openPath = vi.fn( async () => {} ); window.rendererBridge = { checkOutput, openPath }; run.setOutputDir( '/out' ); @@ -222,7 +223,7 @@ describe( 'ASTRAL tree', () => { describe( 'partition file', () => { it( 'loadPartitionFile shows the path and content after the read resolves', async () => { let finishRead; - const readFile = jest.fn( + const readFile = vi.fn( () => new Promise( ( resolve ) => { finishRead = resolve; } ), ); window.rendererBridge = { @@ -264,7 +265,7 @@ describe( 'partition file', () => { } ); it( 'addPartitionFiles with no files changes nothing', async () => { - window.rendererBridge = { checkOutput, readFile: jest.fn() }; + window.rendererBridge = { checkOutput, readFile: vi.fn() }; await run.addPartitionFiles( [] ); expect( run.partitionFile ).toBe( '' ); expect( window.rendererBridge.readFile ).not.toHaveBeenCalled(); diff --git a/src/app/store/runLifecycle.test.js b/src/app/store/runLifecycle.test.js index 24d5208c..b704ba7a 100644 --- a/src/app/store/runLifecycle.test.js +++ b/src/app/store/runLifecycle.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; @@ -20,11 +21,11 @@ function subscribeTo( byName, name ) { beforeEach( () => { listeners = {}; bridge = { - startRun: jest.fn( async () => {} ), - startAstral: jest.fn( async () => {} ), - cancelRun: jest.fn(), - writeFile: jest.fn( async () => {} ), - checkOutput: jest.fn( async () => ( { ok: true, resultFilenames: ['out.tre'] } ) ), + startRun: vi.fn( async () => {} ), + startAstral: vi.fn( async () => {} ), + cancelRun: vi.fn(), + writeFile: vi.fn( async () => {} ), + checkOutput: vi.fn( async () => ( { ok: true, resultFilenames: ['out.tre'] } ) ), parseAlignment: () => new Promise( () => {} ), }; for ( const name of Object.values( runEvents ) ) { @@ -45,7 +46,7 @@ function track( fn ) { } function makeRun( { numSequences = 4 } = {} ) { - const parent = { onError: jest.fn() }; + const parent = { onError: vi.fn() }; const run = new Run( parent, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); run.alignments[0].sequences = Array.from( { length: numSequences }, ( _, i ) => ( { @@ -97,7 +98,7 @@ describe( 'start', () => { it( 'adopts the safe output name, which a reaction on the name sees', async () => { const { run } = makeRun(); - bridge.checkOutput = jest.fn( async () => ( { + bridge.checkOutput = vi.fn( async () => ( { ok: false, outputNameUnused: 'primates_2', resultFilenames: [], @@ -291,7 +292,7 @@ describe( 'cancel', () => { it( 'stops a start that is still writing files from starting the run', async () => { const { run } = makeRun(); let release; - bridge.writeFile = jest.fn( + bridge.writeFile = vi.fn( () => new Promise( ( resolve ) => { release = resolve; } ), diff --git a/src/app/store/selectOutputDir.test.js b/src/app/store/selectOutputDir.test.js index 794d699e..59f739c5 100644 --- a/src/app/store/selectOutputDir.test.js +++ b/src/app/store/selectOutputDir.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import Run from './Run'; it( 'the output-directory picker sets the chosen directory', async () => { const run = new Run( {}, 7 ); - const selectOutputDir = jest.fn( async () => '/data/results' ); + const selectOutputDir = vi.fn( async () => '/data/results' ); window.rendererBridge = { selectOutputDir }; await run.selectOutputDir(); @@ -16,7 +17,7 @@ it( 'cancel leaves the output directory unchanged', async () => { const run = new Run( {}, 7 ); run.setOutputDir( '/data/already' ); window.rendererBridge = { - selectOutputDir: jest.fn( async () => null ), + selectOutputDir: vi.fn( async () => null ), }; await run.selectOutputDir(); diff --git a/src/app/store/showItemInFolder.test.js b/src/app/store/showItemInFolder.test.js index d51fc798..90e6cd03 100644 --- a/src/app/store/showItemInFolder.test.js +++ b/src/app/store/showItemInFolder.test.js @@ -1,11 +1,12 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; import Run from './Run'; it( 'shows a tree file in its folder', async () => { const run = new Run( {}, 7 ); run.tree.setFilePath( '/data/start.nwk' ); - const showItemInFolder = jest.fn( async () => {} ); + const showItemInFolder = vi.fn( async () => {} ); window.rendererBridge = { showItemInFolder }; await run.tree.openFolder(); @@ -24,9 +25,9 @@ it( 'shows the concatenated alignment in its folder', async () => { ]; run.alignments[0].length = 2; } ); - const showItemInFolder = jest.fn( async () => {} ); + const showItemInFolder = vi.fn( async () => {} ); window.rendererBridge = { - writeFile: jest.fn( async () => {} ), + writeFile: vi.fn( async () => {} ), showItemInFolder, }; diff --git a/src/app/store/startRun.test.js b/src/app/store/startRun.test.js index 95ed6cff..db8e40bd 100644 --- a/src/app/store/startRun.test.js +++ b/src/app/store/startRun.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import fs from 'fs'; import os from 'os'; import path from 'path'; @@ -40,7 +41,7 @@ function emit( list, payload ) { it( 'startRun starts the run', async () => { const outputDir = fs.mkdtempSync( path.join( os.tmpdir(), 'raxml-run-' ) ); - const startRun = jest.fn( async () => {} ); + const startRun = vi.fn( async () => {} ); bridge( { startRun } ); const run = new Run( { onError() {} }, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); diff --git a/src/app/store/substitutionOptions.test.js b/src/app/store/substitutionOptions.test.js index fcc67056..4b43122d 100644 --- a/src/app/store/substitutionOptions.test.js +++ b/src/app/store/substitutionOptions.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; diff --git a/src/app/store/treeFileOptions.test.js b/src/app/store/treeFileOptions.test.js index 190c420e..370ba6d9 100644 --- a/src/app/store/treeFileOptions.test.js +++ b/src/app/store/treeFileOptions.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; @@ -24,9 +25,9 @@ function observe( fn ) { } beforeEach( () => { - showItemInFolder = jest.fn( async () => {} ); - openPath = jest.fn( async () => {} ); - selectTree = jest.fn(); + showItemInFolder = vi.fn( async () => {} ); + openPath = vi.fn( async () => {} ); + selectTree = vi.fn(); window.rendererBridge = { showItemInFolder, openPath, selectTree }; run = new Run( {}, 3 ); disposers = []; diff --git a/src/app/store/version.test.js b/src/app/store/version.test.js index 2a1a3f86..73699018 100644 --- a/src/app/store/version.test.js +++ b/src/app/store/version.test.js @@ -1,8 +1,9 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import AppStore from './AppStore'; it( 'the page learns the app version from getVersion', async () => { - const getVersion = jest.fn( async () => '2.0.18' ); + const getVersion = vi.fn( async () => '2.0.18' ); window.rendererBridge = { getVersion }; const store = new AppStore(); diff --git a/src/app/store/writeConcatenatedAlignment.test.js b/src/app/store/writeConcatenatedAlignment.test.js index e641f4db..bb980356 100644 --- a/src/app/store/writeConcatenatedAlignment.test.js +++ b/src/app/store/writeConcatenatedAlignment.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; import Run from './Run'; @@ -21,7 +22,7 @@ it( 'writes one concatenated FASTA', async () => { ]; run.alignments[1].length = 2; } ); - const writeFile = jest.fn( async () => {} ); + const writeFile = vi.fn( async () => {} ); window.rendererBridge = { writeFile }; await run.finalAlignment.writeConcatenatedAlignment(); diff --git a/src/app/unhandledError.test.js b/src/app/unhandledError.test.jsx similarity index 88% rename from src/app/unhandledError.test.js rename to src/app/unhandledError.test.jsx index 05c62659..16ff92e6 100644 --- a/src/app/unhandledError.test.js +++ b/src/app/unhandledError.test.jsx @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import Page from './index'; @@ -18,7 +19,6 @@ it( 'the page shows an unhandled error title and error', () => { document.body.appendChild( div ); const root = createRoot( div ); // createRoot().render paints on a later tick. act flushes that paint. - // eslint-disable-next-line testing-library/no-unnecessary-act act( () => { root.render( ); } ); diff --git a/src/main/cancelRun.test.js b/src/main/cancelRun.test.js index 6286501a..dd62decc 100644 --- a/src/main/cancelRun.test.js +++ b/src/main/cancelRun.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { spawn } from 'child_process'; import { once } from 'events'; import fs from 'fs'; diff --git a/src/main/checkOutput.test.js b/src/main/checkOutput.test.js index 186603bc..73512cac 100644 --- a/src/main/checkOutput.test.js +++ b/src/main/checkOutput.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import fs from 'fs'; import os from 'os'; import path from 'path'; diff --git a/src/main/debugInfo.test.js b/src/main/debugInfo.test.js index 05c048ed..ba2ae62b 100644 --- a/src/main/debugInfo.test.js +++ b/src/main/debugInfo.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { debugInfo } from './debugInfo'; it( 'debugInfo includes the app name and version, the Electron version, the platform, the OS release, and the locale', () => { diff --git a/src/main/getActiveState.test.js b/src/main/getActiveState.test.js index ff7e1bef..4642e113 100644 --- a/src/main/getActiveState.test.js +++ b/src/main/getActiveState.test.js @@ -1,24 +1,27 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; -const mockSend = jest.fn(); -const mockOn = jest.fn(); -const mockRemoveListener = jest.fn(); +const { mockSend, mockOn, mockRemoveListener } = vi.hoisted( () => ( { + mockSend: vi.fn(), + mockOn: vi.fn(), + mockRemoveListener: vi.fn(), +} ) ); -jest.mock( 'electron', () => ( { +vi.mock( 'electron', () => ( { ipcMain: { on: ( ...args ) => mockOn( ...args ), removeListener: ( ...args ) => mockRemoveListener( ...args ), }, } ) ); -jest.mock( './utils/utils', () => ( { +vi.mock( './utils/utils', () => ( { activeWindow: () => ( { webContents: { send: mockSend }, } ), } ) ); -const { getActiveState } = require( './getActiveState' ); -const { STATE_REPORT, STATE_REPORT_RESULT } = require( '../constants/ipc' ); +const { getActiveState } = await import( './getActiveState' ); +const { STATE_REPORT, STATE_REPORT_RESULT } = await import( '../constants/ipc' ); it( 'asks the active window and resolves the matching report', async () => { let onResult; diff --git a/src/main/pageWindowPreferences.test.js b/src/main/pageWindowPreferences.test.js index f3477921..a7c458c3 100644 --- a/src/main/pageWindowPreferences.test.js +++ b/src/main/pageWindowPreferences.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { pageWindowPreferences } from './pageWindowPreferences'; it( 'every window runs with Node shut out, isolation on, and the sandbox on', () => { diff --git a/src/main/parseAlignment.test.js b/src/main/parseAlignment.test.js index 68ab7814..82681b13 100644 --- a/src/main/parseAlignment.test.js +++ b/src/main/parseAlignment.test.js @@ -1,4 +1,5 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; import { parseAlignment } from './parseAlignment'; function tools( parse, extra = {} ) { diff --git a/src/main/selectAlignment.test.js b/src/main/selectAlignment.test.js index 10b6518e..4f2f49b8 100644 --- a/src/main/selectAlignment.test.js +++ b/src/main/selectAlignment.test.js @@ -1,8 +1,9 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { selectAlignment } from './selectAlignment'; it( 'selectAlignment resolves the chosen alignment paths and names', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); let options; const dialogResult = { canceled: false, @@ -25,7 +26,7 @@ it( 'selectAlignment resolves the chosen alignment paths and names', async () => } ); it( 'selectAlignment resolves null when the person cancels', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const chosen = await selectAlignment( async () => ( { canceled: true, filePaths: [], @@ -35,7 +36,7 @@ it( 'selectAlignment resolves null when the person cancels', async () => { } ); it( 'selectAlignment rejects when the dialog fails', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const err = new Error( 'dialog failed' ); await expect( selectAlignment( async () => { throw err; diff --git a/src/main/selectAstralFile.test.js b/src/main/selectAstralFile.test.js index 9e2a5ae7..3741dee0 100644 --- a/src/main/selectAstralFile.test.js +++ b/src/main/selectAstralFile.test.js @@ -1,8 +1,9 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import { selectAstralFile } from './selectAstralFile'; it( 'selectAstralFile resolves the chosen ASTRAL path and name', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); let options; const dialogResult = { canceled: false, @@ -22,7 +23,7 @@ it( 'selectAstralFile resolves the chosen ASTRAL path and name', async () => { } ); it( 'selectAstralFile resolves null when the person cancels', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const chosen = await selectAstralFile( async () => ( { canceled: true, filePaths: [], @@ -32,7 +33,7 @@ it( 'selectAstralFile resolves null when the person cancels', async () => { } ); it( 'selectAstralFile rejects when the dialog fails', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const err = new Error( 'dialog failed' ); await expect( selectAstralFile( async () => { throw err; diff --git a/src/main/selectOutputDir.test.js b/src/main/selectOutputDir.test.js index 2675ec83..0df0ba4a 100644 --- a/src/main/selectOutputDir.test.js +++ b/src/main/selectOutputDir.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectOutputDir } from './selectOutputDir'; it( 'selectOutputDir resolves the chosen output directory', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); let options; const dialogResult = { canceled: false, @@ -23,7 +24,7 @@ it( 'selectOutputDir resolves the chosen output directory', async () => { } ); it( 'selectOutputDir resolves null when the person cancels', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const chosen = await selectOutputDir( async () => ( { canceled: true, filePaths: [], @@ -33,7 +34,7 @@ it( 'selectOutputDir resolves null when the person cancels', async () => { } ); it( 'selectOutputDir rejects when the dialog fails', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const err = new Error( 'dialog failed' ); await expect( selectOutputDir( async () => { throw err; diff --git a/src/main/selectPartitionFile.test.js b/src/main/selectPartitionFile.test.js index 5cde491c..6e6325a1 100644 --- a/src/main/selectPartitionFile.test.js +++ b/src/main/selectPartitionFile.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectPartitionFile } from './selectPartitionFile'; it( 'selectPartitionFile resolves the chosen partition path', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); let options; const dialogResult = { canceled: false, @@ -23,7 +24,7 @@ it( 'selectPartitionFile resolves the chosen partition path', async () => { } ); it( 'selectPartitionFile resolves null when the person cancels', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const chosen = await selectPartitionFile( async () => ( { canceled: true, filePaths: [], @@ -33,7 +34,7 @@ it( 'selectPartitionFile resolves null when the person cancels', async () => { } ); it( 'selectPartitionFile rejects when the dialog fails', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const err = new Error( 'dialog failed' ); await expect( selectPartitionFile( async () => { throw err; diff --git a/src/main/selectTree.test.js b/src/main/selectTree.test.js index 07616d1f..c6bbbb9b 100644 --- a/src/main/selectTree.test.js +++ b/src/main/selectTree.test.js @@ -1,9 +1,10 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectTree } from './selectTree'; it( 'selectTree resolves the chosen tree or constraint', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const cases = [ ['tree', '/data/start.nwk'], ['backboneConstraint', '/data/backbone.nwk'], @@ -30,7 +31,7 @@ it( 'selectTree resolves the chosen tree or constraint', async () => { } ); it( 'selectTree resolves null when the person cancels', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const chosen = await selectTree( async () => ( { canceled: true, filePaths: [], @@ -40,7 +41,7 @@ it( 'selectTree resolves null when the person cancels', async () => { } ); it( 'selectTree rejects when the dialog fails', async () => { - const debug = jest.spyOn( console, 'debug' ).mockImplementation( () => {} ); + const debug = vi.spyOn( console, 'debug' ).mockImplementation( () => {} ); const err = new Error( 'dialog failed' ); await expect( selectTree( async () => { throw err; diff --git a/src/main/updates.test.js b/src/main/updates.test.js index f3939e22..ca0c685f 100644 --- a/src/main/updates.test.js +++ b/src/main/updates.test.js @@ -1,11 +1,9 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it, vi } from 'vitest'; import fs from 'fs'; import path from 'path'; -import { setImmediate } from 'timers'; import { checkForUpdates, listenForUpdates } from './updates'; -global.setImmediate = setImmediate; - function updater() { const listeners = Object.create( null ); return { @@ -18,8 +16,8 @@ function updater() { fn( payload ); } }, - downloadUpdate: jest.fn(), - quitAndInstall: jest.fn(), + downloadUpdate: vi.fn(), + quitAndInstall: vi.fn(), }; } @@ -27,8 +25,8 @@ it( 'No on Found Updates leaves the current version', async () => { const updates = updater(); const choice = Promise.resolve( { response: 1 } ); const dialog = { - showMessageBox: jest.fn( () => choice ), - showErrorBox: jest.fn(), + showMessageBox: vi.fn( () => choice ), + showErrorBox: vi.fn(), }; listenForUpdates( updates, dialog ); updates.emit( 'update-available' ); @@ -48,8 +46,8 @@ it( 'Yes downloads the update with no window, bar, or percent', async () => { const updates = updater(); const choice = Promise.resolve( { response: 0 } ); const dialog = { - showMessageBox: jest.fn( () => choice ), - showErrorBox: jest.fn(), + showMessageBox: vi.fn( () => choice ), + showErrorBox: vi.fn(), }; listenForUpdates( updates, dialog ); updates.emit( 'update-available' ); @@ -70,8 +68,8 @@ it( 'Yes downloads the update with no window, bar, or percent', async () => { it( 'a finished download quits to install', async () => { const updates = updater(); const dialog = { - showMessageBox: jest.fn( () => Promise.resolve( { response: 0 } ) ), - showErrorBox: jest.fn(), + showMessageBox: vi.fn( () => Promise.resolve( { response: 0 } ) ), + showErrorBox: vi.fn(), }; listenForUpdates( updates, dialog ); updates.emit( 'update-downloaded' ); @@ -87,8 +85,8 @@ it( 'a finished download quits to install', async () => { it( 'a failed update uses the error dialog', () => { const updates = updater(); const dialog = { - showMessageBox: jest.fn(), - showErrorBox: jest.fn(), + showMessageBox: vi.fn(), + showErrorBox: vi.fn(), }; listenForUpdates( updates, dialog ); const failure = new Error( 'network down' ); @@ -111,7 +109,7 @@ it( 'the shell opens no update progress window', () => { it( 'an offline update check rejects nothing (the error event already reports it)', async () => { const updates = { ...updater(), autoDownload: true }; - updates.checkForUpdates = jest.fn( () => Promise.reject( new Error( 'net::ERR_INTERNET_DISCONNECTED' ) ) ); + updates.checkForUpdates = vi.fn( () => Promise.reject( new Error( 'net::ERR_INTERNET_DISCONNECTED' ) ) ); await expect( checkForUpdates( updates ) ).resolves.toBeUndefined(); expect( updates.autoDownload ).toBe( false ); } ); diff --git a/src/mobxActionWarning.test.js b/src/mobxActionWarning.test.js index cff9546e..a37b7e28 100644 --- a/src/mobxActionWarning.test.js +++ b/src/mobxActionWarning.test.js @@ -1,7 +1,8 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { describe, expect, test } from 'vitest'; import { observable, runInAction, autorun } from 'mobx'; -import { actionWarnings } from '../jest/mobxActionWarning'; +import { actionWarnings } from './test/mobxActionWarning'; function observed() { const box = observable.box( 0 ); diff --git a/src/pack.test.js b/src/pack.test.js index 2b9d7f53..71e6bc84 100644 --- a/src/pack.test.js +++ b/src/pack.test.js @@ -1,4 +1,5 @@ // @ts-nocheck — electron-builder's pack matcher has no types. +import { expect, it } from 'vitest'; import fs from 'fs'; import path from 'path'; @@ -60,9 +61,10 @@ it( 'packs the built shell and the production dependencies', async () => { expect( included( main, 'e2e/raxmlHPC.spec.js' ) ).toBe( false ); expect( included( main, 'docs/_config.yml' ) ).toBe( false ); expect( included( main, 'electron.vite.config.js' ) ).toBe( false ); + expect( included( main, 'vitest.config.mjs' ) ).toBe( false ); expect( included( main, 'static/bin/Mac/raxml-ng' ) ).toBe( false ); expect( included( main, 'scripts/notarize.js' ) ).toBe( false ); - expect( included( main, 'jest/setup.js' ) ).toBe( false ); + expect( included( main, 'src/test/setup.js' ) ).toBe( false ); expect( included( main, 'test-results/results.json' ) ).toBe( false ); expect( included( main, 'playwright-report/index.html' ) ).toBe( false ); expect( included( main, path.join( buildResourcesDir, 'favicon.ico' ) ) ).toBe( false ); diff --git a/src/pageNodeImports.test.js b/src/pageNodeImports.test.js index c3930c98..c4fe38cd 100644 --- a/src/pageNodeImports.test.js +++ b/src/pageNodeImports.test.js @@ -1,4 +1,6 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; + const fs = require( 'fs' ); const path = require( 'path' ); @@ -18,7 +20,7 @@ function walk( dir ) { const full = path.join( dir, entry.name ); if ( entry.isDirectory() ) { out.push( ...walk( full ) ); - } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !entry.name.endsWith( '.test.js' ) ) { + } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !/\.test\.jsx?$/.test( entry.name ) ) { out.push( full ); } } diff --git a/src/preload.test.js b/src/preload.test.js index 0990571d..c07d0968 100644 --- a/src/preload.test.js +++ b/src/preload.test.js @@ -1,4 +1,6 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { beforeAll, expect, it } from 'vitest'; + const { spawnSync } = require( 'child_process' ); const fs = require( 'fs' ); const os = require( 'os' ); diff --git a/src/sourceMaps.test.js b/src/sourceMaps.test.js index 6b10383d..f906a6d1 100644 --- a/src/sourceMaps.test.js +++ b/src/sourceMaps.test.js @@ -1,4 +1,6 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; + const { spawnSync } = require( 'child_process' ); const path = require( 'path' ); const { version } = require( '../package.json' ); diff --git a/jest/electron.js b/src/test/electron.js similarity index 100% rename from jest/electron.js rename to src/test/electron.js diff --git a/jest/mobxActionWarning.js b/src/test/mobxActionWarning.js similarity index 79% rename from jest/mobxActionWarning.js rename to src/test/mobxActionWarning.js index 3177d9b1..0d1183d7 100644 --- a/jest/mobxActionWarning.js +++ b/src/test/mobxActionWarning.js @@ -1,5 +1,7 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — this test setup is not typed yet. // Fails a test when MobX warns that observable state was changed outside an action. +import { afterEach, beforeEach, vi } from 'vitest'; + const collected = []; let warn; @@ -9,7 +11,7 @@ export const actionWarnings = () => collected; beforeEach( () => { collected.length = 0; const original = console.warn; - warn = jest.spyOn( console, 'warn' ).mockImplementation( ( ...args ) => { + warn = vi.spyOn( console, 'warn' ).mockImplementation( ( ...args ) => { if ( /\[MobX\] Since strict-mode is enabled/.test( String( args[0] ) ) ) { collected.push( args[0] ); } else { diff --git a/jest/sentry.js b/src/test/sentry.js similarity index 100% rename from jest/sentry.js rename to src/test/sentry.js diff --git a/jest/setup.js b/src/test/setup.js similarity index 97% rename from jest/setup.js rename to src/test/setup.js index 2d6d5929..a99ffa62 100644 --- a/jest/setup.js +++ b/src/test/setup.js @@ -1,6 +1,6 @@ import os from 'node:os'; -import { runEvents } from '../src/app/store/StoreBase'; +import { runEvents } from '../app/store/StoreBase'; // React 19 flushes a render inside act() when this flag is set. global.IS_REACT_ACT_ENVIRONMENT = true; diff --git a/jest/storeBridge.js b/src/test/storeBridge.js similarity index 88% rename from jest/storeBridge.js rename to src/test/storeBridge.js index 613730c1..72a682e5 100644 --- a/jest/storeBridge.js +++ b/src/test/storeBridge.js @@ -1,7 +1,7 @@ -// @ts-nocheck — Jest helper. checkJs has no jsdom bridge type. +// @ts-nocheck — Test helper. checkJs has no jsdom bridge type. import { autorun } from 'mobx'; -import { runEvents } from '../src/app/store/StoreBase'; +import { runEvents } from '../app/store/StoreBase'; // Installs a renderer bridge whose run events record their listeners; `extra` adds or overrides methods. // `listeners[name]` always holds the live subscribers, and `fire` calls them. diff --git a/src/typecheckBaseline.test.js b/src/typecheckBaseline.test.js index d4ca830b..933f16be 100644 --- a/src/typecheckBaseline.test.js +++ b/src/typecheckBaseline.test.js @@ -1,4 +1,6 @@ -// @ts-nocheck — Jest globals. checkJs has no test runner types. +// @ts-nocheck — the test is not typed yet. +import { expect, it } from 'vitest'; + const { freshLines, unusedLines, typeScriptLines } = require( '../scripts/typecheck-baseline' ); it( 'reports a diagnostic line that the baseline does not list', () => { diff --git a/vitest.config.mjs b/vitest.config.mjs new file mode 100644 index 00000000..ef923da8 --- /dev/null +++ b/vitest.config.mjs @@ -0,0 +1,23 @@ +import { resolve } from 'node:path'; +import { defineConfig } from 'vitest/config'; + +const here = ( file ) => resolve( import.meta.dirname, file ); + +export default defineConfig( { + resolve: { + alias: { + // Same alias as the renderer in electron.vite.config.js. + filenamify: here( 'node_modules/filenamify/filenamify.js' ), + electron: here( 'src/test/electron.js' ), + '@sentry/electron/renderer': here( 'src/test/sentry.js' ), + }, + }, + test: { + environment: 'jsdom', + globals: false, + clearMocks: false, + include: [ 'src/**/*.test.{js,jsx}', 'e2e/helpers/**/*.test.js' ], + // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. + setupFiles: [ './src/test/setup.js', './src/test/mobxActionWarning.js' ], + }, +} ); diff --git a/yarn.lock b/yarn.lock index c29dc019..053d41ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,7 +7,39 @@ resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-5.2.0.tgz#7a03314684dd6572b7dfa89e68ce31d60286854d" integrity sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A== -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": +"@asamuzakjp/css-color@^5.1.11": + version "5.1.11" + resolved "https://registry.yarnpkg.com/@asamuzakjp/css-color/-/css-color-5.1.11.tgz#28a0aac8220a4cc19045ac3bd9a813d4060bd375" + integrity sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg== + dependencies: + "@asamuzakjp/generational-cache" "^1.0.1" + "@csstools/css-calc" "^3.2.0" + "@csstools/css-color-parser" "^4.1.0" + "@csstools/css-parser-algorithms" "^4.0.0" + "@csstools/css-tokenizer" "^4.0.0" + +"@asamuzakjp/dom-selector@^7.1.1": + version "7.1.1" + resolved "https://registry.yarnpkg.com/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz#01880086bb2490098f167beb58555da1a6c9adbd" + integrity sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ== + dependencies: + "@asamuzakjp/generational-cache" "^1.0.1" + "@asamuzakjp/nwsapi" "^2.3.9" + bidi-js "^1.0.3" + css-tree "^3.2.1" + is-potential-custom-element-name "^1.0.1" + +"@asamuzakjp/generational-cache@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz#3d0bf6be4fc059851390a7070720c6007af793ec" + integrity sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg== + +"@asamuzakjp/nwsapi@^2.3.9": + version "2.3.9" + resolved "https://registry.yarnpkg.com/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz#ad5549322dfe9d153d4b4dd6f7ff2ae234b06e24" + integrity sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q== + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== @@ -15,15 +47,6 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/code-frame@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" - integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg== - dependencies: - "@babel/helper-validator-identifier" "^7.27.1" - js-tokens "^4.0.0" - picocolors "^1.1.1" - "@babel/code-frame@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.7.tgz#f2fbbfea87c44a21590ec515b778b2c26d8866e7" @@ -38,12 +61,12 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== -"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.7": +"@babel/compat-data@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.7.tgz#6f0237f0f36d2e51c0570a636faed9d2d0efe629" integrity sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg== -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/core@^7.16.0": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.29.7.tgz#80c10b17248082968b57a857b91640971f2070f7" integrity sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA== @@ -94,7 +117,7 @@ eslint-visitor-keys "^2.1.0" semver "^6.3.1" -"@babel/generator@^7.25.6", "@babel/generator@^7.7.2": +"@babel/generator@^7.25.6": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== @@ -104,17 +127,6 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/generator@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.0.tgz#9cc2f7bd6eb054d77dc66c2664148a0c5118acd2" - integrity sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg== - dependencies: - "@babel/parser" "^7.28.0" - "@babel/types" "^7.28.0" - "@jridgewell/gen-mapping" "^0.3.12" - "@jridgewell/trace-mapping" "^0.3.28" - jsesc "^3.0.2" - "@babel/generator@^7.29.13": version "7.29.13" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.13.tgz#89bd5d368cde7437920ab3f2e67ef24f0ecfe620" @@ -137,13 +149,6 @@ "@jridgewell/trace-mapping" "^0.3.28" jsesc "^3.0.2" -"@babel/helper-annotate-as-pure@^7.18.6", "@babel/helper-annotate-as-pure@^7.27.1": - version "7.27.3" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz#f31fd86b915fc4daf1f3ac6976c59be7084ed9c5" - integrity sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg== - dependencies: - "@babel/types" "^7.27.3" - "@babel/helper-annotate-as-pure@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz#5373c7bc8366b12a033b4be1ac13a206c6656aab" @@ -151,13 +156,6 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-annotate-as-pure@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz#c70fe3c6ecbdc3fd2dd1b0f498428b88b82ce47f" - integrity sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw== - dependencies: - "@babel/types" "^7.29.7" - "@babel/helper-builder-binary-assignment-operator-visitor@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz#37d66feb012024f2422b762b9b2a7cfe27c7fba3" @@ -177,10 +175,10 @@ lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-compilation-targets@^7.28.6", "@babel/helper-compilation-targets@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz#7a1def704302401c47f64fa85589e974ae217042" - integrity sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g== +"@babel/helper-compilation-targets@^7.29.13": + version "7.29.13" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz#bd48c347d19d5357c6eaf742007a99b2fff5e315" + integrity sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w== dependencies: "@babel/compat-data" "^7.29.7" "@babel/helper-validator-option" "^7.29.7" @@ -188,10 +186,10 @@ lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-compilation-targets@^7.29.13": - version "7.29.13" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz#bd48c347d19d5357c6eaf742007a99b2fff5e315" - integrity sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w== +"@babel/helper-compilation-targets@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz#7a1def704302401c47f64fa85589e974ae217042" + integrity sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g== dependencies: "@babel/compat-data" "^7.29.7" "@babel/helper-validator-option" "^7.29.7" @@ -212,32 +210,6 @@ "@babel/traverse" "^7.25.4" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.21.0": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.1.tgz#5bee4262a6ea5ddc852d0806199eb17ca3de9281" - integrity sha512-QwGAmuvM17btKU5VqXfb+Giw4JcN0hjuufz3DYnpeVDvZLAObloM77bhMXiqry3Iio+Ai4phVRDwl6WU10+r5A== - dependencies: - "@babel/helper-annotate-as-pure" "^7.27.1" - "@babel/helper-member-expression-to-functions" "^7.27.1" - "@babel/helper-optimise-call-expression" "^7.27.1" - "@babel/helper-replace-supers" "^7.27.1" - "@babel/helper-skip-transparent-expression-wrappers" "^7.27.1" - "@babel/traverse" "^7.27.1" - semver "^6.3.1" - -"@babel/helper-create-class-features-plugin@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz#6eddf286f2ec418f740c91d60a83347c55838ddd" - integrity sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - "@babel/helper-member-expression-to-functions" "^7.29.7" - "@babel/helper-optimise-call-expression" "^7.29.7" - "@babel/helper-replace-supers" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/traverse" "^7.29.7" - semver "^6.3.1" - "@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7", "@babel/helper-create-regexp-features-plugin@^7.25.0", "@babel/helper-create-regexp-features-plugin@^7.25.2": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.2.tgz#24c75974ed74183797ffd5f134169316cd1808d9" @@ -247,15 +219,6 @@ regexpu-core "^5.3.1" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.7.tgz#5d4c3f928f315cf6c4184ea2fc3b5b38745b2430" - integrity sha512-907Uymvqgg1dwUA+7IGwFAOSYzQOuzPXKNJ1yxzwPffzkYFg2q2eHi1fIOs6sXkG9NbIUMunnUlkYsfRFNvomg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - regexpu-core "^6.3.1" - semver "^6.3.1" - "@babel/helper-define-polyfill-provider@^0.6.2": version "0.6.2" resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" @@ -267,22 +230,6 @@ lodash.debounce "^4.0.8" resolve "^1.14.2" -"@babel/helper-define-polyfill-provider@^0.6.8": - version "0.6.8" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.8.tgz#cf1e4462b613f2b54c41e6ff758d5dfcaa2c85d1" - integrity sha512-47UwBLPpQi1NoWzLuHNjRoHlYXMwIJoBf7MFou6viC/sIHWYygpvr0B6IAyh5sBdA2nr2LPIRww8lfaUVQINBA== - dependencies: - "@babel/helper-compilation-targets" "^7.28.6" - "@babel/helper-plugin-utils" "^7.28.6" - debug "^4.4.3" - lodash.debounce "^4.0.8" - resolve "^1.22.11" - -"@babel/helper-globals@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.28.0.tgz#b9430df2aa4e17bc28665eadeae8aa1d985e6674" - integrity sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw== - "@babel/helper-globals@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.29.7.tgz#f04a96fbd8473241b1079243f5b3f03a3010ab7b" @@ -296,22 +243,6 @@ "@babel/traverse" "^7.24.8" "@babel/types" "^7.24.8" -"@babel/helper-member-expression-to-functions@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz#ea1211276be93e798ce19037da6f06fbb994fa44" - integrity sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA== - dependencies: - "@babel/traverse" "^7.27.1" - "@babel/types" "^7.27.1" - -"@babel/helper-member-expression-to-functions@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz#8dbdb3ce0b5c487e1aec10e13c9a43a500814df8" - integrity sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg== - dependencies: - "@babel/traverse" "^7.29.7" - "@babel/types" "^7.29.7" - "@babel/helper-module-imports@^7.16.7", "@babel/helper-module-imports@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" @@ -363,26 +294,12 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-optimise-call-expression@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz#c65221b61a643f3e62705e5dd2b5f115e35f9200" - integrity sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw== - dependencies: - "@babel/types" "^7.27.1" - -"@babel/helper-optimise-call-expression@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz#77b0b5b94f1997fa9d6e3125f445227b1faf9d85" - integrity sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong== - dependencies: - "@babel/types" "^7.29.7" - "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== -"@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.29.7": +"@babel/helper-plugin-utils@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz#c0a0766f1a13617d8a17407d7ab8f9d486225ea4" integrity sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw== @@ -396,15 +313,6 @@ "@babel/helper-wrap-function" "^7.25.0" "@babel/traverse" "^7.25.0" -"@babel/helper-remap-async-to-generator@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.29.7.tgz#34b1f68dd75b86d31df781a29c3ff2df88da82e6" - integrity sha512-16AMiW26DbXWBbr3B8wNozKM0ydMLB892vaOaJW/fPJdnT8vJk5sdkQcU/isqUxyCE0cEoa8wZOcbgDuC4b6Og== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - "@babel/helper-wrap-function" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/helper-replace-supers@^7.24.7", "@babel/helper-replace-supers@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz#ff44deac1c9f619523fe2ca1fd650773792000a9" @@ -414,24 +322,6 @@ "@babel/helper-optimise-call-expression" "^7.24.7" "@babel/traverse" "^7.25.0" -"@babel/helper-replace-supers@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz#b1ed2d634ce3bdb730e4b52de30f8cccfd692bc0" - integrity sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.27.1" - "@babel/helper-optimise-call-expression" "^7.27.1" - "@babel/traverse" "^7.27.1" - -"@babel/helper-replace-supers@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz#bc3c3964329043c79112e513c1b198f16589ac21" - integrity sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.29.7" - "@babel/helper-optimise-call-expression" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/helper-simple-access@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" @@ -448,32 +338,11 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-skip-transparent-expression-wrappers@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz#62bb91b3abba8c7f1fec0252d9dbea11b3ee7a56" - integrity sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg== - dependencies: - "@babel/traverse" "^7.27.1" - "@babel/types" "^7.27.1" - -"@babel/helper-skip-transparent-expression-wrappers@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz#50c95c7e4c4f54936cfa0116428edc559862d551" - integrity sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ== - dependencies: - "@babel/traverse" "^7.29.7" - "@babel/types" "^7.29.7" - "@babel/helper-string-parser@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== -"@babel/helper-string-parser@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687" - integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA== - "@babel/helper-string-parser@^7.29.11": version "7.29.13" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz#00a43cc19b8f84e9e3f17f32813e69ae9bfceba8" @@ -489,11 +358,6 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== -"@babel/helper-validator-identifier@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8" - integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow== - "@babel/helper-validator-identifier@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz#bd87084ced0c796ec46bda492de6e83d29e89fc2" @@ -518,15 +382,6 @@ "@babel/traverse" "^7.25.0" "@babel/types" "^7.25.0" -"@babel/helper-wrap-function@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.29.7.tgz#eec72163044548a0935e9d182bf2d547ec5ff483" - integrity sha512-iES0Skag9ERIF68aXadpO6dbXa03mNWK3sEqJaMnLNs/eC3l0lkImdfoy6Y09/SfkpawdAB4RjQ7PVA7TcVGdw== - dependencies: - "@babel/template" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/types" "^7.29.7" - "@babel/helpers@^7.29.13": version "7.29.13" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.29.13.tgz#0f72c9bb2bef0c35f7ef41442358c873487071c5" @@ -553,20 +408,13 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": +"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== dependencies: "@babel/types" "^7.25.6" -"@babel/parser@^7.27.2", "@babel/parser@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.0.tgz#979829fbab51a29e13901e5a80713dbcb840825e" - integrity sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g== - dependencies: - "@babel/types" "^7.28.0" - "@babel/parser@^7.29.13": version "7.29.13" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.13.tgz#dbba85be72b94635123d594035fd087fe7e42bb3" @@ -589,14 +437,6 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/traverse" "^7.25.3" -"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.29.7.tgz#2b535896d933a85aa92377eaa3d51a437d54a4e3" - integrity sha512-j8SrR0zLZrRsC09DlszEx8FpMiwukKffYXMK0d5LmOglO7vGG6sz/BR/20yHqWH+Lnn31JTt2PE3hIWNgM2J6w== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-bugfix-safari-class-field-initializer-scope@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.0.tgz#cd0c583e01369ef51676bdb3d7b603e17d2b3f73" @@ -604,13 +444,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-bugfix-safari-class-field-initializer-scope@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.29.7.tgz#b00711a9e52bf4fe55ef7e54b2ef4a881bf804c8" - integrity sha512-r8j8escF+U2FUHo0KOhPUdMzUO+jp9fInva6+ACVAF3Y97Ev+5iNZwiqTghmzNeWwDkOPlYuTcfb1vDaoZKmAQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.0.tgz#749bde80356b295390954643de7635e0dffabe73" @@ -618,21 +451,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.29.7.tgz#2375328852026a3cf6bc0bcf2de7d236f2d5e701" - integrity sha512-GE1TFSiuFeGsCxmYXZl8HwoPrVlwe4rHPFE8weieGKZqnDORK+Ar3vgWMgW+AOxQ6/2TgLSKx9p6W7O4rC6qgQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - -"@babel/plugin-bugfix-safari-rest-destructuring-rhs-array@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array/-/plugin-bugfix-safari-rest-destructuring-rhs-array-7.29.7.tgz#759a857c46c4d2a6199685cf71070d81ae5f743a" - integrity sha512-oBNVCvnO5tND+xSopWvV8WNGfpTfgP4Zr/YXXSj8zfmcPktp5Ku/aZlsIowgSD4fjmgHn6sGmB9APVsU5zOdhA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz#e4eabdd5109acc399b38d7999b2ef66fc2022f89" @@ -642,15 +460,6 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-transform-optional-chaining" "^7.24.7" -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.29.7.tgz#86de98dd8e03836178231ea96c27dab26016a705" - integrity sha512-QQt9qKHZ2sg/kivaLr7lnQr8HVrQDdBNSfCsTjiDxRuX/K5ORyKq+Bu8Xr0cDE3Dfkv0cw28Ve0EKyKMvulkOw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-transform-optional-chaining" "^7.29.7" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.0.tgz#3a82a70e7cb7294ad2559465ebcb871dfbf078fb" @@ -659,15 +468,7 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/traverse" "^7.25.0" -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.29.7.tgz#f5d892681dbf4b08753436a5e55000d5ba728d6d" - integrity sha512-pn6QacGLgvCcwc+syUhKE/qSjV2D1IHDB84RNxWYSt1mW3K/SCtjinZ2p0cETJxAWBjPy3K/1lHwG5BjjPxNlw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/traverse" "^7.29.7" - -"@babel/plugin-proposal-class-properties@^7.16.0", "@babel/plugin-proposal-class-properties@^7.18.6": +"@babel/plugin-proposal-class-properties@^7.16.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -717,15 +518,10 @@ "@babel/helper-create-class-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2", "@babel/plugin-proposal-private-property-in-object@7.21.11", "@babel/plugin-proposal-private-property-in-object@^7.21.11": - version "7.21.11" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz#69d597086b6760c4126525cfa154f34631ff272c" - integrity sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.21.0" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" +"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": + version "7.21.0-placeholder-for-preset-env.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" + integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -734,13 +530,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - "@babel/plugin-syntax-class-properties@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" @@ -790,13 +579,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-syntax-import-assertions@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.29.7.tgz#c5cd868505269126cc18882e1f01f7b0e0e24b4e" - integrity sha512-/An1OCBN93thpBAGyfsK2pcf0jvju1SAtKkL2Ny++B5Sy6sqgzXDQH1cZxWbF96Wuk+bn41MDA9bLd4VVAw6rw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-syntax-import-attributes@^7.24.7": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" @@ -804,13 +586,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-syntax-import-attributes@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.29.7.tgz#6115264516e95ead0f35a41710906612e447f605" - integrity sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" @@ -832,13 +607,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-syntax-jsx@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz#622c16f9ad63782fe6e83dadc7e40330744b7f1e" - integrity sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" @@ -895,20 +663,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.24.7", "@babel/plugin-syntax-typescript@^7.7.2": +"@babel/plugin-syntax-typescript@^7.24.7": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff" integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg== dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-syntax-typescript@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz#7c29388932313ed58413a0343048d75d92fb5b24" - integrity sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-syntax-unicode-sets-regex@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" @@ -941,15 +702,6 @@ "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/traverse" "^7.25.4" -"@babel/plugin-transform-async-generator-functions@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.7.tgz#a5365617921d82a1fee33124a1102bb38a1e677d" - integrity sha512-d98gXZkgswvkyohMBABkhm3GeXhYj8psWfwQ2C7gtfrKGTykQa/iOIi+JJhwMjPlZ6Vm2XN+DCf3Es1EoG4ZLA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-remap-async-to-generator" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-transform-async-to-generator@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz#72a3af6c451d575842a7e9b5a02863414355bdcc" @@ -959,15 +711,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/helper-remap-async-to-generator" "^7.24.7" -"@babel/plugin-transform-async-to-generator@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.29.7.tgz#3b5e8f1fb58133cf701bcf0baaf6f01bfd1a8889" - integrity sha512-pcUb2SS+RMo9TWVBwKGI5ShtoG7R+zBsFmCKDa6fe8c+hPr3XJlZgoE5j6i8W7gDjhyvy+85vmYexanvXh3d1w== - dependencies: - "@babel/helper-module-imports" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-remap-async-to-generator" "^7.29.7" - "@babel/plugin-transform-block-scoped-functions@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz#a4251d98ea0c0f399dafe1a35801eaba455bbf1f" @@ -975,13 +718,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-block-scoped-functions@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.29.7.tgz#96d292634434082d6687bcdb81139affedf77e8c" - integrity sha512-cUSmjh72N+rN4PrkFlN1dJwNCwjVp5d38/CQrEsFggkD10UiFlBFgdH3tv5dNsLuHY+3S8db2xCHjhZcv5WgvA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-block-scoping@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz#23a6ed92e6b006d26b1869b1c91d1b917c2ea2ac" @@ -989,13 +725,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-block-scoping@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.7.tgz#baa376691ae16244cd14335422fca6900f54e17d" - integrity sha512-ONyr4+AZhKh8yKWInVxU9AXA9EbsyeLcL6V0dJy6M2/62vuvpGm29zzuymbTpdc451GEpDIdAyPLP3r+P61yKQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-class-properties@^7.25.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.4.tgz#bae7dbfcdcc2e8667355cd1fb5eda298f05189fd" @@ -1004,14 +733,6 @@ "@babel/helper-create-class-features-plugin" "^7.25.4" "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-class-properties@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.29.7.tgz#034897b8a21beec163332fac2de235b14409abdf" - integrity sha512-GtcpjFvanPfzNQi3eTitsCqtRRmmqzpy/A+yhTR1HaZo1Ly3EA8ZXxlPyHdR8/IuRMYc3E4wdGBewB2QKQjAaA== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-class-static-block@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz#c82027ebb7010bc33c116d4b5044fbbf8c05484d" @@ -1021,14 +742,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-class-static-block@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.29.7.tgz#fed8efd19f3dd3e1114ee390707c70912778fd7c" - integrity sha512-kibJgmEdX2iMwsHY2tSZNDgj8PwIlCQz7FK9KuGKO8zsuoUwSEhoNnNVp/emKWrbY4HeO6kkXfdMqRKKKXBm2A== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-classes@^7.25.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.4.tgz#d29dbb6a72d79f359952ad0b66d88518d65ef89a" @@ -1041,18 +754,6 @@ "@babel/traverse" "^7.25.4" globals "^11.1.0" -"@babel/plugin-transform-classes@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.29.7.tgz#61d3e5aaae0c838acc3204d9db7c8dc05c25815b" - integrity sha512-qV0OGGBVacduzQHE649JyCneOFI/maT+YKsO+K4Yi3xv2wTPNjM/W2o2gdzMwEAZz7fXNTHAe0NcSg30bIN69g== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - "@babel/helper-compilation-targets" "^7.29.7" - "@babel/helper-globals" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-replace-supers" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-transform-computed-properties@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz#4cab3214e80bc71fae3853238d13d097b004c707" @@ -1061,14 +762,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/template" "^7.24.7" -"@babel/plugin-transform-computed-properties@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.29.7.tgz#95028787ca31901b9a20b5c6d9605c32346f55ad" - integrity sha512-RK7/IyU5phpuCdBAuig5VkzG/EnbDaui5SQGdU9BFrHdV+mV4cUjLMQ9lJDjLNtWHsqtiefpGZUXQP2BiTYMsA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/template" "^7.29.7" - "@babel/plugin-transform-destructuring@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz#c828e814dbe42a2718a838c2a2e16a408e055550" @@ -1076,14 +769,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-destructuring@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.29.7.tgz#5781ec6947852e27b64c1165f0db431f408090e4" - integrity sha512-iPX8aD6H9zV5s7ZsqTdNocPN/MGQ5sSMnElKrktxjJRMnB2jN/1p2+R7GkfD6CAYoVFqy5A4XnSIUeGgJzIWpg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-transform-dotall-regex@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz#5f8bf8a680f2116a7207e16288a5f974ad47a7a0" @@ -1092,14 +777,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-dotall-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.29.7.tgz#b203de9740e4c7ff6b55ce436ed5313b88d70af8" - integrity sha512-3qc18hsD2RdZiyJNDNc7HQpv6xbncwh8FYtxNFFzclSyh/trPD9KkVR9BDECUjDLvb7yJVF15GfYUuC+LMkkiQ== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-duplicate-keys@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz#dd20102897c9a2324e5adfffb67ff3610359a8ee" @@ -1107,13 +784,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-duplicate-keys@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.29.7.tgz#8f3fe721835cb7a433420841dae90afc962ea7ae" - integrity sha512-6IvRRriEMqnBwD6chtxdLpMYCHWEzN+oL5cyQtjykya19UgzbmKhxmhZgKC/LHxS2nYr9Q/qYPZ5Lr6jOL9+yQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-duplicate-named-capturing-groups-regex@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.0.tgz#809af7e3339466b49c034c683964ee8afb3e2604" @@ -1122,14 +792,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.0" "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-duplicate-named-capturing-groups-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.29.7.tgz#dc6c405e55c01b7657e1827a25332c4ac17e9cac" - integrity sha512-2wiIyo2BjtgU7HufSeDnL9L2O7zr8jmhFKuSr65VpRkUiRKRNpb0mdlk56+XPPKoIrfHqzbMuglDvZun0RISsA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-dynamic-import@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz#4d8b95e3bae2b037673091aa09cd33fecd6419f4" @@ -1138,21 +800,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-dynamic-import" "^7.8.3" -"@babel/plugin-transform-dynamic-import@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.29.7.tgz#a83a6faec5bab5b619adf9d0eac6c1c270123c2a" - integrity sha512-giOlEm/EFjfjr+te9NsdjkUo2v4f8rS/SXPumRVHAtbNcyNlvtREkU1dZzaIDclNpnaVhlCqRdFKhJBjBikzLg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - -"@babel/plugin-transform-explicit-resource-management@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.29.7.tgz#65c8b9f76ec915b02a0e1df703125a0fca58abaa" - integrity sha512-Rstj7coNz8sE+7Ju7ihpHLI564lsK5pUpNNlvptCIC/16E/S5hbl6n3kESPKdNRmqEWlpn5xpS5Q2dvXBsySLw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-destructuring" "^7.29.7" - "@babel/plugin-transform-exponentiation-operator@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz#b629ee22645f412024297d5245bce425c31f9b0d" @@ -1161,13 +808,6 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-exponentiation-operator@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.29.7.tgz#00bf002fde8794356171f5d4df200f6bc0d5a303" - integrity sha512-zFpMOTLZBdW5LfObqcSbL6kefg4R4eLdmvS0wbN9M6D5Mym/sKm9toOoWyVOa+xDjvCnuWcHls2YonXwHvH3CQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-export-namespace-from@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz#176d52d8d8ed516aeae7013ee9556d540c53f197" @@ -1176,13 +816,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" -"@babel/plugin-transform-export-namespace-from@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.29.7.tgz#d6014f45cec61d7691335c6c9804204bee801d51" - integrity sha512-24B2nOy2TeJSMheqwPD4DDQOV/elLSIlKxjZt4i05H5AgdPdWR3n18HnNrcJ+j76WJd9gbwb9jPjNYUy6RautA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-flow-strip-types@^7.16.0": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.25.2.tgz#b3aa251db44959b7a7c82abcd6b4225dec7d2258" @@ -1199,14 +832,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" -"@babel/plugin-transform-for-of@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.29.7.tgz#c65a678592117717aacdb10c1b73a9cb85e830be" - integrity sha512-zeSIHh0+E1Um1WJRXCFlHQYu2ieJNdivLLjlBEp+dIBu3S51n+SZZmIXjxnItw6pz56Cn+KvK68BIBVsxq2JiQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-transform-function-name@^7.25.1": version "7.25.1" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz#b85e773097526c1a4fc4ba27322748643f26fc37" @@ -1216,15 +841,6 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/traverse" "^7.25.1" -"@babel/plugin-transform-function-name@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.29.7.tgz#8b87f8a7504dbcd96135167e3fc4f61126a7bd86" - integrity sha512-otRWaHXE6fbAGkePvaj/kvs3HsqXfPhlnzwSOlnFgbqCPMd975dW+4wZ00WFBt+/YlBGcJwNrARQTOJOb4ZrIg== - dependencies: - "@babel/helper-compilation-targets" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-transform-json-strings@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz#f3e9c37c0a373fee86e36880d45b3664cedaf73a" @@ -1233,13 +849,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-transform-json-strings@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.29.7.tgz#f57d63dcc05b4481c281acedcd8fc4e3e439a1d4" - integrity sha512-RRnE2+eon1rJAq8MnoF1b5kTpY1vU88twHcvcKMrsqP/jxIRqDVs9iJB5fqPuqyeFAW0wJo4MlUIPpQCq/aRsg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-literals@^7.25.2": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz#deb1ad14fc5490b9a65ed830e025bca849d8b5f3" @@ -1247,13 +856,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-literals@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.29.7.tgz#b90bd47463326c2a9d779e1bd5e1f88b9f421921" - integrity sha512-DZ/oLP21ZuWx1vKqnoNv6/tvEK48AQOBRai40CX9dTjGluvT/YZCyY3rryDtyUqCEoyNroy5KKPwX2iQCiRvyw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-logical-assignment-operators@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz#a58fb6eda16c9dc8f9ff1c7b1ba6deb7f4694cb0" @@ -1262,13 +864,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" -"@babel/plugin-transform-logical-assignment-operators@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.29.7.tgz#9b29425adf5c794967aabe4b046a046a167bac2f" - integrity sha512-A0H91hh6W8MFRkp5TqJmMr39jzGD1A1E1Ysiv2O06Sfbhkapm+XyIzxWCEh5kqwOZ1/8QZ0dY3SeQ7XBqfJd5Q== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-member-expression-literals@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz#3b4454fb0e302e18ba4945ba3246acb1248315df" @@ -1276,13 +871,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-member-expression-literals@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.29.7.tgz#1281689fa2fefc17b110d21ebafd0fe9402d5309" - integrity sha512-hl1kwFZCCiDyfH25Xmco9jTrkPgnS9pmOzSG7W5I4SaGbLeqKv417hcU2RKmaxoPEgsoJh7ZPOrnPGq99bHoUg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-modules-amd@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz#65090ed493c4a834976a3ca1cde776e6ccff32d7" @@ -1291,14 +879,6 @@ "@babel/helper-module-transforms" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-modules-amd@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.29.7.tgz#f05ca662c8a1dc4be2f337af9c7e80369c942d6c" - integrity sha512-fxtQoH3m5ywUSIfaH0FGCzWu4McsYon5bD3K4XnskC7f+OyQMj7rsOMi4NvvmJ83WwBAg4UCe+ov4VZlqEvyew== - dependencies: - "@babel/helper-module-transforms" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-modules-commonjs@^7.24.7", "@babel/plugin-transform-modules-commonjs@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz#ab6421e564b717cb475d6fff70ae7f103536ea3c" @@ -1308,15 +888,7 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-simple-access" "^7.24.7" -"@babel/plugin-transform-modules-commonjs@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz#70e6835abf2663dafbe94b8ef1f51de7351ef135" - integrity sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ== - dependencies: - "@babel/helper-module-transforms" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - -"@babel/plugin-transform-modules-systemjs@^7.25.0", "@babel/plugin-transform-modules-systemjs@^7.29.7": +"@babel/plugin-transform-modules-systemjs@^7.25.0": version "7.29.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.8.tgz#e60a6a42ac63a3095f9cc7264f698a100c8fe05d" integrity sha512-6iSnEK0zlkLKU4heofK/AdmRD4e2SHVpJMtrwnTCzhnaM98ria4rTrOXBBi45BTTYnJtO8txnPsX4fChYXkmeA== @@ -1334,14 +906,6 @@ "@babel/helper-module-transforms" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-modules-umd@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.29.7.tgz#391d1c0215aca6307257f2f608598dfe55feb6cf" - integrity sha512-B4UkaTK3QpgCwJnrxKfMPKdo92CN7OKXAlpAAnM3UPu0Q0lCCk57ylA9AJbRy2v8dDKOPAAWcoR6CMyeoHwRCA== - dependencies: - "@babel/helper-module-transforms" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-named-capturing-groups-regex@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz#9042e9b856bc6b3688c0c2e4060e9e10b1460923" @@ -1350,14 +914,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-named-capturing-groups-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.7.tgz#21e75d847b31189842fa7a77703722ed4b43d27d" - integrity sha512-vuFoLwr4qnv2xbZ16SQd6uPcH5FNrLHhk/Jzo++0XJFcaDsr4gjJVg6j398oMHiC+83k/GiBzviwF5KBJkPUtQ== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-new-target@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz#31ff54c4e0555cc549d5816e4ab39241dfb6ab00" @@ -1365,13 +921,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-new-target@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.29.7.tgz#714147ce7947e1b49cbd84137ca2e75e92b2a067" - integrity sha512-fEo41GmsOUhOBlw8ioo6zvjX5Xc2Lqkzlyfqbpsk3eB6TReV18uhxZ0esfEokVbY2+PVJAQHNKxER6lGrzNd3A== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-nullish-coalescing-operator@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz#1de4534c590af9596f53d67f52a92f12db984120" @@ -1380,13 +929,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-nullish-coalescing-operator@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.29.7.tgz#8a54cdf88c3f50433a6173117a286195b67714cc" - integrity sha512-idmp1dFaekP9GbcMvG24Kvw2BfhFZjHnNJCkV4WuIY4PskJzwI3f1N5OdgYke38T7rftO6ERulFRn2cFeZwRkg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-numeric-separator@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz#bea62b538c80605d8a0fac9b40f48e97efa7de63" @@ -1395,13 +937,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-numeric-separator@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.29.7.tgz#0266d5cd42ab87ec40fee45a4e36483cfdcbc66a" - integrity sha512-zR7fv/z14OjgHl4AgRtkDBvBMhIzCxqV/qN/2BCRC7LjFwvuzjYe7gDWxC4Wl/SNsLM6SE1IWvRPYMgSJaUvNw== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-object-rest-spread@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz#d13a2b93435aeb8a197e115221cab266ba6e55d6" @@ -1412,32 +947,13 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.24.7" -"@babel/plugin-transform-object-rest-spread@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.29.7.tgz#e0d5060241803922c545676613cc8acbbda0d266" - integrity sha512-Ld98jn4c0smUywL57m7SgsHq3OpThOa6LqZJif3G6jYOovPleoFhVrBJ1WegRApSFB2wu4+RelAj9AC9G08Z4A== - dependencies: - "@babel/helper-compilation-targets" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-destructuring" "^7.29.7" - "@babel/plugin-transform-parameters" "^7.29.7" - "@babel/traverse" "^7.29.7" - "@babel/plugin-transform-object-super@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz#66eeaff7830bba945dd8989b632a40c04ed625be" integrity sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-replace-supers" "^7.24.7" - -"@babel/plugin-transform-object-super@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.29.7.tgz#e89283d14fa3c35817d4493ffc6bc649aa10e4eb" - integrity sha512-Ea/diGcw0twB5IlZPO5sgET6fJsLJqPABqTuFWIR+iMPGPZJkATEIWx0wa+aEQ5UY1CBQyP/gkAiLEqn1vBiQA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-replace-supers" "^7.29.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-replace-supers" "^7.24.7" "@babel/plugin-transform-optional-catch-binding@^7.24.7": version "7.24.7" @@ -1447,13 +963,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-catch-binding@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.29.7.tgz#729664f79985be504eba112c51de9f71d009030b" - integrity sha512-sLsyndxK2VwX6yNUOakMb7Sh553ZTe/vVM1XJ+9Z5aW1ytsc8xOIwmyk05NNjN60vkc5/KqoTH6hB4V41LJhng== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-optional-chaining@^7.24.7", "@babel/plugin-transform-optional-chaining@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz#bb02a67b60ff0406085c13d104c99a835cdf365d" @@ -1463,14 +972,6 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.29.7.tgz#b84a1b574b3c73001023092567e16c492b720e51" - integrity sha512-6GM1dhvK3gNODkXcEcMCOLEDCLSoZ/sBbro2Ax8HURyasQ4NshagQixkRFdh5niI6E4gmA/jYI/4aT7rRos3ZQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-transform-parameters@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz#5881f0ae21018400e320fc7eb817e529d1254b68" @@ -1478,13 +979,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-parameters@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.29.7.tgz#a5ddc3b9bfb534814cb8334cbeba47d9cf9db090" - integrity sha512-ZDOBqV/qLYJI0YElr8DcENEyARsFQeESqWXH6gZlghYXuPPjvweuDhP4VyEi4BlUBlLRFZVjxoZDMjxhLW766g== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-private-methods@^7.25.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.4.tgz#9bbefbe3649f470d681997e0b64a4b254d877242" @@ -1493,14 +987,6 @@ "@babel/helper-create-class-features-plugin" "^7.25.4" "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-private-methods@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.29.7.tgz#cea8bd3ab99533892897a02999d5b752584ad145" - integrity sha512-/6Rz4DK1ETDEM/bWHsPHcaEe7ZaT1EqSXjtSP/L0DijOYuaUhiRiOKcwpZ8P7zR4xXEHc2ITdiCgBm9Tpyv9ug== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-private-property-in-object@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz#4eec6bc701288c1fab5f72e6a4bbc9d67faca061" @@ -1511,15 +997,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" -"@babel/plugin-transform-private-property-in-object@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.29.7.tgz#4a2f6be5aba47be7afbdb4cd7903c46edf3a7661" - integrity sha512-+BNo06dnrzdNNqCm1X6YUaVv0DKk8Q+JYcoZfOkLhYWNCXzlwTSRq8zGWayT1csjcpNXV9CQTBRRbmTLZac5cA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - "@babel/helper-create-class-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-property-literals@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz#f0d2ed8380dfbed949c42d4d790266525d63bbdc" @@ -1527,13 +1004,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-property-literals@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.29.7.tgz#d45817cd72f9e134ab1f7fbb79264cfcb85cf636" - integrity sha512-bOMRLQuI0A5ZqHq3OWJ89/rXpJ/NJrbVhXiP4zwPGMs6kpcVsuTUNjwoE30K0Qm3mf48a/TnRYYD6vPNqcg6jA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-react-display-name@^7.16.0", "@babel/plugin-transform-react-display-name@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.24.7.tgz#9caff79836803bc666bcfe210aeb6626230c293b" @@ -1562,7 +1032,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.29.7" -"@babel/plugin-transform-react-jsx@7.25.2", "@babel/plugin-transform-react-jsx@^7.24.7": +"@babel/plugin-transform-react-jsx@^7.24.7": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.2.tgz#e37e8ebfa77e9f0b16ba07fadcb6adb47412227a" integrity sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA== @@ -1589,21 +1059,6 @@ "@babel/helper-plugin-utils" "^7.24.7" regenerator-transform "^0.15.2" -"@babel/plugin-transform-regenerator@^7.29.7": - version "7.29.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.8.tgz#3a4a4dd7214af9d524f0503bb97c99af5f4abf26" - integrity sha512-0UpIXPtdDtMXfnV2OJAVMLpj3H/92vmkA6lpSRakmycJvj3VUy6Xs1dM8tXRugupykr5WB+LpiVl0J8LMVg2mg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - -"@babel/plugin-transform-regexp-modifiers@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.29.7.tgz#68311c0c10af2198212528863f8542843e424025" - integrity sha512-mB5Fs0VWrJ42ZCmc8114v60qetdaUVNkj9PmSZRmanCZM3S9hm0CFRLjRmYIsuXav14l2jvZ+4T8iiCGnhj3nQ== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-reserved-words@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz#80037fe4fbf031fc1125022178ff3938bb3743a4" @@ -1611,13 +1066,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-reserved-words@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.29.7.tgz#a6feeb179b36a5f1fc6e3154c1eb727bdbe35876" - integrity sha512-5+YhdpVgmfSmwZyLMftfaiffLRMHjzIRHFHHLdibcSyJm2pasMrKHrO3Ptrt2DRshjvpgjEJJ1zVW14WPq/6QA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-runtime@^7.16.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.25.4.tgz#96e4ad7bfbbe0b4a7b7e6f2a533ca326cf204963" @@ -1637,13 +1085,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-shorthand-properties@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.29.7.tgz#25c0436b98f4bd9ca4b98e1fbd662743bbaab9bf" - integrity sha512-I+WYbGBAiCn7nA6xBrlgPH+MB7HWb4u8pv5S0Pv7OtwNvIFvCCb24YlttKEeUFVurfBCEaOTnuhlqsb7f0Z5Dg== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-spread@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz#e8a38c0fde7882e0fb8f160378f74bd885cc7bb3" @@ -1652,14 +1093,6 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" -"@babel/plugin-transform-spread@^7.29.7": - version "7.29.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.29.8.tgz#c894cff38556a5dafeb412e13fc012b6df4b95a2" - integrity sha512-4S9ksMGVWUshvgK0mKfvZky7leuG5/uoFVwMpAomJ8bMoDJiNHRVmc1EglwW/CmGVSqqWpEbXm9FmbRit22qoA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-transform-sticky-regex@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz#96ae80d7a7e5251f657b5cf18f1ea6bf926f5feb" @@ -1667,13 +1100,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-sticky-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.29.7.tgz#a42c0fd1fa42f7e98e1e0c7757f72a1bbca3a015" - integrity sha512-BCHzNYJGe9l7EpwwDBN/ztlL2NYFFq8hp9ddjtUEM9f2O7S7kKV/lL6Fwo7IF7NSkYhPK2vO+86nIGltA90MsA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-template-literals@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz#a05debb4a9072ae8f985bcf77f3f215434c8f8c8" @@ -1681,13 +1107,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-template-literals@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.29.7.tgz#ada97d8e0832bca8edb315888aa654b1570f3835" - integrity sha512-NCSEJ4sLFU2gqAub45HYh4fus2yQ36rr6ei6vpU7NdoJqCpxvEG8E6eJpscGyXP3VHD2Ny+fSXr04k1hoUrFqA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-typeof-symbol@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz#383dab37fb073f5bfe6e60c654caac309f92ba1c" @@ -1695,13 +1114,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-typeof-symbol@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.29.7.tgz#d848a4677c1ee3485ab017f4018f04597798911c" - integrity sha512-223mNGoTkBiTEWFoK+Q6Go3tueMRclO8vxxxxquNCYuNI4jWOofFKJRRDu6SDrB8Sgo1UEGW9T4GAQ8ZyRso1A== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-typescript@^7.24.7": version "7.25.2" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz#237c5d10de6d493be31637c6b9fa30b6c5461add" @@ -1713,17 +1125,6 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-syntax-typescript" "^7.24.7" -"@babel/plugin-transform-typescript@^7.29.7": - version "7.29.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz#963dc446aea3fafcab8ffe217329263f5613feb6" - integrity sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.29.7" - "@babel/helper-create-class-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" - "@babel/plugin-syntax-typescript" "^7.29.7" - "@babel/plugin-transform-unicode-escapes@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz#2023a82ced1fb4971630a2e079764502c4148e0e" @@ -1731,13 +1132,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-unicode-escapes@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.29.7.tgz#1e99554b0cddfd650d649a9f2b996049893e5720" - integrity sha512-jCfXxSjf94lf4E0hKE0AByxF6F3/pVFqRdUUNkDJhsY0m1ZKjnN6ZYyMeHNpzflxb/0q5b7t3p+BE+SLF1WOtA== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-unicode-property-regex@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz#9073a4cd13b86ea71c3264659590ac086605bbcd" @@ -1746,14 +1140,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-unicode-property-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.29.7.tgz#44444afc73768c2190fac4d95f7716817b7f204a" - integrity sha512-OgZ+zoAJgZLUCunsTRQ5LAjOywDv5zzZ2/hQ5aMw1pGXyY2rtE8/chXYUmu3AlVHKpm10KEdG9aMwbI/K76ZGw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-unicode-regex@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz#dfc3d4a51127108099b19817c0963be6a2adf19f" @@ -1762,14 +1148,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-unicode-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.29.7.tgz#c3064b293ff7f1794b71f7650eec8db9896d3e59" - integrity sha512-7D/x/23/d/3VqZ0QA+LGbZMlGwZjztBygSWWWsfTPoQ1oQ6Q1P6Mr3d0kk42XabyUVw+fha3LqdRsFqeKqvCyA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/plugin-transform-unicode-sets-regex@^7.25.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.4.tgz#be664c2a0697ffacd3423595d5edef6049e8946c" @@ -1778,14 +1156,6 @@ "@babel/helper-create-regexp-features-plugin" "^7.25.2" "@babel/helper-plugin-utils" "^7.24.8" -"@babel/plugin-transform-unicode-sets-regex@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.29.7.tgz#b03ac9f27326f6197e8e574add83bbf33fc34ecd" - integrity sha512-BLOhLht9DOJwIxlmp91wHvkXv1lguuHS3/FwUO8HL1H0u8s4hR1gASVFyilu9iGtcTRYqjTZmlsFFeQletntEg== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/preset-env@^7.16.4": version "7.25.4" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.25.4.tgz#be23043d43a34a2721cd0f676c7ba6f1481f6af6" @@ -1875,83 +1245,6 @@ core-js-compat "^3.37.1" semver "^6.3.1" -"@babel/preset-env@^7.29.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.29.7.tgz#5e2ab5e764b493fdefc99c43aeaa70a9533a37fd" - integrity sha512-GYzX36n1nsciIb0uyH0GHwxwtNwPQIcpxSeiVLDtG/B7jB5xXgchnmL1f/jCX5o+pwnaDBtO60ONSJhEBJfxYA== - dependencies: - "@babel/compat-data" "^7.29.7" - "@babel/helper-compilation-targets" "^7.29.7" - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-validator-option" "^7.29.7" - "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.29.7" - "@babel/plugin-bugfix-safari-class-field-initializer-scope" "^7.29.7" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.29.7" - "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array" "^7.29.7" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.29.7" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.29.7" - "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" - "@babel/plugin-syntax-import-assertions" "^7.29.7" - "@babel/plugin-syntax-import-attributes" "^7.29.7" - "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.29.7" - "@babel/plugin-transform-async-generator-functions" "^7.29.7" - "@babel/plugin-transform-async-to-generator" "^7.29.7" - "@babel/plugin-transform-block-scoped-functions" "^7.29.7" - "@babel/plugin-transform-block-scoping" "^7.29.7" - "@babel/plugin-transform-class-properties" "^7.29.7" - "@babel/plugin-transform-class-static-block" "^7.29.7" - "@babel/plugin-transform-classes" "^7.29.7" - "@babel/plugin-transform-computed-properties" "^7.29.7" - "@babel/plugin-transform-destructuring" "^7.29.7" - "@babel/plugin-transform-dotall-regex" "^7.29.7" - "@babel/plugin-transform-duplicate-keys" "^7.29.7" - "@babel/plugin-transform-duplicate-named-capturing-groups-regex" "^7.29.7" - "@babel/plugin-transform-dynamic-import" "^7.29.7" - "@babel/plugin-transform-explicit-resource-management" "^7.29.7" - "@babel/plugin-transform-exponentiation-operator" "^7.29.7" - "@babel/plugin-transform-export-namespace-from" "^7.29.7" - "@babel/plugin-transform-for-of" "^7.29.7" - "@babel/plugin-transform-function-name" "^7.29.7" - "@babel/plugin-transform-json-strings" "^7.29.7" - "@babel/plugin-transform-literals" "^7.29.7" - "@babel/plugin-transform-logical-assignment-operators" "^7.29.7" - "@babel/plugin-transform-member-expression-literals" "^7.29.7" - "@babel/plugin-transform-modules-amd" "^7.29.7" - "@babel/plugin-transform-modules-commonjs" "^7.29.7" - "@babel/plugin-transform-modules-systemjs" "^7.29.7" - "@babel/plugin-transform-modules-umd" "^7.29.7" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.29.7" - "@babel/plugin-transform-new-target" "^7.29.7" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.29.7" - "@babel/plugin-transform-numeric-separator" "^7.29.7" - "@babel/plugin-transform-object-rest-spread" "^7.29.7" - "@babel/plugin-transform-object-super" "^7.29.7" - "@babel/plugin-transform-optional-catch-binding" "^7.29.7" - "@babel/plugin-transform-optional-chaining" "^7.29.7" - "@babel/plugin-transform-parameters" "^7.29.7" - "@babel/plugin-transform-private-methods" "^7.29.7" - "@babel/plugin-transform-private-property-in-object" "^7.29.7" - "@babel/plugin-transform-property-literals" "^7.29.7" - "@babel/plugin-transform-regenerator" "^7.29.7" - "@babel/plugin-transform-regexp-modifiers" "^7.29.7" - "@babel/plugin-transform-reserved-words" "^7.29.7" - "@babel/plugin-transform-shorthand-properties" "^7.29.7" - "@babel/plugin-transform-spread" "^7.29.7" - "@babel/plugin-transform-sticky-regex" "^7.29.7" - "@babel/plugin-transform-template-literals" "^7.29.7" - "@babel/plugin-transform-typeof-symbol" "^7.29.7" - "@babel/plugin-transform-unicode-escapes" "^7.29.7" - "@babel/plugin-transform-unicode-property-regex" "^7.29.7" - "@babel/plugin-transform-unicode-regex" "^7.29.7" - "@babel/plugin-transform-unicode-sets-regex" "^7.29.7" - "@babel/preset-modules" "0.1.6-no-external-plugins" - babel-plugin-polyfill-corejs2 "^0.4.15" - babel-plugin-polyfill-corejs3 "^0.14.0" - babel-plugin-polyfill-regenerator "^0.6.6" - core-js-compat "^3.48.0" - semver "^6.3.1" - "@babel/preset-modules@0.1.6-no-external-plugins": version "0.1.6-no-external-plugins" resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" @@ -1984,17 +1277,6 @@ "@babel/plugin-transform-modules-commonjs" "^7.24.7" "@babel/plugin-transform-typescript" "^7.24.7" -"@babel/preset-typescript@^7.24.7": - version "7.29.7" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz#de9be1f47b785c979ec7b3a71f4cd8bae5267b62" - integrity sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ== - dependencies: - "@babel/helper-plugin-utils" "^7.29.7" - "@babel/helper-validator-option" "^7.29.7" - "@babel/plugin-syntax-jsx" "^7.29.7" - "@babel/plugin-transform-modules-commonjs" "^7.29.7" - "@babel/plugin-transform-typescript" "^7.29.7" - "@babel/regjsgen@^0.8.0": version "0.8.0" resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" @@ -2010,7 +1292,7 @@ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.29.7.tgz#12022450c45a4da6d8d8287b18a4ff2ddb23f768" integrity sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw== -"@babel/template@^7.24.7", "@babel/template@^7.25.0", "@babel/template@^7.3.3": +"@babel/template@^7.24.7", "@babel/template@^7.25.0": version "7.25.0" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== @@ -2019,15 +1301,6 @@ "@babel/parser" "^7.25.0" "@babel/types" "^7.25.0" -"@babel/template@^7.27.2": - version "7.27.2" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d" - integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw== - dependencies: - "@babel/code-frame" "^7.27.1" - "@babel/parser" "^7.27.2" - "@babel/types" "^7.27.1" - "@babel/template@^7.29.7": version "7.29.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.29.7.tgz#4d9d4004f645cdd304de958c725162784ecac700" @@ -2037,7 +1310,7 @@ "@babel/parser" "^7.29.7" "@babel/types" "^7.29.7" -"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8", "@babel/traverse@^7.25.0", "@babel/traverse@^7.25.1", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.3", "@babel/traverse@^7.25.4", "@babel/traverse@^7.7.2": +"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8", "@babel/traverse@^7.25.0", "@babel/traverse@^7.25.1", "@babel/traverse@^7.25.2", "@babel/traverse@^7.25.3", "@babel/traverse@^7.25.4": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== @@ -2050,19 +1323,6 @@ debug "^4.3.1" globals "^11.1.0" -"@babel/traverse@^7.27.1": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.0.tgz#518aa113359b062042379e333db18380b537e34b" - integrity sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg== - dependencies: - "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.0" - "@babel/helper-globals" "^7.28.0" - "@babel/parser" "^7.28.0" - "@babel/template" "^7.27.2" - "@babel/types" "^7.28.0" - debug "^4.3.1" - "@babel/traverse@^7.29.13": version "7.29.13" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.13.tgz#2c536b67d36f8d3cb86393fe0f0567bd01b748a5" @@ -2089,7 +1349,7 @@ "@babel/types" "^7.29.8" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3", "@babel/types@^7.4.4": +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.4.4": version "7.25.6" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== @@ -2098,14 +1358,6 @@ "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" -"@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.0.tgz#2fd0159a6dc7353933920c43136335a9b264d950" - integrity sha512-jYnje+JyZG5YThjHiF28oT4SIZLnYOcSBb6+SDaFIyzDVSkXQmQQYclJ2R+YxcdmK0AX6x1E5OQNtuh3jHDrUg== - dependencies: - "@babel/helper-string-parser" "^7.27.1" - "@babel/helper-validator-identifier" "^7.27.1" - "@babel/types@^7.29.11": version "7.29.11" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.11.tgz#774cffe8cac2ca494f1334e4052002c96bf628fc" @@ -2122,10 +1374,45 @@ "@babel/helper-string-parser" "^7.29.7" "@babel/helper-validator-identifier" "^7.29.7" -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@bramus/specificity@^2.4.2": + version "2.4.3" + resolved "https://registry.yarnpkg.com/@bramus/specificity/-/specificity-2.4.3.tgz#66586208e89e37327e509a94eef6545d76915db8" + integrity sha512-0GEz8qJWokkUVYQYRukmkSHIFNoBH8QTreeHrAFbvz1XFYc3Y+puhMs8PQ5x8GNugiC2l5jvDBXKLbBIByeSBw== + dependencies: + css-tree "^3.2.1" + +"@csstools/color-helpers@^6.1.3": + version "6.1.3" + resolved "https://registry.yarnpkg.com/@csstools/color-helpers/-/color-helpers-6.1.3.tgz#fb5643a6ee828cc10c4a1aa6a6606940f459d780" + integrity sha512-c6CpX5G1pvuOKTXiRFJ54Lzc8zQrZ3qUjp44QC5DJNt1OmA1vmfUxOMCcKdDqsvffVDG0/MHnY63J+Mn0nmdUg== + +"@csstools/css-calc@^3.2.0", "@csstools/css-calc@^3.4.4": + version "3.4.4" + resolved "https://registry.yarnpkg.com/@csstools/css-calc/-/css-calc-3.4.4.tgz#05416934945345f6ff69a354a7822faa9e742dea" + integrity sha512-Jwo1Z8DUsZ8xVOLBdLMfhjJFvWD6pqaUTlBNQZ+qIB2i9g7yG8kd/UBJj2c9J9Twr+u87cjy9BjkmfvMbyOk3Q== + +"@csstools/css-color-parser@^4.1.0": + version "4.2.8" + resolved "https://registry.yarnpkg.com/@csstools/css-color-parser/-/css-color-parser-4.2.8.tgz#d3e30fcb87de2d74847c9474c21942d4529aa7e2" + integrity sha512-JLsKBee9dmnA3L+H+vYK4lQ6n5CoY3yEnh33zdlMutRfrTxtqt+hFeoZ1maHRt5vLw67huDLpOkDb3rl9A51MQ== + dependencies: + "@csstools/color-helpers" "^6.1.3" + "@csstools/css-calc" "^3.4.4" + +"@csstools/css-parser-algorithms@^4.0.0": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.3.tgz#d3f9a5502b828fca49511a66aa274b279e15157d" + integrity sha512-EpCfUDaJtwohPHC7egoXxPGT/R1/WyyAhw87MKB/7BPPZvZU+IcEqo4er5FpLnby2Gvwt9Lpxy+WNEDyFjoXtA== + +"@csstools/css-syntax-patches-for-csstree@^1.1.3": + version "1.1.17" + resolved "https://registry.yarnpkg.com/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.17.tgz#42b82855d0f0711f134619d9ac4a538617f0e3f3" + integrity sha512-IPx9W33+t0Yt5TVb+Y7oICrThOIry0TY6GuXfSHOatxA0uiHqbzi98Gai905lpBAX1m/LH7iI96e9jcI7Dkvxw== + +"@csstools/css-tokenizer@^4.0.0": + version "4.0.3" + resolved "https://registry.yarnpkg.com/@csstools/css-tokenizer/-/css-tokenizer-4.0.3.tgz#eeab5057075343851c12b5181bd6efb463b0dd11" + integrity sha512-gdkFe/Z4KU1q8Y5S3GYScXGcOnO56dgWwIs5+97Ij1VIKISItOIUlCXUq4VLbdnRclF+SSQ49sLsn3KeV111AA== "@develar/schema-utils@~2.6.5": version "2.6.5" @@ -2357,6 +1644,11 @@ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== +"@exodus/bytes@^1.11.0", "@exodus/bytes@^1.15.0", "@exodus/bytes@^1.6.0": + version "1.16.0" + resolved "https://registry.yarnpkg.com/@exodus/bytes/-/bytes-1.16.0.tgz#954c9d9dd7eec15b966b2e8f2d883c04295b720c" + integrity sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA== + "@humanwhocodes/config-array@^0.13.0": version "0.13.0" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" @@ -2393,191 +1685,6 @@ resolved "https://registry.yarnpkg.com/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz#b1d69b8938aab4c292f7fde628c47dc1dbd737ef" integrity sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw== -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.5.1.tgz#260fe7239602fe5130a94f1aa386eff54b014bba" - integrity sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - -"@jest/core@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.5.1.tgz#267ac5f704e09dc52de2922cbf3af9edcd64b626" - integrity sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/reporters" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.8.1" - exit "^0.1.2" - graceful-fs "^4.2.9" - jest-changed-files "^27.5.1" - jest-config "^27.5.1" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-resolve-dependencies "^27.5.1" - jest-runner "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - jest-watcher "^27.5.1" - micromatch "^4.0.4" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" - -"@jest/environment@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.5.1.tgz#d7425820511fe7158abbecc010140c3fd3be9c74" - integrity sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA== - dependencies: - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - -"@jest/fake-timers@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" - integrity sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ== - dependencies: - "@jest/types" "^27.5.1" - "@sinonjs/fake-timers" "^8.0.1" - "@types/node" "*" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -"@jest/globals@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.5.1.tgz#7ac06ce57ab966566c7963431cef458434601b2b" - integrity sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/types" "^27.5.1" - expect "^27.5.1" - -"@jest/reporters@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.5.1.tgz#ceda7be96170b03c923c37987b64015812ffec04" - integrity sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.9" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.1.3" - jest-haste-map "^27.5.1" - jest-resolve "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^8.1.0" - -"@jest/source-map@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" - integrity sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg== - dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.9" - source-map "^0.6.0" - -"@jest/test-result@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.5.1.tgz#56a6585fa80f7cdab72b8c5fc2e871d03832f5bb" - integrity sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag== - dependencies: - "@jest/console" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz#4057e0e9cea4439e544c6353c6affe58d095745b" - integrity sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ== - dependencies: - "@jest/test-result" "^27.5.1" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-runtime "^27.5.1" - -"@jest/transform@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.5.1.tgz#6c3501dcc00c4c08915f292a600ece5ecfe1f409" - integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^27.5.1" - babel-plugin-istanbul "^6.1.1" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-regex-util "^27.5.1" - jest-util "^27.5.1" - micromatch "^4.0.4" - pirates "^4.0.4" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" - "@jridgewell/gen-mapping@^0.3.12": version "0.3.12" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz#2234ce26c62889f03db3d7fea43c1932ab3e927b" @@ -2628,6 +1735,14 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz#f4c663e862f06dc98ca4d453862c46902789a18d" integrity sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw== +"@jridgewell/trace-mapping@0.3.31": + version "0.3.31" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" @@ -3177,31 +2292,12 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow== -"@sinonjs/commons@^1.7.0": - version "1.8.6" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.6.tgz#80c516a4dc264c2a69115e7578d62581ff455ed9" - integrity sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^8.0.1": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" - integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== - dependencies: - "@sinonjs/commons" "^1.7.0" - -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14", "@types/babel__core@^7.20.5": +"@types/babel__core@^7.20.5": version "7.20.5" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== @@ -3227,13 +2323,21 @@ "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": +"@types/babel__traverse@*": version "7.20.6" resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.6.tgz#8dc9f0ae0f202c08d8d4dab648912c8d6038e3f7" integrity sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg== dependencies: "@babel/types" "^7.20.7" +"@types/chai@^5.2.2": + version "5.2.3" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.2.3.tgz#8e9cd9e1c3581fa6b341a5aed5588eb285be0b4a" + integrity sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA== + dependencies: + "@types/deep-eql" "*" + assertion-error "^2.0.1" + "@types/d3-array@^3.2.2": version "3.2.2" resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-3.2.2.tgz#e02151464d02d4a1b44646d0fcdb93faf88fde8c" @@ -3246,6 +2350,16 @@ dependencies: "@types/ms" "*" +"@types/deep-eql@*": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/deep-eql/-/deep-eql-4.0.2.tgz#334311971d3a07121e7eb91b684a605e7eea9cbd" + integrity sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw== + +"@types/estree@^1.0.0": + version "1.0.10" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.10.tgz#8a4a266065af8c2fcf5983153cd97c11b313d0c6" + integrity sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g== + "@types/fs-extra@9.0.13", "@types/fs-extra@^9.0.11": version "9.0.13" resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.13.tgz#7594fbae04fe7f1918ce8b3d213f74ff44ac1f45" @@ -3261,32 +2375,6 @@ "@types/minimatch" "*" "@types/node" "*" -"@types/graceful-fs@^4.1.2": - version "4.1.9" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.9.tgz#2a06bc0f68a20ab37b3e36aa238be6abdf49e8b4" - integrity sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" - integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== - -"@types/istanbul-lib-report@*": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf" - integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54" - integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ== - dependencies: - "@types/istanbul-lib-report" "*" - "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" @@ -3339,11 +2427,6 @@ "@types/node" "*" xmlbuilder ">=11.0.1" -"@types/prettier@^2.1.5": - version "2.7.3" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f" - integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== - "@types/prismjs@^1.26.5": version "1.26.6" resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.6.tgz#6ea27c126d645319ae4f7055eda63a9e835c0187" @@ -3376,28 +2459,11 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e" integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ== -"@types/stack-utils@^2.0.0": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" - integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== - "@types/verror@^1.10.3": version "1.10.10" resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.10.tgz#d5a4b56abac169bfbc8b23d291363a682e6fa087" integrity sha512-l4MM0Jppn18hb9xmM6wwD1uTdShpf9Pn80aXTStnK1C94gtPvJcV2FrDmbOQUAQfJ1cKZHktkQUDwEqaAKXMMg== -"@types/yargs-parser@*": - version "21.0.3" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" - integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== - -"@types/yargs@^16.0.0": - version "16.0.9" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.9.tgz#ba506215e45f7707e6cbcaf386981155b7ab956e" - integrity sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA== - dependencies: - "@types/yargs-parser" "*" - "@typescript-eslint/eslint-plugin@^5.5.0", "@typescript-eslint/eslint-plugin@^8", "@typescript-eslint/eslint-plugin@^8.72.1": version "8.72.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz#95e29de63ce7ed793eb1c6efd9f8b802ce808262" @@ -3566,6 +2632,21 @@ "@types/babel__core" "^7.20.5" react-refresh "^0.18.0" +"@vitest/mocker@5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@vitest/mocker/-/mocker-5.1.1.tgz#47b7815458abceb17e3b12218a7868376e02db56" + integrity sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg== + dependencies: + "@jridgewell/trace-mapping" "0.3.31" + "@vitest/spy" "5.1.1" + estree-walker "^3.0.3" + magic-string "^1.4.5" + +"@vitest/spy@5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-5.1.1.tgz#9bdbcaf0b0d60486a10a03c3ba5a752ec80b3ca9" + integrity sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ== + "@xmldom/xmldom@^0.8.8": version "0.8.15" resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.15.tgz#71ebf80729e4e95221d519ac9b1e1eaea7784907" @@ -3576,35 +2657,12 @@ resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4, acorn@^8.9.0: +acorn@^8.9.0: version "8.12.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== @@ -3660,13 +2718,6 @@ allotment@^1.20.6: lodash.debounce "^4.0.0" usehooks-ts "^3.1.1" -ansi-escapes@^4.2.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -3696,24 +2747,11 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" -ansi-styles@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" - integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== - ansi-styles@^6.1.0: version "6.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -anymatch@^3.0.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - app-builder-bin@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/app-builder-bin/-/app-builder-bin-4.0.0.tgz#1df8e654bd1395e4a319d82545c98667d7eed2f0" @@ -3759,13 +2797,6 @@ archive-type@^4.0.0: dependencies: file-type "^4.2.0" -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - argparse@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" @@ -3884,6 +2915,11 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== +assertion-error@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" + integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== + ast-types-flow@^0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.8.tgz#0a85e1c92695769ac13a428bb653e7538bea27d6" @@ -3951,41 +2987,6 @@ axobject-query@^4.1.0: resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.1.0.tgz#28768c76d0e3cff21bc62a9e2d0b6ac30042a1ee" integrity sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ== -babel-jest@27.5.1, babel-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444" - integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== - dependencies: - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__core" "^7.1.14" - babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - slash "^3.0.0" - -babel-plugin-istanbul@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz#9be98ecf28c331eb9f5df9c72d6f89deb8181c2e" - integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - babel-plugin-macros@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1" @@ -4004,78 +3005,25 @@ babel-plugin-polyfill-corejs2@^0.4.10: "@babel/helper-define-polyfill-provider" "^0.6.2" semver "^6.3.1" -babel-plugin-polyfill-corejs2@^0.4.15: - version "0.4.17" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.17.tgz#198f970f1c99a856b466d1187e88ce30bd199d91" - integrity sha512-aTyf30K/rqAsNwN76zYrdtx8obu0E4KoUME29B1xj+B3WxgvWkp943vYQ+z8Mv3lw9xHXMHpvSPOBxzAkIa94w== - dependencies: - "@babel/compat-data" "^7.28.6" - "@babel/helper-define-polyfill-provider" "^0.6.8" - semver "^6.3.1" - babel-plugin-polyfill-corejs3@^0.10.6: version "0.10.6" resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz#2deda57caef50f59c525aeb4964d3b2f867710c7" integrity sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.2" - core-js-compat "^3.38.0" - -babel-plugin-polyfill-corejs3@^0.14.0: - version "0.14.2" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.14.2.tgz#6ac08d2f312affb70c4c69c0fbba4cb417ee5587" - integrity sha512-coWpDLJ410R781Npmn/SIBZEsAetR4xVi0SxLMXPaMO4lSf1MwnkGYMtkFxew0Dn8B3/CpbpYxN0JCgg8mn67g== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.8" - core-js-compat "^3.48.0" - -babel-plugin-polyfill-regenerator@^0.6.1: - version "0.6.2" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e" - integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.2" - -babel-plugin-polyfill-regenerator@^0.6.6: - version "0.6.8" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.8.tgz#8a6bfd5dd54239362b3d06ce47ac52b2d95d7721" - integrity sha512-M762rNHfSF1EV3SLtnCJXFoQbbIIz0OyRwnCmV0KPC7qosSfCO0QLTSuJX3ayAebubhE6oYBAYPrBA5ljowaZg== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.8" - -babel-plugin-transform-react-remove-prop-types@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" - integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== - -babel-preset-current-node-syntax@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz#9a929eafece419612ef4ae4f60b1862ebad8ef30" - integrity sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-import-attributes" "^7.24.7" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" + dependencies: + "@babel/helper-define-polyfill-provider" "^0.6.2" + core-js-compat "^3.38.0" -babel-preset-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81" - integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag== +babel-plugin-polyfill-regenerator@^0.6.1: + version "0.6.2" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e" + integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg== dependencies: - babel-plugin-jest-hoist "^27.5.1" - babel-preset-current-node-syntax "^1.0.0" + "@babel/helper-define-polyfill-provider" "^0.6.2" + +babel-plugin-transform-react-remove-prop-types@^0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" + integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== babel-preset-react-app@^10.0.1: version "10.0.1" @@ -4126,6 +3074,13 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" +bidi-js@^1.0.3: + version "1.1.0" + resolved "https://registry.yarnpkg.com/bidi-js/-/bidi-js-1.1.0.tgz#c92efafe3fce3b9fdd30ba67bdddf0dd4d424af7" + integrity sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg== + dependencies: + require-from-string "^2.0.2" + bl@^1.0.0: version "1.2.3" resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.3.tgz#1e8dd80142eac80d7158c9dccc047fb620e035e7" @@ -4182,12 +3137,7 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browserslist@^4.23.1, browserslist@^4.23.3, browserslist@^4.24.0, browserslist@^4.28.7: +browserslist@^4.23.1, browserslist@^4.23.3, browserslist@^4.24.0: version "4.28.9" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.9.tgz#07ce6b449b90af880eb9bfb7cd39372cc4f71c8c" integrity sha512-EWazOblFYUvlGZcfGhPUPmYh3nikUxBVb+y9MJun5f3hBi812X+8MSQTujLBtgK3cf51fJWbWfOjyeO954d+Eg== @@ -4198,13 +3148,6 @@ browserslist@^4.23.1, browserslist@^4.23.3, browserslist@^4.24.0, browserslist@^ node-releases "^2.0.54" update-browserslist-db "^1.3.2" -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - buffer-alloc-unsafe@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" @@ -4344,16 +3287,6 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - caniuse-lite@^1.0.30001810: version "1.0.30001810" resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz" @@ -4364,6 +3297,11 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== +chai@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/chai/-/chai-6.3.0.tgz#91f89eb789c2bb1ae1787d78c8518e1d3cebfc07" + integrity sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg== + chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -4381,11 +3319,6 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - chownr@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" @@ -4401,11 +3334,6 @@ ci-info@^3.2.0, ci-info@^3.7.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== -cjs-module-lexer@^1.0.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" - integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== - classnames@^2.3.0, classnames@^2.3.2: version "2.5.1" resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b" @@ -4426,15 +3354,6 @@ cli-truncate@^2.1.0: slice-ansi "^3.0.0" string-width "^4.2.0" -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - cliui@^8.0.1: version "8.0.1" resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" @@ -4456,21 +3375,11 @@ clsx@^2.1.1: resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999" integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA== -collect-v8-coverage@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" - integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -4558,7 +3467,7 @@ content-disposition@^0.5.2: dependencies: safe-buffer "5.2.1" -convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0: +convert-source-map@^1.5.0: version "1.9.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== @@ -4575,13 +3484,6 @@ core-js-compat@^3.37.1, core-js-compat@^3.38.0: dependencies: browserslist "^4.23.3" -core-js-compat@^3.48.0: - version "3.50.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.50.0.tgz#d5922c2a692ab1cba6078c920e7c5567421ae08e" - integrity sha512-XGpFGbMLHwSt74YLTKho7Ib242qi6O8MSX+sRokV4oz7iKXvQWGYZthjIhjRGMxjzVkAubBO512dKGYcefmX3Q== - dependencies: - browserslist "^4.28.7" - core-util-is@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -4630,22 +3532,13 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== +css-tree@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-3.2.1.tgz#86cac7011561272b30e6b1e042ba6ce047aa7518" + integrity sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA== dependencies: - cssom "~0.3.6" + mdn-data "2.27.1" + source-map-js "^1.2.1" csstype@^3.0.2: version "3.1.3" @@ -4676,14 +3569,13 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== +data-urls@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-7.0.0.tgz#6dce8b63226a1ecfdd907ce18a8ccfb1eee506d3" + integrity sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA== dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" + whatwg-mimetype "^5.0.0" + whatwg-url "^16.0.0" data-view-buffer@^1.0.1: version "1.0.1" @@ -4747,10 +3639,10 @@ debug@^4.4.0, debug@^4.4.3: dependencies: ms "^2.1.3" -decimal.js@^10.2.1: - version "10.4.3" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" - integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== +decimal.js@^10.6.0: + version "10.6.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.6.0.tgz#e649a43e3ab953a72192ff5983865e509f37ed9a" + integrity sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg== decode-uri-component@^0.2.0: version "0.2.2" @@ -4817,11 +3709,6 @@ decompress@^4.2.1: pify "^2.3.0" strip-dirs "^2.0.0" -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== - deep-equal@^2.0.5: version "2.2.3" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.3.tgz#af89dafb23a396c7da3e862abc0be27cf51d56e1" @@ -4861,11 +3748,6 @@ deepmerge@4.3.0: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b" integrity sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og== -deepmerge@^4.2.2: - version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - define-data-property@^1.0.1, define-data-property@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" @@ -4894,16 +3776,6 @@ detect-libc@^2.0.3: resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.1.2.tgz#689c5dcdc1900ef5583a4cb9f6d7b473742074ad" integrity sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ== -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== - dir-compare@^3.0.0: version "3.3.0" resolved "https://registry.yarnpkg.com/dir-compare/-/dir-compare-3.3.0.tgz#2c749f973b5c4b5d087f11edaae730db31788416" @@ -4969,13 +3841,6 @@ dom-helpers@^5.0.1: "@babel/runtime" "^7.8.7" csstype "^3.0.2" -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - dot-prop@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" @@ -5147,11 +4012,6 @@ electron@^45.2.3: "@electron/get" "^5.0.0" "@types/node" "^24.9.0" -emittery@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" - integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== - emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -5169,6 +4029,11 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0: dependencies: once "^1.4.0" +entities@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-9.0.0.tgz#c45df3cdbc5ce805474759f4ec4ea7907d9d5477" + integrity sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg== + env-paths@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-1.0.0.tgz#4168133b42bb05c38a35b1ae4397c8298ab369e0" @@ -5300,6 +4165,11 @@ es-iterator-helpers@^1.0.19: iterator.prototype "^1.1.2" safe-array-concat "^1.1.2" +es-module-lexer@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-2.3.2.tgz#311fa4f40168c1975c505477c51b23234d41ad55" + integrity sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw== + es-object-atoms@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" @@ -5364,22 +4234,6 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escodegen@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.1.0.tgz#ba93bbb7a43986d29d6041f99f5262da773e2e17" - integrity sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionalDependencies: - source-map "~0.6.1" - eslint-config-react-app@7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz#73ba3929978001c5c86274c017ea57eb5fa644b4" @@ -5604,11 +4458,6 @@ espree@^9.6.0, espree@^9.6.1: acorn-jsx "^5.3.2" eslint-visitor-keys "^3.4.1" -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - esquery@^1.4.2: version "1.6.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" @@ -5633,6 +4482,13 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-3.0.3.tgz#67c3e549ec402a487b4fc193d1953a524752340d" + integrity sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g== + dependencies: + "@types/estree" "^1.0.0" + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -5643,35 +4499,10 @@ eventemitter3@^5.0.0: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expect@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-27.5.1.tgz#83ce59f1e5bdf5f9d2b94b61d2050db48f3fef74" - integrity sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw== - dependencies: - "@jest/types" "^27.5.1" - jest-get-type "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" +expect-type@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.4.0.tgz#24edf7f0cc69a44d008567ba4594ab96f3c3a3d6" + integrity sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA== ext-list@^2.0.0: version "2.2.2" @@ -5741,13 +4572,6 @@ fastq@^1.6.0: dependencies: reusify "^1.0.4" -fb-watchman@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" - integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== - dependencies: - bser "2.1.1" - fd-slicer@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" @@ -5846,14 +4670,6 @@ find-up@^3.0.0: dependencies: locate-path "^3.0.0" -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - find-up@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" @@ -5903,17 +4719,6 @@ forever-agent@~0.6.1: resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== -form-data@^3.0.0: - version "3.0.5" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.5.tgz#2ea3ec24f0dcb7e0262a11efb732031240ea8e9f" - integrity sha512-j23EibVLnp4zNXGW7LjryXYa2X6U/M96yoOX+ybZxwkYajdxRNEqYY3zhh7y0i6kfISKS2jr+EJq1YTUDEv5+w== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - es-set-tostringtag "^2.1.0" - hasown "^2.0.4" - mime-types "^2.1.35" - form-data@^4.0.0: version "4.0.6" resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.6.tgz#28e864e1b786dbebb68db1f452f9635278665827" @@ -5987,7 +4792,7 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2, fsevents@~2.3.3: +fsevents@~2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== @@ -6049,11 +4854,6 @@ get-intrinsic@^1.2.6, get-intrinsic@^1.3.0: hasown "^2.0.2" math-intrinsics "^1.1.0" -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - get-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" @@ -6082,11 +4882,6 @@ get-stream@^4.1.0: dependencies: pump "^3.0.0" -get-stream@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - get-symbol-description@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" @@ -6138,7 +4933,7 @@ glob@^14.0.3: minipass "^7.1.3" path-scurry "^3.0.0" -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: +glob@^7.1.3, glob@^7.1.6: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -6217,7 +5012,7 @@ got@^8.3.1: url-parse-lax "^3.0.0" url-to-options "^1.0.1" -graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11, graceful-fs@^4.2.9: +graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.11: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -6303,7 +5098,7 @@ hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: dependencies: function-bind "^1.1.2" -hasown@^2.0.3, hasown@^2.0.4: +hasown@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.4.tgz#8c62d8cb90beb2aad5d0a5b67581ad9854c3f003" integrity sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== @@ -6329,32 +5124,18 @@ hosted-git-info@^4.1.0: dependencies: lru-cache "^6.0.0" -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== +html-encoding-sniffer@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz#f8d9390b3b348b50d4f61c16dd2ef5c05980a882" + integrity sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg== dependencies: - whatwg-encoding "^1.0.5" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + "@exodus/bytes" "^1.6.0" http-cache-semantics@3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - http-proxy-agent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" @@ -6373,7 +5154,7 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" -https-proxy-agent@^5.0.0, https-proxy-agent@^5.0.1: +https-proxy-agent@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== @@ -6381,11 +5162,6 @@ https-proxy-agent@^5.0.0, https-proxy-agent@^5.0.1: agent-base "6" debug "4" -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - iconv-corefoundation@^1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz#31065e6ab2c9272154c8b0821151e2c88f1b002a" @@ -6394,13 +5170,6 @@ iconv-corefoundation@^1.1.7: cli-truncate "^2.1.0" node-addon-api "^1.6.3" -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - iconv-lite@^0.6.2: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" @@ -6436,14 +5205,6 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-local@^3.0.2: - version "3.2.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" - integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -6559,13 +5320,6 @@ is-core-module@^2.13.0, is-core-module@^2.15.1: dependencies: hasown "^2.0.2" -is-core-module@^2.16.1: - version "2.16.2" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.2.tgz#3e07450a8080ebce3fbf0cac494f4d2ab324e082" - integrity sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA== - dependencies: - hasown "^2.0.3" - is-data-view@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.1.tgz#4b4d3a511b70f3dc26d42c03ca9ca515d847759f" @@ -6609,11 +5363,6 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - is-generator-function@^1.0.10: version "1.0.10" resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" @@ -6717,11 +5466,6 @@ is-stream@^1.1.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - is-string@^1.0.5, is-string@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" @@ -6743,7 +5487,7 @@ is-typed-array@^1.1.13: dependencies: which-typed-array "^1.1.14" -is-typedarray@^1.0.0, is-typedarray@~1.0.0: +is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== @@ -6789,537 +5533,82 @@ is-wsl@^2.1.1: isarray@0.0.1: version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isbinaryfile@^4.0.8: - version "4.0.10" - resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" - integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== - -isbinaryfile@^5.0.0: - version "5.0.2" - resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-5.0.2.tgz#fe6e4dfe2e34e947ffa240c113444876ba393ae0" - integrity sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" - integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== - -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" - integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^4.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.1.3: - version "3.1.7" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" - integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -isurl@^1.0.0-alpha5: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" - integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w== - dependencies: - has-to-string-tag-x "^1.2.0" - is-object "^1.0.1" - -iterator.prototype@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" - integrity sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w== - dependencies: - define-properties "^1.2.1" - get-intrinsic "^1.2.1" - has-symbols "^1.0.3" - reflect.getprototypeof "^1.0.4" - set-function-name "^2.0.1" - -jackspeak@^3.1.2: - version "3.4.3" - resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" - integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== - dependencies: - "@isaacs/cliui" "^8.0.2" - optionalDependencies: - "@pkgjs/parseargs" "^0.11.0" - -jake@^10.8.5: - version "10.9.2" - resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f" - integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA== - dependencies: - async "^3.2.3" - chalk "^4.0.2" - filelist "^1.0.4" - minimatch "^3.1.2" - -jest-changed-files@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.5.1.tgz#a348aed00ec9bf671cc58a66fcbe7c3dfd6a68f5" - integrity sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw== - dependencies: - "@jest/types" "^27.5.1" - execa "^5.0.0" - throat "^6.0.1" - -jest-circus@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.5.1.tgz#37a5a4459b7bf4406e53d637b49d22c65d125ecc" - integrity sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - dedent "^0.7.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - throat "^6.0.1" - -jest-cli@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.5.1.tgz#278794a6e6458ea8029547e6c6cbf673bd30b145" - integrity sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw== - dependencies: - "@jest/core" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.9" - import-local "^3.0.2" - jest-config "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - prompts "^2.0.1" - yargs "^16.2.0" - -jest-config@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.5.1.tgz#5c387de33dca3f99ad6357ddeccd91bf3a0e4a41" - integrity sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA== - dependencies: - "@babel/core" "^7.8.0" - "@jest/test-sequencer" "^27.5.1" - "@jest/types" "^27.5.1" - babel-jest "^27.5.1" - chalk "^4.0.0" - ci-info "^3.2.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.9" - jest-circus "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-get-type "^27.5.1" - jest-jasmine2 "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runner "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - micromatch "^4.0.4" - parse-json "^5.2.0" - pretty-format "^27.5.1" - slash "^3.0.0" - strip-json-comments "^3.1.1" - -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== - dependencies: - chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-docblock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" - integrity sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ== - dependencies: - detect-newline "^3.0.0" - -jest-each@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.5.1.tgz#5bc87016f45ed9507fed6e4702a5b468a5b2c44e" - integrity sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - jest-get-type "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - -jest-environment-jsdom@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz#ea9ccd1fc610209655a77898f86b2b559516a546" - integrity sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - jsdom "^16.6.0" - -jest-environment-node@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-27.5.1.tgz#dedc2cfe52fab6b8f5714b4808aefa85357a365e" - integrity sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== - -jest-haste-map@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" - integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng== - dependencies: - "@jest/types" "^27.5.1" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.9" - jest-regex-util "^27.5.1" - jest-serializer "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - micromatch "^4.0.4" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.3.2" - -jest-jasmine2@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz#a037b0034ef49a9f3d71c4375a796f3b230d1ac4" - integrity sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - throat "^6.0.1" - -jest-leak-detector@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8" - integrity sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ== - dependencies: - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-matcher-utils@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== - dependencies: - chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-message-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" - integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g== - dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^27.5.1" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - -jest-mock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" - integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - -jest-pnp-resolver@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" - integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== - -jest-regex-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== -jest-resolve-dependencies@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz#d811ecc8305e731cc86dd79741ee98fed06f1da8" - integrity sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg== - dependencies: - "@jest/types" "^27.5.1" - jest-regex-util "^27.5.1" - jest-snapshot "^27.5.1" +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== -jest-resolve@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.5.1.tgz#a2f1c5a0796ec18fe9eb1536ac3814c23617b384" - integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-pnp-resolver "^1.2.2" - jest-util "^27.5.1" - jest-validate "^27.5.1" - resolve "^1.20.0" - resolve.exports "^1.1.0" - slash "^3.0.0" +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== -jest-runner@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.5.1.tgz#071b27c1fa30d90540805c5645a0ec167c7b62e5" - integrity sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.8.1" - graceful-fs "^4.2.9" - jest-docblock "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-haste-map "^27.5.1" - jest-leak-detector "^27.5.1" - jest-message-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runtime "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - source-map-support "^0.5.6" - throat "^6.0.1" - -jest-runtime@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.5.1.tgz#4896003d7a334f7e8e4a53ba93fb9bcd3db0a1af" - integrity sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/globals" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - cjs-module-lexer "^1.0.0" - collect-v8-coverage "^1.0.0" - execa "^5.0.0" - glob "^7.1.3" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - strip-bom "^4.0.0" +isbinaryfile@^4.0.8: + version "4.0.10" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" + integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== -jest-serializer@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" +isbinaryfile@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-5.0.2.tgz#fe6e4dfe2e34e947ffa240c113444876ba393ae0" + integrity sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg== -jest-snapshot@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.5.1.tgz#b668d50d23d38054a51b42c4039cab59ae6eb6a1" - integrity sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA== - dependencies: - "@babel/core" "^7.7.2" - "@babel/generator" "^7.7.2" - "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" - "@babel/types" "^7.0.0" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.1.5" - babel-preset-current-node-syntax "^1.0.0" - chalk "^4.0.0" - expect "^27.5.1" - graceful-fs "^4.2.9" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - jest-haste-map "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - natural-compare "^1.4.0" - pretty-format "^27.5.1" - semver "^7.3.2" +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -jest-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== -jest-validate@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.5.1.tgz#9197d54dc0bdb52260b8db40b46ae668e04df067" - integrity sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ== +isurl@^1.0.0-alpha5: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" + integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w== dependencies: - "@jest/types" "^27.5.1" - camelcase "^6.2.0" - chalk "^4.0.0" - jest-get-type "^27.5.1" - leven "^3.1.0" - pretty-format "^27.5.1" + has-to-string-tag-x "^1.2.0" + is-object "^1.0.1" -jest-watcher@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-27.5.1.tgz#71bd85fb9bde3a2c2ec4dc353437971c43c642a2" - integrity sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw== +iterator.prototype@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" + integrity sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w== dependencies: - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^27.5.1" - string-length "^4.0.1" + define-properties "^1.2.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + reflect.getprototypeof "^1.0.4" + set-function-name "^2.0.1" -jest-worker@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== +jackspeak@^3.1.2: + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" -jest@27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" - integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== +jake@^10.8.5: + version "10.9.2" + resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f" + integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA== dependencies: - "@jest/core" "^27.5.1" - import-local "^3.0.2" - jest-cli "^27.5.1" + async "^3.2.3" + chalk "^4.0.2" + filelist "^1.0.4" + minimatch "^3.1.2" "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.1: - version "3.15.2" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.15.2.tgz#3f83823ac6be17f570f23b2ecdef3777ff5ea364" - integrity sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - js-yaml@^4.1.0: version "4.3.2" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.3.2.tgz#8e44fb14a2643c59726bb15787b5f1512cb3d3fb" @@ -7332,45 +5621,39 @@ jsbn@~0.1.0: resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== -jsdom@^16.6.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" +jsdom@^29.1.1: + version "29.1.1" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-29.1.1.tgz#5b9704906f3cd510c34aa941ae2f8f7f8179df01" + integrity sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q== + dependencies: + "@asamuzakjp/css-color" "^5.1.11" + "@asamuzakjp/dom-selector" "^7.1.1" + "@bramus/specificity" "^2.4.2" + "@csstools/css-syntax-patches-for-csstree" "^1.1.3" + "@exodus/bytes" "^1.15.0" + css-tree "^3.2.1" + data-urls "^7.0.0" + decimal.js "^10.6.0" + html-encoding-sniffer "^6.0.0" is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" + lru-cache "^11.3.5" + parse5 "^8.0.1" + saxes "^6.0.0" symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" + tough-cookie "^6.0.1" + undici "^7.25.0" + w3c-xmlserializer "^5.0.0" + webidl-conversions "^8.0.1" + whatwg-mimetype "^5.0.0" + whatwg-url "^16.0.1" + xml-name-validator "^5.0.0" jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -jsesc@^3.0.2, jsesc@~3.1.0: +jsesc@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== @@ -7515,11 +5798,6 @@ klaw-sync@^6.0.0: dependencies: graceful-fs "^4.1.11" -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - language-subtag-registry@^0.3.20: version "0.3.23" resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz#23529e04d9e3b74679d70142df3fd2eb6ec572e7" @@ -7537,11 +5815,6 @@ lazy-val@^1.0.4, lazy-val@^1.0.5: resolved "https://registry.yarnpkg.com/lazy-val/-/lazy-val-1.0.5.tgz#6cf3b9f5bc31cee7ee3e369c0832b7583dcd923d" integrity sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q== -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -7661,13 +5934,6 @@ locate-path@^3.0.0: p-locate "^3.0.0" path-exists "^3.0.0" -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - locate-path@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" @@ -7700,7 +5966,7 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash@^4.17.15, lodash@^4.17.21, lodash@^4.18.1, lodash@^4.7.0: +lodash@^4.17.15, lodash@^4.17.21, lodash@^4.18.1: version "4.18.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.18.1.tgz#ff2b66c1f6326d59513de2407bf881439812771c" integrity sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q== @@ -7727,7 +5993,7 @@ lru-cache@^10.2.0: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== -lru-cache@^11.0.0: +lru-cache@^11.0.0, lru-cache@^11.3.5: version "11.5.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.5.3.tgz#a7767b4034e35269562d2b9da2b185b5df70c421" integrity sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg== @@ -7746,7 +6012,7 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -magic-string@^1.4.2, "magic-string@~0.30.8 || ^1.0.0": +magic-string@^1.4.2, magic-string@^1.4.5, "magic-string@~0.30.8 || ^1.0.0": version "1.4.5" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-1.4.5.tgz#201c852d51eb0664d6f66cf7ab93b20b416e48d9" integrity sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w== @@ -7768,20 +6034,6 @@ make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" -make-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" - integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== - dependencies: - semver "^7.5.3" - -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== - dependencies: - tmpl "1.0.5" - map-cache@^0.2.0: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" @@ -7792,16 +6044,16 @@ math-intrinsics@^1.1.0: resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== +mdn-data@2.27.1: + version "2.27.1" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.27.1.tgz#e37b9c50880b75366c4d40ac63d9bbcacdb61f0e" + integrity sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ== + memorystream@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw== -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" @@ -7973,11 +6225,6 @@ node-addon-api@^1.6.3: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-1.7.2.tgz#3df30b95720b53c24e59948b49532b662444f54d" integrity sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg== -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== - node-releases@^2.0.54: version "2.0.55" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.55.tgz#c52faedb68001dcfe77495b5ed1ac5827a1788fc" @@ -7993,11 +6240,6 @@ normalize-package-data@^2.3.2: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - normalize-url@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-2.0.1.tgz#835a9da1551fa26f70e92329069a23aa6574d7e6" @@ -8022,13 +6264,6 @@ npm-run-all@^4.1.5: shell-quote "^1.6.1" string.prototype.padend "^3.0.0" -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - nugget@^2.0.1: version "2.2.0" resolved "https://registry.yarnpkg.com/nugget/-/nugget-2.2.0.tgz#ad6feeeda912dfe839e35efe713bc1ce67f1f5b6" @@ -8047,11 +6282,6 @@ number-is-nan@^1.0.0: resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ== -nwsapi@^2.2.0: - version "2.2.12" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" - integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== - oauth-sign@~0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" @@ -8132,6 +6362,11 @@ object.values@^1.1.6, object.values@^1.2.0: define-properties "^1.2.1" es-object-atoms "^1.0.0" +obug@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/obug/-/obug-3.0.0.tgz#2ddfc17d1c1dd8c825eebd127099da307c919299" + integrity sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw== + once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -8215,7 +6450,7 @@ p-is-promise@^1.1.0: resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e" integrity sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg== -p-limit@^2.0.0, p-limit@^2.2.0: +p-limit@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== @@ -8236,13 +6471,6 @@ p-locate@^3.0.0: dependencies: p-limit "^2.0.0" -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - p-locate@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" @@ -8291,7 +6519,7 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" -parse-json@^5.0.0, parse-json@^5.2.0: +parse-json@^5.0.0: version "5.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== @@ -8301,10 +6529,12 @@ parse-json@^5.0.0, parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== +parse5@^8.0.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-8.1.1.tgz#d73eb52282024c921e9c5a19b870f53492e631b2" + integrity sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w== + dependencies: + entities "^9.0.0" patch-package@^8.0.1: version "8.0.1" @@ -8346,7 +6576,7 @@ path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== -path-key@^3.0.0, path-key@^3.1.0: +path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== @@ -8416,7 +6646,7 @@ picocolors@^1.1.1: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== -picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: +picomatch@^2.3.1: version "2.3.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601" integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== @@ -8458,18 +6688,6 @@ pinkie@^2.0.0: resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== -pirates@^4.0.4: - version "4.0.6" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" - integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - pkg-up@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" @@ -8537,15 +6755,6 @@ pretty-bytes@^4.0.2: resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" integrity sha512-yJAF+AjbHKlxQ8eezMd/34Mnj/YTQ3i6kLzvVsH4l/BfIFtp444n0wVbnsn66JimZ9uBofv815aRp1zCppxlWw== -pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== - dependencies: - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" - prismjs-bibtex@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/prismjs-bibtex/-/prismjs-bibtex-2.1.0.tgz#ed4184c4330f22ca3abd1e2fc5c671b9ab21bb3c" @@ -8584,14 +6793,6 @@ promise-retry@^2.0.1: err-code "^2.0.2" retry "^0.12.0" -prompts@^2.0.1: - version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - prop-types@^15.6.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" @@ -8611,7 +6812,7 @@ proxy-from-env@^1.1.0: resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== -psl@^1.1.28, psl@^1.1.33: +psl@^1.1.28: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== @@ -8624,7 +6825,7 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" -punycode@^2.1.0, punycode@^2.1.1: +punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== @@ -8643,11 +6844,6 @@ query-string@^5.0.1: object-assign "^4.1.0" strict-uri-encode "^1.0.0" -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - queue-microtask@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" @@ -8683,11 +6879,6 @@ react-is@^16.13.1, react-is@^16.7.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - react-is@^19.2.3: version "19.3.0" resolved "https://registry.yarnpkg.com/react-is/-/react-is-19.3.0.tgz#716028d67e9993d23a2d353c6d08a3c1ef2bbeb4" @@ -8777,13 +6968,6 @@ regenerate-unicode-properties@^10.1.0: dependencies: regenerate "^1.4.2" -regenerate-unicode-properties@^10.2.2: - version "10.2.2" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz#aa113812ba899b630658c7623466be71e1f86f66" - integrity sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g== - dependencies: - regenerate "^1.4.2" - regenerate@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" @@ -8818,30 +7002,6 @@ regexpu-core@^5.3.1: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.1.0" -regexpu-core@^6.3.1: - version "6.4.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.4.0.tgz#3580ce0c4faedef599eccb146612436b62a176e5" - integrity sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA== - dependencies: - regenerate "^1.4.2" - regenerate-unicode-properties "^10.2.2" - regjsgen "^0.8.0" - regjsparser "^0.13.0" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.2.1" - -regjsgen@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.8.0.tgz#df23ff26e0c5b300a6470cad160a9d090c3a37ab" - integrity sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q== - -regjsparser@^0.13.0: - version "0.13.2" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.13.2.tgz#f654734b5c588b22ba3e21693b30523417180808" - integrity sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ== - dependencies: - jsesc "~3.1.0" - regjsparser@^0.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" @@ -8885,34 +7045,12 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve.exports@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.1.tgz#05cfd5b3edf641571fd46fa608b610dda9ead999" - integrity sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ== - -resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.4: +resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.22.4: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -8921,16 +7059,6 @@ resolve@^1.10.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.2 path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.22.11: - version "1.22.12" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.12.tgz#f5b2a680897c69c238a13cd16b15671f8b73549f" - integrity sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA== - dependencies: - es-errors "^1.3.0" - is-core-module "^2.16.1" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - resolve@^2.0.0-next.5: version "2.0.0-next.5" resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" @@ -8957,7 +7085,7 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.0, rimraf@^3.0.2: +rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -9024,7 +7152,7 @@ safe-regex-test@^1.0.3: es-errors "^1.3.0" is-regex "^1.1.4" -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -9041,10 +7169,10 @@ sax@^1.2.4: resolved "https://registry.yarnpkg.com/sax/-/sax-1.4.1.tgz#44cc8988377f126304d3b3fc1010c733b929ef0f" integrity sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg== -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== +saxes@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-6.0.0.tgz#fe5b4a4768df4f14a201b1ba6a65c1f3d9988cc5" + integrity sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA== dependencies: xmlchars "^2.2.0" @@ -9065,12 +7193,12 @@ seek-bzip@^1.0.5: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== -semver@^6.3.0, semver@^6.3.1: +semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3: +semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3: version "7.6.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== @@ -9163,11 +7291,6 @@ side-channel@^1.0.4, side-channel@^1.0.6: get-intrinsic "^1.2.4" object-inspect "^1.13.1" -signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - signal-exit@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" @@ -9187,11 +7310,6 @@ single-line-log@^1.1.2: dependencies: string-width "^1.0.1" -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - slash@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" @@ -9237,12 +7355,17 @@ sort-keys@^2.0.0: dependencies: is-plain-obj "^1.0.0" +source-map-js@^1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.4.tgz#b9303bf27115446da5e6ca3a4a2ee3e9f7b69633" + integrity sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA== + source-map-js@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.2.tgz#79fb88d97535a21cb27162cb05d211b67acea4ab" integrity sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw== -source-map-support@^0.5.19, source-map-support@^0.5.21, source-map-support@^0.5.6: +source-map-support@^0.5.19, source-map-support@^0.5.21: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -9255,16 +7378,11 @@ source-map@^0.5.7: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: +source-map@^0.6.0: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.3: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - spdx-correct@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" @@ -9296,11 +7414,6 @@ speedometer@~0.1.2: resolved "https://registry.yarnpkg.com/speedometer/-/speedometer-0.1.4.tgz#9876dbd2a169d3115402d48e6ea6329c8816a50d" integrity sha512-phdEoDlA6EUIVtzwq1UiNMXDUogczp204aYF/yfOhjNePWFfIpBJ1k5wLMuXQhEOOMjuTJEcc4vdZa+vuP+n/Q== -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - sshpk@^1.7.0: version "1.18.0" resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.18.0.tgz#1663e55cddf4d688b86a46b77f0d5fe363aba028" @@ -9316,18 +7429,16 @@ sshpk@^1.7.0: safer-buffer "^2.0.2" tweetnacl "~0.14.0" -stack-utils@^2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" - integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== - dependencies: - escape-string-regexp "^2.0.0" - stat-mode@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/stat-mode/-/stat-mode-1.0.0.tgz#68b55cb61ea639ff57136f36b216a291800d1465" integrity sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg== +std-env@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/std-env/-/std-env-4.3.0.tgz#4e7231b61fd83219aa7f76f71fa8818b07e41321" + integrity sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag== + stop-iteration-iterator@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz#6a60be0b4ee757d1ed5254858ec66b10c49285e4" @@ -9340,14 +7451,6 @@ strict-uri-encode@^1.0.0: resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ== -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - string-natural-compare@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" @@ -9506,11 +7609,6 @@ strip-bom@^3.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - strip-dirs@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" @@ -9518,11 +7616,6 @@ strip-dirs@^2.0.0: dependencies: is-natural-number "^4.0.1" -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" @@ -9566,28 +7659,13 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -supports-color@^7.0.0, supports-color@^7.1.0: +supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" -supports-color@^8.0.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -9631,33 +7709,11 @@ temp-file@^3.4.0: async-exit-hook "^2.0.1" fs-extra "^10.0.0" -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -throat@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.2.tgz#51a3fbb5e11ae72e2cf74861ed5c8020f89f29fe" - integrity sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ== - throttleit@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-0.0.2.tgz#cfedf88e60c00dd9697b61fdd2a8343a9b680eaf" @@ -9691,6 +7747,16 @@ tiny-typed-emitter@^2.1.0: resolved "https://registry.yarnpkg.com/tiny-typed-emitter/-/tiny-typed-emitter-2.1.0.tgz#b3b027fdd389ff81a152c8e847ee2f5be9fad7b5" integrity sha512-qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA== +tinybench@^6.2.3: + version "6.2.4" + resolved "https://registry.yarnpkg.com/tinybench/-/tinybench-6.2.4.tgz#56d00d2a3908d739b56f6c2fc647b87eb8adbadb" + integrity sha512-SQ52jEncXxbMCzJuY2A/jGIbbAu6NYsBWW7grz2pNE+EnzQdoGaoBfpk4qC/opE7qiUcGmGgaGIz5EoHdS1O9w== + +tinyexec@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-1.3.1.tgz#16a2e3c6e23fafce72640e678e651db36145b9c6" + integrity sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA== + tinyglobby@^0.2.15, tinyglobby@^0.2.17: version "0.2.17" resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.17.tgz#562a9a6c9eb2b3b123d39719f9af5bb44fcd7631" @@ -9699,6 +7765,18 @@ tinyglobby@^0.2.15, tinyglobby@^0.2.17: fdir "^6.5.0" picomatch "^4.0.4" +tldts-core@^7.5.5: + version "7.5.5" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.5.5.tgz#9d4645d34b58699744122012c252abcff3645dc6" + integrity sha512-rEJz/8cJFY/bdF354gl14yxavbrIbvM+FcbkYVQ6CSCMQTJdUFUIm39TTWSiGPvcpQh7/F6qHrD3SkwwdgtDCw== + +tldts@^7.0.5: + version "7.5.5" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.5.5.tgz#12c63610ca3ee6d7a60b72667c1b7c570aef367c" + integrity sha512-Hy6IImaWALzJOgCIss4gIFi4G0M9lqk95pFKCUVxQPZw+biZ1Pv6f28JpYgahpJB+BufA0HYsIU/aP/WIx3KRg== + dependencies: + tldts-core "^7.5.5" + tmp-promise@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/tmp-promise/-/tmp-promise-3.0.3.tgz#60a1a1cc98c988674fcbfd23b6e3367bdeac4ce7" @@ -9716,11 +7794,6 @@ tmp@^0.2.4: resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.7.tgz#26f4db11d1601ce8012dcb8a798ece1c06a99059" integrity sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw== -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - to-buffer@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" @@ -9743,15 +7816,12 @@ toposort@^2.0.2: resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330" integrity sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg== -tough-cookie@^4.0.0: - version "4.1.4" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36" - integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag== +tough-cookie@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-6.1.0.tgz#eafa6e331d2b948cdd73d75ee1190cb5a8f0df0d" + integrity sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w== dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" + tldts "^7.0.5" tough-cookie@~2.5.0: version "2.5.0" @@ -9761,12 +7831,12 @@ tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== +tr46@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-6.0.0.tgz#f5a1ae546a0adb32a277a2278d0d17fa2f9093e6" + integrity sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw== dependencies: - punycode "^2.1.1" + punycode "^2.3.1" trim-repeated@^1.0.0: version "1.0.0" @@ -9833,21 +7903,11 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - type-fest@^0.20.2: version "0.20.2" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - type-fest@^2.17.0, type-fest@^2.19.0: version "2.19.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b" @@ -9897,13 +7957,6 @@ typed-array-length@^1.0.6: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - typescript@^5.3.3: version "5.6.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" @@ -9957,6 +8010,11 @@ undici@^7.24.4: resolved "https://registry.yarnpkg.com/undici/-/undici-7.30.1.tgz#360b3de104b94abc52729aa1a4a07e027aa71f73" integrity sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg== +undici@^7.25.0: + version "7.30.2" + resolved "https://registry.yarnpkg.com/undici/-/undici-7.30.2.tgz#26c6acb0ffe838f823511f8cb79a8d530652135e" + integrity sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA== + unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz#cb3173fe47ca743e228216e4a3ddc4c84d628cc2" @@ -9975,11 +8033,6 @@ unicode-match-property-value-ecmascript@^2.1.0: resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz#a0401aee72714598f739b68b104e4fe3a0cb3c71" integrity sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg== -unicode-match-property-value-ecmascript@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz#65a7adfad8574c219890e219285ce4c64ed67eaa" - integrity sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg== - unicode-property-aliases-ecmascript@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" @@ -9990,11 +8043,6 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - universalify@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" @@ -10022,14 +8070,6 @@ url-parse-lax@^3.0.0: dependencies: prepend-http "^2.0.0" -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - url-to-options@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" @@ -10057,15 +8097,6 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -v8-to-istanbul@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" - integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -10105,57 +8136,50 @@ vite@^8.3.7: optionalDependencies: fsevents "~2.3.3" -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" +vitest@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/vitest/-/vitest-5.1.1.tgz#6e823eba09e832ccdf85c00b9702e6eef9dab370" + integrity sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g== + dependencies: + "@types/chai" "^5.2.2" + "@vitest/mocker" "5.1.1" + chai "^6.3.0" + es-module-lexer "^2.3.2" + expect-type "^1.4.0" + magic-string "^1.4.5" + obug "^3.0.0" + picomatch "^4.0.7" + std-env "^4.3.0" + tinybench "^6.2.3" + tinyexec "^1.3.1" + tinyglobby "^0.2.17" + why-is-node-running "3.2.1" -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== +w3c-xmlserializer@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz#f925ba26855158594d907313cedd1476c5967f6c" + integrity sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA== dependencies: - xml-name-validator "^3.0.0" + xml-name-validator "^5.0.0" -walker@^1.0.7: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== - dependencies: - makeerror "1.0.12" +webidl-conversions@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-8.0.1.tgz#0657e571fe6f06fcb15ca50ed1fdbcb495cd1686" + integrity sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ== -webidl-conversions@^5.0.0: +whatwg-mimetype@^5.0.0: version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz#d8232895dbd527ceaee74efd4162008fb8a8cf48" + integrity sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw== -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== +whatwg-url@^16.0.0, whatwg-url@^16.0.1: + version "16.0.1" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-16.0.1.tgz#047f7f4bd36ef76b7198c172d1b1cebc66f764dd" + integrity sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw== dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" + "@exodus/bytes" "^1.11.0" + tr46 "^6.0.0" + webidl-conversions "^8.0.1" which-boxed-primitive@^1.0.2: version "1.0.2" @@ -10221,6 +8245,11 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" +why-is-node-running@3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/why-is-node-running/-/why-is-node-running-3.2.1.tgz#f66f0d61f861e4d3965a7ad63645a953f550830c" + integrity sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ== + word-wrap@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" @@ -10258,25 +8287,10 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^7.4.6: - version "7.5.14" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.14.tgz#b98527f7f986756dc9507b293e3be8ac2309c356" - integrity sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== +xml-name-validator@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-5.0.0.tgz#82be9b957f7afdacf961e5980f1bf227c0bf7673" + integrity sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg== xmlbuilder@>=11.0.1, xmlbuilder@^15.1.1: version "15.1.1" @@ -10325,29 +8339,11 @@ yaml@^2.2.2: resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.9.1.tgz#c16233fb31944e705cfefaff38795587f57588ce" integrity sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw== -yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - yargs-parser@^21.1.1: version "21.1.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - yargs@^17.6.2: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" From 155dcaa82aa28192f1f856de8fba91ea6785d8de Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:31:59 +0100 Subject: [PATCH 02/23] Rename the test support files to TypeScript Pure move of the five files in src/test; the Vitest config and the pack test point at the new names. Typing follows in the next commit. Refs #297 Co-Authored-By: Claude Fable 5.2 --- src/pack.test.js | 2 +- src/test/{electron.js => electron.ts} | 0 src/test/{mobxActionWarning.js => mobxActionWarning.ts} | 0 src/test/{sentry.js => sentry.ts} | 0 src/test/{setup.js => setup.ts} | 0 src/test/{storeBridge.js => storeBridge.ts} | 0 vitest.config.mjs | 6 +++--- 7 files changed, 4 insertions(+), 4 deletions(-) rename src/test/{electron.js => electron.ts} (100%) rename src/test/{mobxActionWarning.js => mobxActionWarning.ts} (100%) rename src/test/{sentry.js => sentry.ts} (100%) rename src/test/{setup.js => setup.ts} (100%) rename src/test/{storeBridge.js => storeBridge.ts} (100%) diff --git a/src/pack.test.js b/src/pack.test.js index 71e6bc84..8d3925a6 100644 --- a/src/pack.test.js +++ b/src/pack.test.js @@ -64,7 +64,7 @@ it( 'packs the built shell and the production dependencies', async () => { expect( included( main, 'vitest.config.mjs' ) ).toBe( false ); expect( included( main, 'static/bin/Mac/raxml-ng' ) ).toBe( false ); expect( included( main, 'scripts/notarize.js' ) ).toBe( false ); - expect( included( main, 'src/test/setup.js' ) ).toBe( false ); + expect( included( main, 'src/test/setup.ts' ) ).toBe( false ); expect( included( main, 'test-results/results.json' ) ).toBe( false ); expect( included( main, 'playwright-report/index.html' ) ).toBe( false ); expect( included( main, path.join( buildResourcesDir, 'favicon.ico' ) ) ).toBe( false ); diff --git a/src/test/electron.js b/src/test/electron.ts similarity index 100% rename from src/test/electron.js rename to src/test/electron.ts diff --git a/src/test/mobxActionWarning.js b/src/test/mobxActionWarning.ts similarity index 100% rename from src/test/mobxActionWarning.js rename to src/test/mobxActionWarning.ts diff --git a/src/test/sentry.js b/src/test/sentry.ts similarity index 100% rename from src/test/sentry.js rename to src/test/sentry.ts diff --git a/src/test/setup.js b/src/test/setup.ts similarity index 100% rename from src/test/setup.js rename to src/test/setup.ts diff --git a/src/test/storeBridge.js b/src/test/storeBridge.ts similarity index 100% rename from src/test/storeBridge.js rename to src/test/storeBridge.ts diff --git a/vitest.config.mjs b/vitest.config.mjs index ef923da8..6235ee35 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -8,8 +8,8 @@ export default defineConfig( { alias: { // Same alias as the renderer in electron.vite.config.js. filenamify: here( 'node_modules/filenamify/filenamify.js' ), - electron: here( 'src/test/electron.js' ), - '@sentry/electron/renderer': here( 'src/test/sentry.js' ), + electron: here( 'src/test/electron.ts' ), + '@sentry/electron/renderer': here( 'src/test/sentry.ts' ), }, }, test: { @@ -18,6 +18,6 @@ export default defineConfig( { clearMocks: false, include: [ 'src/**/*.test.{js,jsx}', 'e2e/helpers/**/*.test.js' ], // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. - setupFiles: [ './src/test/setup.js', './src/test/mobxActionWarning.js' ], + setupFiles: [ './src/test/setup.ts', './src/test/mobxActionWarning.ts' ], }, } ); From 5b002da2db599f4c3a3689d0d6ea5ab53b76a7cb Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:32:00 +0100 Subject: [PATCH 03/23] Rename the shell-config and e2e helper tests to .ts (#299) Pure rename; Vitest's include now matches the new extension. Co-Authored-By: Claude Fable 5.2 --- .../{modeltestOutcome.test.js => modeltestOutcome.test.ts} | 0 e2e/helpers/{newick.test.js => newick.test.ts} | 0 .../{raxmlHpcOutcome.test.js => raxmlHpcOutcome.test.ts} | 0 e2e/helpers/{raxmlNgOutcome.test.js => raxmlNgOutcome.test.ts} | 0 src/{mobxActionWarning.test.js => mobxActionWarning.test.ts} | 0 src/{pack.test.js => pack.test.ts} | 0 src/{pageNodeImports.test.js => pageNodeImports.test.ts} | 0 src/{preload.test.js => preload.test.ts} | 0 src/{sourceMaps.test.js => sourceMaps.test.ts} | 0 src/{typecheckBaseline.test.js => typecheckBaseline.test.ts} | 0 vitest.config.mjs | 2 +- 11 files changed, 1 insertion(+), 1 deletion(-) rename e2e/helpers/{modeltestOutcome.test.js => modeltestOutcome.test.ts} (100%) rename e2e/helpers/{newick.test.js => newick.test.ts} (100%) rename e2e/helpers/{raxmlHpcOutcome.test.js => raxmlHpcOutcome.test.ts} (100%) rename e2e/helpers/{raxmlNgOutcome.test.js => raxmlNgOutcome.test.ts} (100%) rename src/{mobxActionWarning.test.js => mobxActionWarning.test.ts} (100%) rename src/{pack.test.js => pack.test.ts} (100%) rename src/{pageNodeImports.test.js => pageNodeImports.test.ts} (100%) rename src/{preload.test.js => preload.test.ts} (100%) rename src/{sourceMaps.test.js => sourceMaps.test.ts} (100%) rename src/{typecheckBaseline.test.js => typecheckBaseline.test.ts} (100%) diff --git a/e2e/helpers/modeltestOutcome.test.js b/e2e/helpers/modeltestOutcome.test.ts similarity index 100% rename from e2e/helpers/modeltestOutcome.test.js rename to e2e/helpers/modeltestOutcome.test.ts diff --git a/e2e/helpers/newick.test.js b/e2e/helpers/newick.test.ts similarity index 100% rename from e2e/helpers/newick.test.js rename to e2e/helpers/newick.test.ts diff --git a/e2e/helpers/raxmlHpcOutcome.test.js b/e2e/helpers/raxmlHpcOutcome.test.ts similarity index 100% rename from e2e/helpers/raxmlHpcOutcome.test.js rename to e2e/helpers/raxmlHpcOutcome.test.ts diff --git a/e2e/helpers/raxmlNgOutcome.test.js b/e2e/helpers/raxmlNgOutcome.test.ts similarity index 100% rename from e2e/helpers/raxmlNgOutcome.test.js rename to e2e/helpers/raxmlNgOutcome.test.ts diff --git a/src/mobxActionWarning.test.js b/src/mobxActionWarning.test.ts similarity index 100% rename from src/mobxActionWarning.test.js rename to src/mobxActionWarning.test.ts diff --git a/src/pack.test.js b/src/pack.test.ts similarity index 100% rename from src/pack.test.js rename to src/pack.test.ts diff --git a/src/pageNodeImports.test.js b/src/pageNodeImports.test.ts similarity index 100% rename from src/pageNodeImports.test.js rename to src/pageNodeImports.test.ts diff --git a/src/preload.test.js b/src/preload.test.ts similarity index 100% rename from src/preload.test.js rename to src/preload.test.ts diff --git a/src/sourceMaps.test.js b/src/sourceMaps.test.ts similarity index 100% rename from src/sourceMaps.test.js rename to src/sourceMaps.test.ts diff --git a/src/typecheckBaseline.test.js b/src/typecheckBaseline.test.ts similarity index 100% rename from src/typecheckBaseline.test.js rename to src/typecheckBaseline.test.ts diff --git a/vitest.config.mjs b/vitest.config.mjs index ef923da8..aaf0e66d 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -16,7 +16,7 @@ export default defineConfig( { environment: 'jsdom', globals: false, clearMocks: false, - include: [ 'src/**/*.test.{js,jsx}', 'e2e/helpers/**/*.test.js' ], + include: [ 'src/**/*.test.{js,jsx,ts}', 'e2e/helpers/**/*.test.ts' ], // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. setupFiles: [ './src/test/setup.js', './src/test/mobxActionWarning.js' ], }, From 92b82f46c4966e29bd22e95efc905f1ac37b8d0c Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:32:24 +0100 Subject: [PATCH 04/23] Rename the main-process tests to .ts (#298) Pure move. Vitest's include gains ts and tsx so the renamed files still run. Co-Authored-By: Claude Fable 5.2 --- src/main/{cancelRun.test.js => cancelRun.test.ts} | 0 src/main/{checkOutput.test.js => checkOutput.test.ts} | 0 src/main/{debugInfo.test.js => debugInfo.test.ts} | 0 src/main/{getActiveState.test.js => getActiveState.test.ts} | 0 ...eWindowPreferences.test.js => pageWindowPreferences.test.ts} | 0 src/main/{parseAlignment.test.js => parseAlignment.test.ts} | 0 src/main/{selectAlignment.test.js => selectAlignment.test.ts} | 0 src/main/{selectAstralFile.test.js => selectAstralFile.test.ts} | 0 src/main/{selectOutputDir.test.js => selectOutputDir.test.ts} | 0 ...{selectPartitionFile.test.js => selectPartitionFile.test.ts} | 0 src/main/{selectTree.test.js => selectTree.test.ts} | 0 src/main/{updates.test.js => updates.test.ts} | 0 vitest.config.mjs | 2 +- 13 files changed, 1 insertion(+), 1 deletion(-) rename src/main/{cancelRun.test.js => cancelRun.test.ts} (100%) rename src/main/{checkOutput.test.js => checkOutput.test.ts} (100%) rename src/main/{debugInfo.test.js => debugInfo.test.ts} (100%) rename src/main/{getActiveState.test.js => getActiveState.test.ts} (100%) rename src/main/{pageWindowPreferences.test.js => pageWindowPreferences.test.ts} (100%) rename src/main/{parseAlignment.test.js => parseAlignment.test.ts} (100%) rename src/main/{selectAlignment.test.js => selectAlignment.test.ts} (100%) rename src/main/{selectAstralFile.test.js => selectAstralFile.test.ts} (100%) rename src/main/{selectOutputDir.test.js => selectOutputDir.test.ts} (100%) rename src/main/{selectPartitionFile.test.js => selectPartitionFile.test.ts} (100%) rename src/main/{selectTree.test.js => selectTree.test.ts} (100%) rename src/main/{updates.test.js => updates.test.ts} (100%) diff --git a/src/main/cancelRun.test.js b/src/main/cancelRun.test.ts similarity index 100% rename from src/main/cancelRun.test.js rename to src/main/cancelRun.test.ts diff --git a/src/main/checkOutput.test.js b/src/main/checkOutput.test.ts similarity index 100% rename from src/main/checkOutput.test.js rename to src/main/checkOutput.test.ts diff --git a/src/main/debugInfo.test.js b/src/main/debugInfo.test.ts similarity index 100% rename from src/main/debugInfo.test.js rename to src/main/debugInfo.test.ts diff --git a/src/main/getActiveState.test.js b/src/main/getActiveState.test.ts similarity index 100% rename from src/main/getActiveState.test.js rename to src/main/getActiveState.test.ts diff --git a/src/main/pageWindowPreferences.test.js b/src/main/pageWindowPreferences.test.ts similarity index 100% rename from src/main/pageWindowPreferences.test.js rename to src/main/pageWindowPreferences.test.ts diff --git a/src/main/parseAlignment.test.js b/src/main/parseAlignment.test.ts similarity index 100% rename from src/main/parseAlignment.test.js rename to src/main/parseAlignment.test.ts diff --git a/src/main/selectAlignment.test.js b/src/main/selectAlignment.test.ts similarity index 100% rename from src/main/selectAlignment.test.js rename to src/main/selectAlignment.test.ts diff --git a/src/main/selectAstralFile.test.js b/src/main/selectAstralFile.test.ts similarity index 100% rename from src/main/selectAstralFile.test.js rename to src/main/selectAstralFile.test.ts diff --git a/src/main/selectOutputDir.test.js b/src/main/selectOutputDir.test.ts similarity index 100% rename from src/main/selectOutputDir.test.js rename to src/main/selectOutputDir.test.ts diff --git a/src/main/selectPartitionFile.test.js b/src/main/selectPartitionFile.test.ts similarity index 100% rename from src/main/selectPartitionFile.test.js rename to src/main/selectPartitionFile.test.ts diff --git a/src/main/selectTree.test.js b/src/main/selectTree.test.ts similarity index 100% rename from src/main/selectTree.test.js rename to src/main/selectTree.test.ts diff --git a/src/main/updates.test.js b/src/main/updates.test.ts similarity index 100% rename from src/main/updates.test.js rename to src/main/updates.test.ts diff --git a/vitest.config.mjs b/vitest.config.mjs index ef923da8..082b6ea0 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -16,7 +16,7 @@ export default defineConfig( { environment: 'jsdom', globals: false, clearMocks: false, - include: [ 'src/**/*.test.{js,jsx}', 'e2e/helpers/**/*.test.js' ], + include: [ 'src/**/*.test.{js,jsx,ts,tsx}', 'e2e/helpers/**/*.test.js' ], // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. setupFiles: [ './src/test/setup.js', './src/test/mobxActionWarning.js' ], }, From 141aca031adbbc4b3abdb9591fb6dbd34b8ed66f Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:34:09 +0100 Subject: [PATCH 05/23] Type the main-process tests (#298) Drops @ts-nocheck from the 12 tests. Partial stand-ins are cast where they are used; one mock takes a type argument because the test reads its calls. Co-Authored-By: Claude Fable 5.2 --- src/main/cancelRun.test.ts | 7 +++---- src/main/checkOutput.test.ts | 1 - src/main/debugInfo.test.ts | 1 - src/main/getActiveState.test.ts | 7 +++---- src/main/pageWindowPreferences.test.ts | 1 - src/main/parseAlignment.test.ts | 18 +++++++++-------- src/main/selectAlignment.test.ts | 1 - src/main/selectAstralFile.test.ts | 1 - src/main/selectOutputDir.test.ts | 1 - src/main/selectPartitionFile.test.ts | 1 - src/main/selectTree.test.ts | 1 - src/main/updates.test.ts | 28 +++++++++++++++----------- 12 files changed, 32 insertions(+), 36 deletions(-) diff --git a/src/main/cancelRun.test.ts b/src/main/cancelRun.test.ts index dd62decc..9e5d7033 100644 --- a/src/main/cancelRun.test.ts +++ b/src/main/cancelRun.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { spawn } from 'child_process'; import { once } from 'events'; @@ -33,7 +32,7 @@ it( 'cancelRun stops that run and sends no terminal event', async () => { it( 'a late exit from a cancelled run leaves the next run tracked', () => { const oldProc = { kill() { this.killed = true; } }; - const nextProc = { kill() { this.killed = true; } }; + const nextProc: { killed?: boolean; kill(): void } = { kill() { this.killed = true; } }; const token = beginRun( 8 ); trackRun( 8, oldProc ); cancelRun( 8 ); @@ -47,7 +46,7 @@ it( 'a late exit from a cancelled run leaves the next run tracked', () => { } ); it( 'a finished run still reports its result', () => { - expect( runResult( { cancelled: false }, 'exit', 0, null ) ).toBe( 0 ); + expect( runResult( { cancelled: false } as Parameters[0], 'exit', 0, null ) ).toBe( 0 ); expect( finishedRun( 0 ) ).toBe( true ); } ); @@ -77,6 +76,6 @@ it( 'the run handler returns before a terminal event once the run is no longer c } ); it( 'a failed run still reports the exit error', () => { - const result = runResult( { cancelled: false }, 'exit', 1, null ); + const result = runResult( { cancelled: false } as Parameters[0], 'exit', 1, null ); expect( result ).toEqual( new Error( 'Exited with code 1. Check console output for more information.' ) ); } ); diff --git a/src/main/checkOutput.test.ts b/src/main/checkOutput.test.ts index 73512cac..2c7fe28d 100644 --- a/src/main/checkOutput.test.ts +++ b/src/main/checkOutput.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import fs from 'fs'; import os from 'os'; diff --git a/src/main/debugInfo.test.ts b/src/main/debugInfo.test.ts index ba2ae62b..2dd19c7b 100644 --- a/src/main/debugInfo.test.ts +++ b/src/main/debugInfo.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { debugInfo } from './debugInfo'; diff --git a/src/main/getActiveState.test.ts b/src/main/getActiveState.test.ts index 4642e113..83bbe9c6 100644 --- a/src/main/getActiveState.test.ts +++ b/src/main/getActiveState.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; const { mockSend, mockOn, mockRemoveListener } = vi.hoisted( () => ( { @@ -9,8 +8,8 @@ const { mockSend, mockOn, mockRemoveListener } = vi.hoisted( () => ( { vi.mock( 'electron', () => ( { ipcMain: { - on: ( ...args ) => mockOn( ...args ), - removeListener: ( ...args ) => mockRemoveListener( ...args ), + on: ( ...args: unknown[] ) => mockOn( ...args ), + removeListener: ( ...args: unknown[] ) => mockRemoveListener( ...args ), }, } ) ); @@ -24,7 +23,7 @@ const { getActiveState } = await import( './getActiveState' ); const { STATE_REPORT, STATE_REPORT_RESULT } = await import( '../constants/ipc' ); it( 'asks the active window and resolves the matching report', async () => { - let onResult; + let onResult: ( event: unknown, payload: unknown ) => void; mockOn.mockImplementation( ( channel, listener ) => { expect( channel ).toBe( STATE_REPORT_RESULT ); onResult = listener; diff --git a/src/main/pageWindowPreferences.test.ts b/src/main/pageWindowPreferences.test.ts index a7c458c3..d010813b 100644 --- a/src/main/pageWindowPreferences.test.ts +++ b/src/main/pageWindowPreferences.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { pageWindowPreferences } from './pageWindowPreferences'; diff --git a/src/main/parseAlignment.test.ts b/src/main/parseAlignment.test.ts index 82681b13..99648194 100644 --- a/src/main/parseAlignment.test.ts +++ b/src/main/parseAlignment.test.ts @@ -1,8 +1,10 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { parseAlignment } from './parseAlignment'; +import type { Alignment } from './parseAlignment'; -function tools( parse, extra = {} ) { +type Tools = Parameters[2]; + +function tools( parse: Tools['parse'], extra: Partial = {} ): Tools { return { readFormat: async () => 'fasta', convert: async () => { @@ -27,7 +29,7 @@ it( 'parseAlignment resolves the alignment and no change when the file stays as let parsedPath; const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async ( filePath ) => { parsedPath = filePath; - return alignment; + return alignment as Alignment; } ) ); expect( parsedPath ).toBe( '/data/primates.fasta' ); @@ -45,7 +47,7 @@ it( 'parseAlignment reports the converted file when the format is not fasta or p convert: async () => '/data/primates.fas', parse: async ( filePath ) => { parsedPath = filePath; - return alignment; + return alignment as Alignment; }, write: async () => { throw new Error( 'write should not run' ); @@ -71,7 +73,7 @@ it( 'parseAlignment reports the written file when it renames a taxon', async () fileFormat: 'fasta', }; let written; - const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment, { + const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment as Alignment, { write: async ( filePath, writtenAlignment ) => { written = { filePath, taxon: writtenAlignment.sequences[0].taxon }; }, @@ -99,7 +101,7 @@ it( 'parseAlignment numbers a repeated taxon name', async () => { { taxon: 'Homo', code: 'CCCC' }, ], }; - const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment, { + const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment as Alignment, { write: async () => {}, } ) ); @@ -117,7 +119,7 @@ it( 'parseAlignment shortens a taxon name past 256 characters', async () => { const alignment = { sequences: [ { taxon, code: 'AAAA' } ], }; - const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment, { + const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment as Alignment, { write: async () => {}, } ) ); @@ -135,7 +137,7 @@ it( 'parseAlignment rejects when the file cannot be parsed', async () => { it( 'parseAlignment still parses when the format check fails', async () => { const alignment = { sequences: [ { taxon: 'Homo', code: 'ACGT' } ] }; - const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment, { + const parsed = await parseAlignment( 'align-1', '/data/primates.fasta', tools( async () => alignment as Alignment, { readFormat: async () => { throw new Error( 'readal missing' ); }, diff --git a/src/main/selectAlignment.test.ts b/src/main/selectAlignment.test.ts index 4f2f49b8..fd4c8d69 100644 --- a/src/main/selectAlignment.test.ts +++ b/src/main/selectAlignment.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { selectAlignment } from './selectAlignment'; diff --git a/src/main/selectAstralFile.test.ts b/src/main/selectAstralFile.test.ts index 3741dee0..bd0f3740 100644 --- a/src/main/selectAstralFile.test.ts +++ b/src/main/selectAstralFile.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { selectAstralFile } from './selectAstralFile'; diff --git a/src/main/selectOutputDir.test.ts b/src/main/selectOutputDir.test.ts index 0df0ba4a..4be46295 100644 --- a/src/main/selectOutputDir.test.ts +++ b/src/main/selectOutputDir.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectOutputDir } from './selectOutputDir'; diff --git a/src/main/selectPartitionFile.test.ts b/src/main/selectPartitionFile.test.ts index 6e6325a1..ac7cacae 100644 --- a/src/main/selectPartitionFile.test.ts +++ b/src/main/selectPartitionFile.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectPartitionFile } from './selectPartitionFile'; diff --git a/src/main/selectTree.test.ts b/src/main/selectTree.test.ts index c6bbbb9b..bd064296 100644 --- a/src/main/selectTree.test.ts +++ b/src/main/selectTree.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import * as ipc from '../constants/ipc'; import { selectTree } from './selectTree'; diff --git a/src/main/updates.test.ts b/src/main/updates.test.ts index ca0c685f..c646c05c 100644 --- a/src/main/updates.test.ts +++ b/src/main/updates.test.ts @@ -1,16 +1,17 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import fs from 'fs'; import path from 'path'; +import type { Dialog } from 'electron'; +import type { AppUpdater } from 'electron-updater'; import { checkForUpdates, listenForUpdates } from './updates'; function updater() { - const listeners = Object.create( null ); + const listeners: Record void> = Object.create( null ); return { - on( event, fn ) { + on( event: string, fn: ( payload?: unknown ) => void ) { listeners[event] = fn; }, - emit( event, payload ) { + emit( event: string, payload?: unknown ) { const fn = listeners[event]; if ( fn ) { fn( payload ); @@ -28,7 +29,7 @@ it( 'No on Found Updates leaves the current version', async () => { showMessageBox: vi.fn( () => choice ), showErrorBox: vi.fn(), }; - listenForUpdates( updates, dialog ); + listenForUpdates( updates as unknown as AppUpdater, dialog as unknown as Dialog ); updates.emit( 'update-available' ); await choice; expect( dialog.showMessageBox ).toHaveBeenCalledWith( { @@ -46,10 +47,10 @@ it( 'Yes downloads the update with no window, bar, or percent', async () => { const updates = updater(); const choice = Promise.resolve( { response: 0 } ); const dialog = { - showMessageBox: vi.fn( () => choice ), + showMessageBox: vi.fn<( options: unknown ) => Promise<{ response: number }>>( () => choice ), showErrorBox: vi.fn(), }; - listenForUpdates( updates, dialog ); + listenForUpdates( updates as unknown as AppUpdater, dialog as unknown as Dialog ); updates.emit( 'update-available' ); await choice; expect( updates.downloadUpdate ).toHaveBeenCalledWith(); @@ -71,7 +72,7 @@ it( 'a finished download quits to install', async () => { showMessageBox: vi.fn( () => Promise.resolve( { response: 0 } ) ), showErrorBox: vi.fn(), }; - listenForUpdates( updates, dialog ); + listenForUpdates( updates as unknown as AppUpdater, dialog as unknown as Dialog ); updates.emit( 'update-downloaded' ); await dialog.showMessageBox.mock.results[0].value; await new Promise( ( resolve ) => setImmediate( resolve ) ); @@ -88,7 +89,7 @@ it( 'a failed update uses the error dialog', () => { showMessageBox: vi.fn(), showErrorBox: vi.fn(), }; - listenForUpdates( updates, dialog ); + listenForUpdates( updates as unknown as AppUpdater, dialog as unknown as Dialog ); const failure = new Error( 'network down' ); updates.emit( 'error', failure ); expect( dialog.showErrorBox ).toHaveBeenCalledWith( 'Error: ', expect.stringContaining( 'network down' ) ); @@ -108,8 +109,11 @@ it( 'the shell opens no update progress window', () => { } ); it( 'an offline update check rejects nothing (the error event already reports it)', async () => { - const updates = { ...updater(), autoDownload: true }; - updates.checkForUpdates = vi.fn( () => Promise.reject( new Error( 'net::ERR_INTERNET_DISCONNECTED' ) ) ); - await expect( checkForUpdates( updates ) ).resolves.toBeUndefined(); + const updates = { + ...updater(), + autoDownload: true, + checkForUpdates: vi.fn( () => Promise.reject( new Error( 'net::ERR_INTERNET_DISCONNECTED' ) ) ), + }; + await expect( checkForUpdates( updates as unknown as AppUpdater ) ).resolves.toBeUndefined(); expect( updates.autoDownload ).toBe( false ); } ); From 850637b5e6f9569267f1c70fda4e9e79b69808aa Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:33:58 +0100 Subject: [PATCH 06/23] Type the shell-config and e2e helper tests (#299) The typecheck now includes the e2e helper tests, and the baseline script reads any file header, so a diagnostic in one of them fails the second pass. Co-Authored-By: Claude Fable 5.2 --- e2e/helpers/modeltestOutcome.test.ts | 4 ++-- e2e/helpers/newick.test.ts | 4 ++-- e2e/helpers/raxmlHpcOutcome.test.ts | 2 +- e2e/helpers/raxmlNgOutcome.test.ts | 2 +- scripts/typecheck-baseline.js | 6 +++--- src/mobxActionWarning.test.ts | 1 - src/pack.test.ts | 16 +++++++++------- src/pageNodeImports.test.ts | 11 +++++------ src/preload.test.ts | 9 ++++----- src/sourceMaps.test.ts | 19 +++++++++++++------ src/typecheckBaseline.test.ts | 13 ++++++++----- tsconfig.json | 2 +- 12 files changed, 49 insertions(+), 40 deletions(-) diff --git a/e2e/helpers/modeltestOutcome.test.ts b/e2e/helpers/modeltestOutcome.test.ts index 5f6a1e5d..4557aee3 100644 --- a/e2e/helpers/modeltestOutcome.test.ts +++ b/e2e/helpers/modeltestOutcome.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -const { parseModelTestLog } = require('./modeltestOutcome'); -const { compareOutcome, formatReport } = require('./fixtures'); +import { parseModelTestLog } from './modeltestOutcome'; +import { compareOutcome, formatReport } from './fixtures'; const log = `-------------------------------------------------------------------------------- ModelTest-NG v0.1.7 diff --git a/e2e/helpers/newick.test.ts b/e2e/helpers/newick.test.ts index 5f444bf9..e64d4631 100644 --- a/e2e/helpers/newick.test.ts +++ b/e2e/helpers/newick.test.ts @@ -1,11 +1,11 @@ import { describe, expect, it } from 'vitest'; -const { +import { parseNewick, getTaxa, compareTopologies, compareBranchLengths, -} = require('./newick'); +} from './newick'; describe('newick helpers', () => { it('parses branch lengths and lists taxa', () => { diff --git a/e2e/helpers/raxmlHpcOutcome.test.ts b/e2e/helpers/raxmlHpcOutcome.test.ts index fd080e93..62677971 100644 --- a/e2e/helpers/raxmlHpcOutcome.test.ts +++ b/e2e/helpers/raxmlHpcOutcome.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -const { parseRaxmlHpcOutput } = require('./raxmlHpcOutcome'); +import { parseRaxmlHpcOutput } from './raxmlHpcOutcome'; const info = ` diff --git a/e2e/helpers/raxmlNgOutcome.test.ts b/e2e/helpers/raxmlNgOutcome.test.ts index 01f50a5b..716e40b0 100644 --- a/e2e/helpers/raxmlNgOutcome.test.ts +++ b/e2e/helpers/raxmlNgOutcome.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -const { parseRaxmlNgOutput } = require('./raxmlNgOutcome'); +import { parseRaxmlNgOutput } from './raxmlNgOutcome'; const log = `RAxML-NG v. 1.2.2 released on 30.04.2024 by The Exelixis Lab. diff --git a/scripts/typecheck-baseline.js b/scripts/typecheck-baseline.js index 8932aed8..11013c58 100644 --- a/scripts/typecheck-baseline.js +++ b/scripts/typecheck-baseline.js @@ -16,11 +16,11 @@ function fingerprint(line) { return line.replace(/\(\d+,\d+\): /, ': '); } -/** Pathless tsc continuations belong to the preceding src/ header. */ +/** Pathless tsc continuations belong to the preceding file header. */ function ownedFingerprints(lines) { let owner = ''; return lines.map((line) => { - const match = /^(src\/\S+?)\(/.exec(line); + const match = /^(\S+?)\(\d+,\d+\): /.exec(line); if (match) { owner = match[1]; return fingerprint(line); @@ -70,7 +70,7 @@ function renameLines(known, actual, from, to) { function typeScriptLines(lines) { let inTypeScript = false; return lines.filter((line) => { - const match = /^(src\/\S+?)\(/.exec(line); + const match = /^(\S+?)\(\d+,\d+\): /.exec(line); if (match) { inTypeScript = /\.tsx?$/.test(match[1]); } diff --git a/src/mobxActionWarning.test.ts b/src/mobxActionWarning.test.ts index a37b7e28..1931d5e8 100644 --- a/src/mobxActionWarning.test.ts +++ b/src/mobxActionWarning.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { describe, expect, test } from 'vitest'; import { observable, runInAction, autorun } from 'mobx'; diff --git a/src/pack.test.ts b/src/pack.test.ts index 71e6bc84..17e9ec5a 100644 --- a/src/pack.test.ts +++ b/src/pack.test.ts @@ -1,23 +1,25 @@ -// @ts-nocheck — electron-builder's pack matcher has no types. import { expect, it } from 'vitest'; import fs from 'fs'; import path from 'path'; -const { getConfig } = require( 'app-builder-lib/out/util/config' ); +import { getConfig } from 'app-builder-lib/out/util/config'; +import type { FileSet } from 'app-builder-lib'; +import { scripts } from '../package.json'; + +// electron-builder does not declare its pack matchers, so they load untyped. const { getMainFileMatchers, getNodeModuleFileMatcher } = require( 'app-builder-lib/out/fileMatcher' ); -const { scripts } = require( '../package.json' ); const root = path.join( __dirname, '..' ); const fileStat = { isDirectory: () => false }; -function included( filter, relativePath ) { +function included( filter: ( file: string, stat: typeof fileStat ) => boolean, relativePath: string ) { return filter( path.join( root, relativePath ), fileStat ); } async function packFilters() { const config = await getConfig( root, null, null ); const buildResourcesDir = config.directories.buildResources; - const macroExpander = ( pattern ) => pattern; + const macroExpander = ( pattern: string ) => pattern; const info = { isPrepackedAppAsar: false, config, @@ -48,7 +50,7 @@ it( 'packs the built shell and the production dependencies', async () => { const { config, buildResourcesDir, main, modules, } = await packFilters(); - const patterns = config.files.flatMap( ( set ) => set.filter ); + const patterns = ( config.files as FileSet[] ).flatMap( ( set ) => set.filter ); const icons = path.join( root, buildResourcesDir ); expect( patterns.every( ( pattern ) => pattern.startsWith( '!' ) ) ).toBe( true ); @@ -111,7 +113,7 @@ it( 'pack scripts build the shell, then run electron-builder', () => { 'dist-pack': 'electron-pack', 'dist-pack-win': 'electron-pack-win', }; - Object.keys( packScripts ).forEach( ( name ) => { + ( Object.keys( packScripts ) as ( keyof typeof packScripts )[] ).forEach( ( name ) => { expect( scripts[ name ] ).toBe( `run-s build ${ packScripts[ name ] }` ); } ); diff --git a/src/pageNodeImports.test.ts b/src/pageNodeImports.test.ts index c4fe38cd..1de56d27 100644 --- a/src/pageNodeImports.test.ts +++ b/src/pageNodeImports.test.ts @@ -1,8 +1,7 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; -const fs = require( 'fs' ); -const path = require( 'path' ); +import fs from 'fs'; +import path from 'path'; const appRoot = path.join( __dirname, 'app' ); const forbidden = [ @@ -14,13 +13,13 @@ const forbidden = [ /from\s+['"]node:os['"]/, ]; -function walk( dir ) { - const out = []; +function walk( dir: string ): string[] { + const out: string[] = []; for ( const entry of fs.readdirSync( dir, { withFileTypes: true } ) ) { const full = path.join( dir, entry.name ); if ( entry.isDirectory() ) { out.push( ...walk( full ) ); - } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !/\.test\.jsx?$/.test( entry.name ) ) { + } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !/\.test\.[jt]sx?$/.test( entry.name ) ) { out.push( full ); } } diff --git a/src/preload.test.ts b/src/preload.test.ts index c07d0968..ce1521c4 100644 --- a/src/preload.test.ts +++ b/src/preload.test.ts @@ -1,10 +1,9 @@ -// @ts-nocheck — the test is not typed yet. import { beforeAll, expect, it } from 'vitest'; -const { spawnSync } = require( 'child_process' ); -const fs = require( 'fs' ); -const os = require( 'os' ); -const path = require( 'path' ); +import { spawnSync } from 'child_process'; +import fs from 'fs'; +import os from 'os'; +import path from 'path'; const root = path.join( __dirname, '..' ); const configFile = path.join( root, 'electron.vite.config.js' ); diff --git a/src/sourceMaps.test.ts b/src/sourceMaps.test.ts index f906a6d1..05c1b456 100644 --- a/src/sourceMaps.test.ts +++ b/src/sourceMaps.test.ts @@ -1,15 +1,22 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; -const { spawnSync } = require( 'child_process' ); -const path = require( 'path' ); -const { version } = require( '../package.json' ); +import { spawnSync } from 'child_process'; +import path from 'path'; +import { version } from '../package.json'; const root = path.join( __dirname, '..' ); const configFile = path.join( root, 'electron.vite.config.js' ); const release = `raxmlGUI@${version}`; -function shellBuild( command, env ) { +interface ShellPlugins { + main: string[]; + preload: string[]; + renderer: string[]; + mainRelease: string | null; + rendererRelease: string | null; +} + +function shellBuild( command: string, env: Record ): ShellPlugins { const childEnv = { ...process.env }; [ 'SENTRY_ORG', 'SENTRY_AUTH_TOKEN', 'SENTRY_PROJECT', 'SENTRY_RELEASE', 'SENTRY_URL' ].forEach( ( key ) => { delete childEnv[ key ]; @@ -47,7 +54,7 @@ function shellBuild( command, env ) { const credentials = { SENTRY_ORG: 'antonelli-lab', SENTRY_AUTH_TOKEN: 'token' }; -function expectNoSourceMapPlugin( plugins ) { +function expectNoSourceMapPlugin( plugins: ShellPlugins ) { expect( plugins.main ).not.toContain( 'sentry-vite-plugin' ); expect( plugins.renderer ).not.toContain( 'sentry-vite-plugin' ); expect( plugins.preload ).not.toContain( 'sentry-vite-plugin' ); diff --git a/src/typecheckBaseline.test.ts b/src/typecheckBaseline.test.ts index 933f16be..1dc31886 100644 --- a/src/typecheckBaseline.test.ts +++ b/src/typecheckBaseline.test.ts @@ -1,7 +1,9 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; +import { spawnSync } from 'child_process'; +import fs from 'fs'; +import path from 'path'; -const { freshLines, unusedLines, typeScriptLines } = require( '../scripts/typecheck-baseline' ); +import { freshLines, unusedLines, typeScriptLines } from '../scripts/typecheck-baseline'; it( 'reports a diagnostic line that the baseline does not list', () => { const known = ['src/a.js(1,1): error TS1: known']; @@ -48,10 +50,14 @@ it( 'keeps the noImplicitAny diagnostics of .ts and .tsx files and their continu 'src/b.ts(2,1): error TS7016: Could not find a declaration file.', ' ts continuation', 'src/c.tsx(3,1): error TS7006: Parameter implicitly has an any type.', + 'e2e/helpers/d.js(4,1): error TS7006: Parameter implicitly has an any type.', + 'e2e/helpers/d.test.ts(5,1): error TS7006: Parameter implicitly has an any type.', + 'scripts/e.js(6,1): error TS7006: Parameter implicitly has an any type.', ] ) ).toEqual( [ 'src/b.ts(2,1): error TS7016: Could not find a declaration file.', ' ts continuation', 'src/c.tsx(3,1): error TS7006: Parameter implicitly has an any type.', + 'e2e/helpers/d.test.ts(5,1): error TS7006: Parameter implicitly has an any type.', ] ); expect( typeScriptLines( ['src/a.js(1,1): error TS7006: x'] ) ).toEqual( [] ); } ); @@ -62,9 +68,6 @@ it( 'passes on an empty baseline when tsc reports nothing', () => { } ); it( 'exits non-zero when a .ts file has an implicit any, even if the first pass is clean', () => { - const fs = require( 'fs' ); - const path = require( 'path' ); - const { spawnSync } = require( 'child_process' ); const file = path.join( __dirname, 'implicitAnyProbe.ts' ); fs.writeFileSync( file, 'export function probe( x ) { return x; }\n' ); try { diff --git a/tsconfig.json b/tsconfig.json index 0f13d91b..b0fabd4e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,5 +14,5 @@ "strict": false, "skipLibCheck": true }, - "include": ["src"] + "include": ["src", "e2e/helpers/**/*.test.ts"] } From e221285047f79910f029adef55c3bda26aab8e1d Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 18:37:51 +0100 Subject: [PATCH 07/23] Type the test support files and add installBridge installBridge takes a Partial, merges it onto the one default bridge object the setup installed, and holds the only cast to the full type. It copies property descriptors, so a host getter is not read. stubBridge takes the same type and calls it. The default stubs now match the bridge types: cancelRun and cancelModelSelection resolve a promise, and checkOutput resolves the full result shape with an empty outputNameUnused, so the page still falls back to its placeholder name. The accessor keeps its setter for the tests that still assign a bridge directly. Vitest also picks up .test.ts and .test.tsx files. Refs #297 Co-Authored-By: Claude Fable 5.2 --- src/test/electron.ts | 14 +++++------ src/test/installBridge.test.ts | 38 ++++++++++++++++++++++++++++++ src/test/mobxActionWarning.ts | 10 ++++---- src/test/sentry.ts | 4 +--- src/test/setup.ts | 43 ++++++++++++++++++++++------------ src/test/storeBridge.ts | 35 ++++++++++++++++++--------- vitest.config.mjs | 2 +- 7 files changed, 103 insertions(+), 43 deletions(-) create mode 100644 src/test/installBridge.test.ts diff --git a/src/test/electron.ts b/src/test/electron.ts index 5afa79e6..f1657bc6 100644 --- a/src/test/electron.ts +++ b/src/test/electron.ts @@ -1,16 +1,14 @@ -const os = require( 'os' ); +import os from 'node:os'; -const ipcRenderer = { - on() {}, - removeListener() {}, - send() {}, +export const ipcRenderer = { + on(): void {}, + removeListener(): void {}, + send(): void {}, // electron-store reads this while the page store is imported. - sendSync() { + sendSync(): { defaultCwd: string; appVersion: string } { return { defaultCwd: os.tmpdir(), appVersion: '0.0.0-test', }; }, }; - -module.exports = { ipcRenderer }; diff --git a/src/test/installBridge.test.ts b/src/test/installBridge.test.ts new file mode 100644 index 00000000..e1ba449d --- /dev/null +++ b/src/test/installBridge.test.ts @@ -0,0 +1,38 @@ +import { expect, test, vi } from 'vitest'; + +import { runEvents } from '../app/store/StoreBase'; + +import { installBridge } from './setup'; + +test( 'the page sees the supplied methods on the same default bridge object', () => { + const defaultBridge = window.rendererBridge; + const readFile = vi.fn( () => Promise.resolve( '>Homo\nAT' ) ); + + const installed = installBridge( { readFile } ); + + expect( installed ).toBe( defaultBridge ); + expect( window.rendererBridge ).toBe( defaultBridge ); + expect( window.rendererBridge.readFile ).toBe( readFile ); +} ); + +test( 'the defaults the setup stubs are still there', () => { + const { host, getVersion } = window.rendererBridge; + + installBridge( { openPath: () => Promise.resolve( '' ) } ); + + expect( window.rendererBridge.host ).toBe( host ); + expect( window.rendererBridge.getVersion ).toBe( getVersion ); + for ( const name of Object.values( runEvents ) ) { + expect( typeof window.rendererBridge[name] ).toBe( 'function' ); + } +} ); + +test( 'a supplied host getter is installed without being read', () => { + const original = Object.getOwnPropertyDescriptor( window.rendererBridge, 'host' ); + const read = vi.fn( () => original.value ); + + installBridge( Object.defineProperty( {}, 'host', { configurable: true, enumerable: true, get: read } ) ); + + expect( read ).not.toHaveBeenCalled(); + Object.defineProperty( window.rendererBridge, 'host', original ); +} ); diff --git a/src/test/mobxActionWarning.ts b/src/test/mobxActionWarning.ts index 0d1183d7..cd650ff6 100644 --- a/src/test/mobxActionWarning.ts +++ b/src/test/mobxActionWarning.ts @@ -1,17 +1,17 @@ -// @ts-nocheck — this test setup is not typed yet. // Fails a test when MobX warns that observable state was changed outside an action. import { afterEach, beforeEach, vi } from 'vitest'; +import type { MockInstance } from 'vitest'; -const collected = []; -let warn; +const collected: unknown[] = []; +let warn: MockInstance; // The warnings collected during the running test; the proof test clears them after asserting. -export const actionWarnings = () => collected; +export const actionWarnings = (): unknown[] => collected; beforeEach( () => { collected.length = 0; const original = console.warn; - warn = vi.spyOn( console, 'warn' ).mockImplementation( ( ...args ) => { + warn = vi.spyOn( console, 'warn' ).mockImplementation( ( ...args: unknown[] ) => { if ( /\[MobX\] Since strict-mode is enabled/.test( String( args[0] ) ) ) { collected.push( args[0] ); } else { diff --git a/src/test/sentry.ts b/src/test/sentry.ts index 6609cf9c..e39033a2 100644 --- a/src/test/sentry.ts +++ b/src/test/sentry.ts @@ -1,3 +1 @@ -module.exports = { - init() {}, -}; +export function init(): void {} diff --git a/src/test/setup.ts b/src/test/setup.ts index a99ffa62..cb1872b9 100644 --- a/src/test/setup.ts +++ b/src/test/setup.ts @@ -1,27 +1,29 @@ import os from 'node:os'; import { runEvents } from '../app/store/StoreBase'; +import type { HostInfo, RendererBridge } from '../common/rendererBridge'; + +type TestBridge = Partial; +type RunEventName = keyof typeof runEvents; // React 19 flushes a render inside act() when this flag is set. -global.IS_REACT_ACT_ENVIRONMENT = true; +( globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean } ).IS_REACT_ACT_ENVIRONMENT = true; // Run, an alignment, the run list, and the theme listen at construction. A test assignment keeps its object. -const runEventStubs = {}; -for ( const name of Object.values( runEvents ) ) { - runEventStubs[name] = () => () => {}; -} +const runEventNames = Object.values( runEvents ) as RunEventName[]; +const runEventStub = () => (): void => {}; -const host = { +const host: HostInfo = { windows: process.platform === 'win32', release: os.release(), arch: os.arch(), cpuModel: os.cpus()[0].model, }; -function withBridgeEvents( next ) { - for ( const name of Object.keys( runEventStubs ) ) { +function withBridgeEvents( next: TestBridge ): TestBridge { + for ( const name of runEventNames ) { if ( typeof next[name] !== 'function' ) { - next[name] = runEventStubs[name]; + next[name] = runEventStub; } } if ( !Object.prototype.hasOwnProperty.call( next, 'host' ) ) { @@ -30,21 +32,22 @@ function withBridgeEvents( next ) { // Run.dispose calls cancel, which calls cancelRun. // Alignment.dispose calls cancelModelTest while model selection is loading. if ( typeof next.cancelRun !== 'function' ) { - next.cancelRun = () => {}; + next.cancelRun = () => Promise.resolve(); } if ( typeof next.cancelModelSelection !== 'function' ) { - next.cancelModelSelection = () => {}; + next.cancelModelSelection = () => Promise.resolve(); } if ( typeof next.provideStateReport !== 'function' ) { next.provideStateReport = () => {}; } // The page store calls getVersion while it is constructed. if ( typeof next.getVersion !== 'function' ) { - next.getVersion = () => Promise.resolve(); + next.getVersion = () => Promise.resolve( undefined ); } // The output panel checks the output name; MobX 6 re-renders it inside the render test when this rejects. if ( typeof next.checkOutput !== 'function' ) { - next.checkOutput = () => Promise.resolve( { ok: true, resultFilenames: [] } ); + next.checkOutput = ( { outputDir, outputName } ) => + Promise.resolve( { outputDir, outputName, ok: true, notice: '', outputNameUnused: '', resultFilenames: [] } ); } // Config construction reads and may write dark mode. if ( typeof next.getDarkMode !== 'function' ) { @@ -56,15 +59,25 @@ function withBridgeEvents( next ) { return next; } -let bridge = withBridgeEvents( { host } ); +// The one default bridge object: the page store and `host` read it while their modules load. +const defaultBridge = withBridgeEvents( { host } ); +let bridge = defaultBridge; +// The setter serves the tests that still assign a bridge directly; each conversion ticket moves its files to installBridge. Object.defineProperty( window, 'rendererBridge', { configurable: true, enumerable: true, get() { return bridge; }, - set( next ) { + set( next: TestBridge ) { bridge = withBridgeEvents( next ); }, } ); + +// Merges a test's methods onto the default bridge object and makes it the page's bridge again. +// Descriptors are copied, so a `host` getter is never read. +export function installBridge( partial: TestBridge ): RendererBridge { + bridge = defaultBridge; + return Object.defineProperties( defaultBridge, Object.getOwnPropertyDescriptors( partial ) ) as RendererBridge; +} diff --git a/src/test/storeBridge.ts b/src/test/storeBridge.ts index 72a682e5..ade65909 100644 --- a/src/test/storeBridge.ts +++ b/src/test/storeBridge.ts @@ -1,30 +1,43 @@ -// @ts-nocheck — Test helper. checkJs has no jsdom bridge type. import { autorun } from 'mobx'; import { runEvents } from '../app/store/StoreBase'; +import type { RendererBridge } from '../common/rendererBridge'; + +import { installBridge } from './setup'; + +type RunEventName = keyof typeof runEvents; +// Every bridge listener fits this, whatever payload its event carries. +type Listener = ( payload: never ) => void; + +interface StubbedBridge { + bridge: RendererBridge; + listeners: Partial>; + fire: ( name: RunEventName, payload?: unknown ) => void; +} // Installs a renderer bridge whose run events record their listeners; `extra` adds or overrides methods. // `listeners[name]` always holds the live subscribers, and `fire` calls them. -export function stubBridge( extra = {} ) { - const listeners = {}; - const bridge = { ...extra }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = ( listener ) => { +export function stubBridge( extra: Partial = {} ): StubbedBridge { + const listeners: StubbedBridge['listeners'] = {}; + const events: Partial = {}; + for ( const name of Object.values( runEvents ) as RunEventName[] ) { + events[name] = ( listener: Listener ) => { ( listeners[name] ||= [] ).push( listener ); return () => { listeners[name] = listeners[name].filter( ( l ) => l !== listener ); }; }; } - window.rendererBridge = bridge; - const fire = ( name, payload ) => - ( listeners[name] || [] ).forEach( ( listener ) => listener( payload ) ); + installBridge( extra ); + const bridge = installBridge( events ); + const fire: StubbedBridge['fire'] = ( name, payload ) => + ( listeners[name] || [] ).forEach( ( listener ) => listener( payload as never ) ); return { bridge, listeners, fire }; } // Records every value a reaction sees, so a test can prove it re-ran. -export function track( fn ) { - const seen = []; +export function track( fn: () => T ): { seen: T[]; stop: () => void } { + const seen: T[] = []; const stop = autorun( () => seen.push( fn() ) ); return { seen, stop }; } diff --git a/vitest.config.mjs b/vitest.config.mjs index 6235ee35..2cfd513e 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -16,7 +16,7 @@ export default defineConfig( { environment: 'jsdom', globals: false, clearMocks: false, - include: [ 'src/**/*.test.{js,jsx}', 'e2e/helpers/**/*.test.js' ], + include: [ 'src/**/*.test.{js,jsx,ts,tsx}', 'e2e/helpers/**/*.test.js' ], // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. setupFiles: [ './src/test/setup.ts', './src/test/mobxActionWarning.ts' ], }, From 79a182a84fd9cee5f2788b3cba8478bced2552cf Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:17:02 +0100 Subject: [PATCH 08/23] Rename the page tests outside the page store to TypeScript (#300) Co-Authored-By: Claude Fable 5.2 --- src/app/{App.test.jsx => App.test.tsx} | 0 src/app/{bootstrap.test.js => bootstrap.test.ts} | 0 src/app/components/{ErrorDialog.test.jsx => ErrorDialog.test.tsx} | 0 src/app/{droppedFile.test.jsx => droppedFile.test.tsx} | 0 src/app/{paths.test.js => paths.test.ts} | 0 src/app/{promisedComputed.test.js => promisedComputed.test.ts} | 0 src/app/{report.test.js => report.test.ts} | 0 src/app/{unhandledError.test.jsx => unhandledError.test.tsx} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename src/app/{App.test.jsx => App.test.tsx} (100%) rename src/app/{bootstrap.test.js => bootstrap.test.ts} (100%) rename src/app/components/{ErrorDialog.test.jsx => ErrorDialog.test.tsx} (100%) rename src/app/{droppedFile.test.jsx => droppedFile.test.tsx} (100%) rename src/app/{paths.test.js => paths.test.ts} (100%) rename src/app/{promisedComputed.test.js => promisedComputed.test.ts} (100%) rename src/app/{report.test.js => report.test.ts} (100%) rename src/app/{unhandledError.test.jsx => unhandledError.test.tsx} (100%) diff --git a/src/app/App.test.jsx b/src/app/App.test.tsx similarity index 100% rename from src/app/App.test.jsx rename to src/app/App.test.tsx diff --git a/src/app/bootstrap.test.js b/src/app/bootstrap.test.ts similarity index 100% rename from src/app/bootstrap.test.js rename to src/app/bootstrap.test.ts diff --git a/src/app/components/ErrorDialog.test.jsx b/src/app/components/ErrorDialog.test.tsx similarity index 100% rename from src/app/components/ErrorDialog.test.jsx rename to src/app/components/ErrorDialog.test.tsx diff --git a/src/app/droppedFile.test.jsx b/src/app/droppedFile.test.tsx similarity index 100% rename from src/app/droppedFile.test.jsx rename to src/app/droppedFile.test.tsx diff --git a/src/app/paths.test.js b/src/app/paths.test.ts similarity index 100% rename from src/app/paths.test.js rename to src/app/paths.test.ts diff --git a/src/app/promisedComputed.test.js b/src/app/promisedComputed.test.ts similarity index 100% rename from src/app/promisedComputed.test.js rename to src/app/promisedComputed.test.ts diff --git a/src/app/report.test.js b/src/app/report.test.ts similarity index 100% rename from src/app/report.test.js rename to src/app/report.test.ts diff --git a/src/app/unhandledError.test.jsx b/src/app/unhandledError.test.tsx similarity index 100% rename from src/app/unhandledError.test.jsx rename to src/app/unhandledError.test.tsx From e8aff289b54a9a0e5b3bceb9a1915dee642e8333 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:17:48 +0100 Subject: [PATCH 09/23] Rename the page store partition tests to .ts (#302) Co-Authored-By: Claude Fable 5.2 --- src/app/store/{Part.test.js => Part.test.ts} | 0 src/app/store/{Partition.test.js => Partition.test.ts} | 0 .../{loadPartitionFile.test.js => loadPartitionFile.test.ts} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{Part.test.js => Part.test.ts} (100%) rename src/app/store/{Partition.test.js => Partition.test.ts} (100%) rename src/app/store/{loadPartitionFile.test.js => loadPartitionFile.test.ts} (100%) diff --git a/src/app/store/Part.test.js b/src/app/store/Part.test.ts similarity index 100% rename from src/app/store/Part.test.js rename to src/app/store/Part.test.ts diff --git a/src/app/store/Partition.test.js b/src/app/store/Partition.test.ts similarity index 100% rename from src/app/store/Partition.test.js rename to src/app/store/Partition.test.ts diff --git a/src/app/store/loadPartitionFile.test.js b/src/app/store/loadPartitionFile.test.ts similarity index 100% rename from src/app/store/loadPartitionFile.test.js rename to src/app/store/loadPartitionFile.test.ts From 30487d9a11e79255acb97556f36dc85e431e0604 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:17:59 +0100 Subject: [PATCH 10/23] Rename the page store alignment tests to .ts (#301) Co-Authored-By: Claude Fable 5.2 --- .../store/{AlignmentOptions.test.js => AlignmentOptions.test.ts} | 0 src/app/store/{alignmentStore.test.js => alignmentStore.test.ts} | 0 src/app/store/{finalAlignment.test.js => finalAlignment.test.ts} | 0 src/app/store/{loadAlignment.test.js => loadAlignment.test.ts} | 0 src/app/store/{parseAlignment.test.js => parseAlignment.test.ts} | 0 ...enatedAlignment.test.js => writeConcatenatedAlignment.test.ts} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{AlignmentOptions.test.js => AlignmentOptions.test.ts} (100%) rename src/app/store/{alignmentStore.test.js => alignmentStore.test.ts} (100%) rename src/app/store/{finalAlignment.test.js => finalAlignment.test.ts} (100%) rename src/app/store/{loadAlignment.test.js => loadAlignment.test.ts} (100%) rename src/app/store/{parseAlignment.test.js => parseAlignment.test.ts} (100%) rename src/app/store/{writeConcatenatedAlignment.test.js => writeConcatenatedAlignment.test.ts} (100%) diff --git a/src/app/store/AlignmentOptions.test.js b/src/app/store/AlignmentOptions.test.ts similarity index 100% rename from src/app/store/AlignmentOptions.test.js rename to src/app/store/AlignmentOptions.test.ts diff --git a/src/app/store/alignmentStore.test.js b/src/app/store/alignmentStore.test.ts similarity index 100% rename from src/app/store/alignmentStore.test.js rename to src/app/store/alignmentStore.test.ts diff --git a/src/app/store/finalAlignment.test.js b/src/app/store/finalAlignment.test.ts similarity index 100% rename from src/app/store/finalAlignment.test.js rename to src/app/store/finalAlignment.test.ts diff --git a/src/app/store/loadAlignment.test.js b/src/app/store/loadAlignment.test.ts similarity index 100% rename from src/app/store/loadAlignment.test.js rename to src/app/store/loadAlignment.test.ts diff --git a/src/app/store/parseAlignment.test.js b/src/app/store/parseAlignment.test.ts similarity index 100% rename from src/app/store/parseAlignment.test.js rename to src/app/store/parseAlignment.test.ts diff --git a/src/app/store/writeConcatenatedAlignment.test.js b/src/app/store/writeConcatenatedAlignment.test.ts similarity index 100% rename from src/app/store/writeConcatenatedAlignment.test.js rename to src/app/store/writeConcatenatedAlignment.test.ts From a9468d63f48a9891bf385b75437dc27f030ef457 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:18:58 +0100 Subject: [PATCH 11/23] Type the page tests outside the page store (#300) Drops @ts-nocheck from the eight tests. Each bridge stub goes through installBridge instead of assigning window.rendererBridge. Partial store stand-ins are cast where they are used; one mock takes a type argument because the test reads its calls. Co-Authored-By: Claude Fable 5.2 --- src/app/App.test.tsx | 1 - src/app/bootstrap.test.ts | 10 +++++----- src/app/components/ErrorDialog.test.tsx | 23 ++++++++++++----------- src/app/droppedFile.test.tsx | 21 +++++++++++---------- src/app/paths.test.ts | 1 - src/app/promisedComputed.test.ts | 9 ++++----- src/app/report.test.ts | 1 - src/app/unhandledError.test.tsx | 8 ++++---- 8 files changed, 36 insertions(+), 38 deletions(-) diff --git a/src/app/App.test.tsx b/src/app/App.test.tsx index bab16d36..2b3f1338 100644 --- a/src/app/App.test.tsx +++ b/src/app/App.test.tsx @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; diff --git a/src/app/bootstrap.test.ts b/src/app/bootstrap.test.ts index 18e93cad..c7e9f056 100644 --- a/src/app/bootstrap.test.ts +++ b/src/app/bootstrap.test.ts @@ -1,7 +1,7 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../test/setup'; -async function loadBootstrap( nodeEnv ) { +async function loadBootstrap( nodeEnv: string ) { const previousEnv = process.env.NODE_ENV; const previousE2E = process.env.RAXMLGUI_E2E; process.env.NODE_ENV = nodeEnv; @@ -29,10 +29,10 @@ it( 'the dev bootstrap loads the example files', async () => { dir: '/examples', outdir: '/out', } ) ); - window.rendererBridge = { + installBridge( { getExampleFiles, parseAlignment: () => new Promise( () => {} ), - }; + } ); const store = await loadBootstrap( 'development' ); @@ -46,7 +46,7 @@ it( 'the dev bootstrap loads the example files', async () => { it( 'a production load does not ask for the example files', async () => { const getExampleFiles = vi.fn(); - window.rendererBridge = { getExampleFiles }; + installBridge( { getExampleFiles } ); await loadBootstrap( 'production' ); diff --git a/src/app/components/ErrorDialog.test.tsx b/src/app/components/ErrorDialog.test.tsx index 5eac0848..8955e51d 100644 --- a/src/app/components/ErrorDialog.test.tsx +++ b/src/app/components/ErrorDialog.test.tsx @@ -1,12 +1,14 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type RunList from '../store/RunList'; +import { installBridge } from '../../test/setup'; import ErrorDialog from './ErrorDialog'; it( 'the reload action reloads the window', () => { const reload = vi.fn(); - window.rendererBridge = { reload }; + installBridge( { reload } ); const div = document.createElement( 'div' ); document.body.appendChild( div ); const root = createRoot( div ); @@ -21,7 +23,7 @@ it( 'the reload action reloads the window', () => { ); } ); - const button = [...document.body.querySelectorAll( 'button' )] + const button = Array.from( document.body.querySelectorAll( 'button' ) ) .find( ( item ) => item.textContent === 'Ignore and reload' ); act( () => { button.click(); @@ -35,7 +37,7 @@ it( 'the reload action reloads the window', () => { div.remove(); } ); -function renderDialog( error ) { +function renderDialog( error: Error ) { const div = document.createElement( 'div' ); document.body.appendChild( div ); const root = createRoot( div ); @@ -51,15 +53,15 @@ function renderDialog( error ) { return { root, div, - button( label ) { - return [...document.body.querySelectorAll( 'button, a' )] + button( label: string ) { + return Array.from( document.body.querySelectorAll( 'button, a' ) ) .find( ( item ) => item.textContent === label ); }, }; } it( 'builds the GitHub issue body, then opens it with debug info', async () => { - const order = []; + const order: string[] = []; const info = `raxmlGUI 2.0.18 Electron 45.2.3 darwin 25.6.0 @@ -69,15 +71,15 @@ Locale: en-US`; order.push( 'body' ); return { command: 'raxml -s primates.fasta', stdout: '' }; }, - }; + } as unknown as RunList; const debugInfo = vi.fn( async () => { order.push( 'debug' ); return info; } ); - const openExternal = vi.fn( async () => { + const openExternal = vi.fn( async () => { order.push( 'open' ); } ); - window.rendererBridge = { debugInfo, openExternal }; + installBridge( { debugInfo, openExternal } ); const error = new Error( 'boom' ); const view = renderDialog( error ); // Mailto builds its href while painting and also reads the store report. @@ -106,7 +108,6 @@ Locale: en-US`; } ); it( 'the mailto report stays an href', () => { - window.rendererBridge = {}; const view = renderDialog( new Error( 'boom' ) ); const link = view.button( 'Report issue on mail' ); diff --git a/src/app/droppedFile.test.tsx b/src/app/droppedFile.test.tsx index 15df6ffe..c5770429 100644 --- a/src/app/droppedFile.test.tsx +++ b/src/app/droppedFile.test.tsx @@ -1,20 +1,21 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import { ThemeProvider } from '@mui/material/styles'; import theme from './theme'; import Input from './Input'; +import type { InputProps } from './Input'; +import { installBridge } from '../test/setup'; const openTree = { notAvailable: false, haveFile: false }; const closedTree = { notAvailable: true, haveFile: false }; -function baseRun( extra ) { +function baseRun( extra: object ) { return { hasAstralTree: false, inputIsAlignment: false, inputIsTree: false, - alignments: [], + alignments: [] as object[], canLoadAlignment: false, haveAlignments: false, canLoadPartitionFile: false, @@ -36,25 +37,25 @@ function baseRun( extra ) { }; } -function mountInput( run ) { +function mountInput( run: object ) { const div = document.createElement( 'div' ); const root = createRoot( div ); // createRoot().render paints on a later tick. act flushes that paint. act( () => { root.render( - + , ); } ); return { div, root }; } -function button( div, text ) { - return [...div.querySelectorAll( 'button' )].find( ( node ) => node.textContent.trim() === text ); +function button( div: HTMLElement, text: string ) { + return Array.from( div.querySelectorAll( 'button' ) ).find( ( node ) => node.textContent.trim() === text ); } -async function drop( target, name ) { +async function drop( target: Element, name: string ) { const input = target.closest( '[role="presentation"]' ).querySelector( 'input[type="file"]' ); const file = new File( ['x'], name ); Object.defineProperty( input, 'files', { @@ -67,7 +68,7 @@ async function drop( target, name ) { } it( 'each drop target keeps the dropped file path', async () => { - window.rendererBridge = { + installBridge( { getPathForFile( file ) { return { 'primates.fasta': '/tmp/drop-1', @@ -80,7 +81,7 @@ it( 'each drop target keeps the dropped file path', async () => { 'genes.part': '/tmp/drop-8', }[file.name]; }, - }; + } ); const first = baseRun( { canLoadAlignment: true, diff --git a/src/app/paths.test.ts b/src/app/paths.test.ts index dabb2d8e..bc452538 100644 --- a/src/app/paths.test.ts +++ b/src/app/paths.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { base, basename, dir, join, name, quote, diff --git a/src/app/promisedComputed.test.ts b/src/app/promisedComputed.test.ts index ee59621e..99925485 100644 --- a/src/app/promisedComputed.test.ts +++ b/src/app/promisedComputed.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { observable, runInAction, reaction, when } from 'mobx'; import { promisedComputed } from './promisedComputed'; @@ -12,14 +11,14 @@ it( 'keeps the last value while pending and throws a rejection', async () => { } return n * 10; } ); - const seen = []; - const errors = []; + const seen: ( number | string )[] = []; + const errors: string[] = []; const stop = reaction( () => { try { return pc.get(); - } catch ( e ) { - errors.push( e.message ); + } catch ( e: unknown ) { + errors.push( ( e as Error ).message ); return 'error'; } }, diff --git a/src/app/report.test.ts b/src/app/report.test.ts index 431145f6..5401d8a7 100644 --- a/src/app/report.test.ts +++ b/src/app/report.test.ts @@ -1,4 +1,3 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { cleanStack, serializeAndCleanError } from './report'; diff --git a/src/app/unhandledError.test.tsx b/src/app/unhandledError.test.tsx index 16ff92e6..f95f701f 100644 --- a/src/app/unhandledError.test.tsx +++ b/src/app/unhandledError.test.tsx @@ -1,18 +1,18 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import React, { act } from 'react'; import { createRoot } from 'react-dom/client'; import Page from './index'; import store from './store'; +import { installBridge } from '../test/setup'; it( 'the page shows an unhandled error title and error', () => { - let hear; - window.rendererBridge = { + let hear: ( payload: unknown ) => void; + installBridge( { onUnhandledError( listener ) { hear = listener; return () => {}; }, - }; + } ); store.listen(); const div = document.createElement( 'div' ); From 54247b254176b64e5b8c6964025155e9d2555b93 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:18:59 +0100 Subject: [PATCH 12/23] Skip TypeScript tests in the page Node-import scan (#304) The scan skipped only .test.js files, so a page test renamed to .ts that imports fs or os would fail it. Co-Authored-By: Claude Fable 5.2 --- src/pageNodeImports.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pageNodeImports.test.js b/src/pageNodeImports.test.js index c4fe38cd..bf76e30e 100644 --- a/src/pageNodeImports.test.js +++ b/src/pageNodeImports.test.js @@ -20,7 +20,7 @@ function walk( dir ) { const full = path.join( dir, entry.name ); if ( entry.isDirectory() ) { out.push( ...walk( full ) ); - } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !/\.test\.jsx?$/.test( entry.name ) ) { + } else if ( /\.(js|jsx|ts|tsx)$/.test( entry.name ) && !/\.test\.[jt]sx?$/.test( entry.name ) ) { out.push( full ); } } From b01c97c1517c39da7495f754e4d5f17a1c56bea9 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:19:15 +0100 Subject: [PATCH 13/23] Rename the run lifecycle, run list, start and cancel tests to .ts (#304) Co-Authored-By: Claude Fable 5.2 --- src/app/store/{RunList.test.js => RunList.test.ts} | 0 src/app/store/{cancelRun.test.js => cancelRun.test.ts} | 0 src/app/store/{runLifecycle.test.js => runLifecycle.test.ts} | 0 src/app/store/{startRun.test.js => startRun.test.ts} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{RunList.test.js => RunList.test.ts} (100%) rename src/app/store/{cancelRun.test.js => cancelRun.test.ts} (100%) rename src/app/store/{runLifecycle.test.js => runLifecycle.test.ts} (100%) rename src/app/store/{startRun.test.js => startRun.test.ts} (100%) diff --git a/src/app/store/RunList.test.js b/src/app/store/RunList.test.ts similarity index 100% rename from src/app/store/RunList.test.js rename to src/app/store/RunList.test.ts diff --git a/src/app/store/cancelRun.test.js b/src/app/store/cancelRun.test.ts similarity index 100% rename from src/app/store/cancelRun.test.js rename to src/app/store/cancelRun.test.ts diff --git a/src/app/store/runLifecycle.test.js b/src/app/store/runLifecycle.test.ts similarity index 100% rename from src/app/store/runLifecycle.test.js rename to src/app/store/runLifecycle.test.ts diff --git a/src/app/store/startRun.test.js b/src/app/store/startRun.test.ts similarity index 100% rename from src/app/store/startRun.test.js rename to src/app/store/startRun.test.ts From 547d4cf656db9b9c3ac06456da0a93c87d60de93 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:20:02 +0100 Subject: [PATCH 14/23] Type the page store partition tests (#302) The tests install their bridge through installBridge or stubBridge and use the shared track helper. The invariant-sites test sets '+I' where it set true: the option holds a string. Co-Authored-By: Claude Fable 5.2 --- src/app/store/Part.test.ts | 46 ++++++++++++++----------- src/app/store/Partition.test.ts | 34 ++++++------------ src/app/store/loadPartitionFile.test.ts | 20 ++++++----- 3 files changed, 48 insertions(+), 52 deletions(-) diff --git a/src/app/store/Part.test.ts b/src/app/store/Part.test.ts index 6d42975d..80ac60e0 100644 --- a/src/app/store/Part.test.ts +++ b/src/app/store/Part.test.ts @@ -1,30 +1,38 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; import Alignment from './Alignment'; import Run from './Run'; +import type { DataType } from '../../common/typecheckAlignment'; import { CODON_NONE, CODON_SPECIFIC, CODON_THIRD, CodonModels, } from './PartOptions'; +import { installBridge } from '../../test/setup'; +import { track } from '../../test/storeBridge'; // The alignment subscribes to bridge events and parses its file on creation. beforeEach( () => { - window.rendererBridge = { + installBridge( { parseAlignment: () => new Promise( () => {} ), onModelSelectionSuccess: () => () => {}, onModelSelectionFailure: () => () => {}, onRunStdout: () => () => {}, onRunStderr: () => () => {}, - }; + } ); } ); +type RunParent = ConstructorParameters[0]; +type Part = Alignment['partition']['partToAdd']; +type PartValues = Part['values']; + // The run defaults to raxml-ng, whose partition type is the model command; classic raxml uses the data type. -function makeAlignment( { dataType = 'dna', length = 100, ng = false } = {} ) { - const run = new Run( {}, 1 ); +function makeAlignment( + { dataType = 'dna', length = 100, ng = false }: { dataType?: string; length?: number; ng?: boolean } = {}, +): Alignment { + const run = new Run( {} as RunParent, 1 ); const alignment = new Alignment( run, '/data/a.fasta' ); runInAction( () => { if ( !ng ) { @@ -32,24 +40,18 @@ function makeAlignment( { dataType = 'dna', length = 100, ng = false } = {} ) { .map( ( o ) => o.value ) .find( ( v ) => /raxml/i.test( v ) && !v.includes( 'raxml-ng' ) ); } - alignment.dataType = dataType; + // 'dna' is the dead case of #269; the store still maps it to DNA. + alignment.dataType = dataType as DataType; alignment.length = length; } ); return alignment; } -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - -const part = ( alignment, values ) => { +const part = ( alignment: Alignment, values: Partial ): Part => { const { partition } = alignment; runInAction( () => { Object.entries( values ).forEach( ( [key, value] ) => { - partition.partToAdd[key].value = value; + ( partition.partToAdd[key as keyof PartValues] as { value: unknown } ).value = value; } ); } ); return partition.partToAdd; @@ -90,7 +92,7 @@ describe( 'Part', () => { const alignment = makeAlignment( { ng: true } ); const { seen, stop } = track( () => alignment.partition.partToAdd.typePadded ); runInAction( () => { - alignment.ngInvariantSites.value = true; + alignment.ngInvariantSites.value = '+I'; } ); expect( seen[0] ).toBe( ', ' ); expect( seen ).toHaveLength( 2 ); @@ -245,7 +247,7 @@ describe( 'part options', () => { } ); expect( seen.seen[1] ).toEqual( [['DNA', 'BIN', 'MULTI', 'protein'], false] ); runInAction( () => { - alignment.dataType = ''; + alignment.dataType = '' as DataType; } ); expect( type.options.map( ( o ) => o.title ) ).toEqual( [ 'DNA', @@ -259,8 +261,10 @@ describe( 'part options', () => { it( 'PartType accepts only strings', () => { const { type } = makeAlignment().partition.partToAdd; + // @ts-expect-error A number on purpose: the schema casts it to a string. type.setValue( 5 ); expect( type.value ).toBe( '5' ); + // @ts-expect-error An object on purpose: the schema rejects it. type.setValue( {} ); expect( type.value ).toBe( '5' ); } ); @@ -293,8 +297,10 @@ describe( 'part options', () => { const { start } = makeAlignment().partition.partToAdd; expect( start.notAvailable ).toBe( false ); expect( start.disabled ).toBe( true ); + // @ts-expect-error A numeric string on purpose: the schema casts it to a number. start.setValue( '7' ); expect( start.value ).toBe( 7 ); + // @ts-expect-error A non-numeric string on purpose: an invalid value is stored as given. start.setValue( 'abc' ); expect( start.value ).toBe( 'abc' ); } ); @@ -358,10 +364,10 @@ describe( 'part options', () => { } ); describe( 'Partition', () => { - const add = ( partition, values ) => { + const add = ( partition: Alignment['partition'], values: Partial ): void => { runInAction( () => { Object.entries( values ).forEach( ( [key, value] ) => { - partition.partToAdd[key].value = value; + ( partition.partToAdd[key as keyof PartValues] as { value: unknown } ).value = value; } ); } ); partition.addPart(); diff --git a/src/app/store/Partition.test.ts b/src/app/store/Partition.test.ts index c8cd42e9..7445d052 100644 --- a/src/app/store/Partition.test.ts +++ b/src/app/store/Partition.test.ts @@ -1,31 +1,18 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; import Alignment from './Alignment'; +import type Run from './Run'; import RunList from './RunList'; -import { runEvents } from './StoreBase'; +import type { DataType } from '../../common/typecheckAlignment'; +import { stubBridge, track } from '../../test/storeBridge'; -// The run and alignment subscribe to bridge events; a no-op bridge is enough here. -function stubBridge() { - const bridge = { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = () => () => {}; - } - window.rendererBridge = bridge; -} - -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - -let run; +let run: Run; // Adds an alignment to the run the way loading a file would, minus the file. -function addAlignment( { dataType = 'nucleotide', length = 100 } = {} ) { +function addAlignment( + { dataType = 'nucleotide', length = 100 }: { dataType?: DataType; length?: number } = {}, +): Alignment { const alignment = new Alignment( run, `/data/aln${run.alignments.length}.fasta` ); runInAction( () => { alignment.dataType = dataType; @@ -36,7 +23,7 @@ function addAlignment( { dataType = 'nucleotide', length = 100 } = {} ) { } // Sets the end of the part to add, then adds it. -function addPartEndingAt( partition, end ) { +function addPartEndingAt( partition: Alignment['partition'], end: number ): void { runInAction( () => { partition.partToAdd.end.value = end; } ); @@ -44,7 +31,8 @@ function addPartEndingAt( partition, end ) { } beforeEach( () => { - stubBridge(); + // The run and alignment subscribe to bridge events; a no-op bridge is enough here. + stubBridge( { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) } ); run = new RunList().activeRun; runInAction( () => { run.binary.value = 'raxmlHPC'; diff --git a/src/app/store/loadPartitionFile.test.ts b/src/app/store/loadPartitionFile.test.ts index d7a7814c..68f40dd6 100644 --- a/src/app/store/loadPartitionFile.test.ts +++ b/src/app/store/loadPartitionFile.test.ts @@ -1,12 +1,14 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import Run from './Run'; +import { installBridge } from '../../test/setup'; + +type RunParent = ConstructorParameters[0]; it( 'the partition picker uses the chosen file', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); const selectPartitionFile = vi.fn( async () => '/data/genes.part' ); const readFile = vi.fn( async () => 'DNA, gene = 1-100\n' ); - window.rendererBridge = { selectPartitionFile, readFile }; + installBridge( { selectPartitionFile, readFile } ); await run.loadPartitionFile(); @@ -16,12 +18,12 @@ it( 'the partition picker uses the chosen file', async () => { } ); it( 'cancel leaves the partition unchanged', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.partitionFile = '/data/already.part'; run.partitionFileContent = 'kept'; - window.rendererBridge = { + installBridge( { selectPartitionFile: vi.fn( async () => null ), - }; + } ); await run.loadPartitionFile(); @@ -31,14 +33,14 @@ it( 'cancel leaves the partition unchanged', async () => { } ); it( 'a dialog failure fails the partition choice', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.partitionFile = '/data/already.part'; run.partitionFileContent = 'kept'; - window.rendererBridge = { + installBridge( { selectPartitionFile: async () => { throw new Error( 'dialog failed' ); }, - }; + } ); await expect( run.loadPartitionFile() ).rejects.toThrow( 'dialog failed' ); expect( run.partitionFile ).toBe( '/data/already.part' ); From e5e0a17780fefa8e131ac460e3d25e202358079a Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:21:33 +0100 Subject: [PATCH 15/23] Type the page store alignment tests (#301) Each file installs its bridge methods with installBridge or stubBridge instead of assigning window.rendererBridge. Fixtures that carried the data type 'dna' as incidental parse output now carry 'nucleotide': the parser never sets 'dna'. The one loop that exercises the dead 'dna' case keeps it behind a ts-expect-error. Co-Authored-By: Claude Fable 5.2 --- src/app/store/AlignmentOptions.test.ts | 16 +++--- src/app/store/alignmentStore.test.ts | 53 ++++++++++++------- src/app/store/finalAlignment.test.ts | 38 ++++++++----- src/app/store/loadAlignment.test.ts | 32 +++++------ src/app/store/parseAlignment.test.ts | 21 ++++---- .../store/writeConcatenatedAlignment.test.ts | 9 ++-- 6 files changed, 101 insertions(+), 68 deletions(-) diff --git a/src/app/store/AlignmentOptions.test.ts b/src/app/store/AlignmentOptions.test.ts index 86d8e698..2f650eee 100644 --- a/src/app/store/AlignmentOptions.test.ts +++ b/src/app/store/AlignmentOptions.test.ts @@ -1,16 +1,17 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import Run from './Run'; import * as raxmlNgSettings from '../../settings/raxmlng'; +import { installBridge } from '../../test/setup'; beforeEach( () => { - window.rendererBridge = { parseAlignment: () => new Promise( () => {} ) }; + installBridge( { parseAlignment: () => new Promise( () => {} ) } ); } ); function setup() { - const run = new Run( { onError() {} }, 1 ); + const parent: Partial = { onError() {} }; + const run = new Run( parent as Run['parent'], 1 ); run.addAlignments( [{ path: '/data/a.fasta' }] ); const alignment = run.alignments[0]; runInAction( () => { @@ -20,7 +21,7 @@ function setup() { return { run, alignment }; } -function useOtherBinary( run ) { +function useOtherBinary( run: Run ) { runInAction( () => { run.binary.value = run.binary.options.find( ( o ) => !o.value.includes( 'raxml-ng' ), @@ -29,8 +30,8 @@ function useOtherBinary( run ) { } // Records every value a computed takes while the store changes. -function watch( read ) { - const seen = []; +function watch( read: () => T ) { + const seen: T[] = []; const stop = autorun( () => seen.push( read() ) ); return { seen, stop }; } @@ -97,7 +98,8 @@ describe( 'substitution model', () => { } ); describe( 'extra model parameters', () => { - const extras = [ + type ExtraKey = 'ngStationaryFrequencies' | 'ngInvariantSites' | 'ngRateHeterogeneity'; + const extras: [ExtraKey, string, string][] = [ ['ngStationaryFrequencies', 'Stationary frequencies', '+F'], ['ngInvariantSites', 'Proportion of invariant sites', '+I'], ['ngRateHeterogeneity', 'Rate heterogeneity', '+G'], diff --git a/src/app/store/alignmentStore.test.ts b/src/app/store/alignmentStore.test.ts index 7d2e3706..f0a888a7 100644 --- a/src/app/store/alignmentStore.test.ts +++ b/src/app/store/alignmentStore.test.ts @@ -1,18 +1,24 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; +import type { AlignmentParseResult } from '../../main/parseAlignment'; +import type { ModelSelectionResult } from '../../main/modelSelection'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type { DataType } from '../../common/typecheckAlignment'; +import { installBridge } from '../../test/setup'; import { stubBridge as sharedStubBridge, track } from '../../test/storeBridge'; import Run from './Run'; import { runEvents } from './StoreBase'; -let bridge; -let listeners; -let fire; +type Stubbed = ReturnType; + +let bridge: Stubbed['bridge']; +let listeners: Stubbed['listeners']; +let fire: Stubbed['fire']; // Alignment construction subscribes to bridge events and parses. -function stubBridge( extra = {} ) { +function stubBridge( extra: Partial = {} ): void { ( { bridge, listeners, fire } = sharedStubBridge( { parseAlignment: () => new Promise( () => {} ), startModelSelection: vi.fn( async () => {} ), @@ -21,17 +27,20 @@ function stubBridge( extra = {} ) { } ) ); } -function setup( { onError = () => {}, path = '/data/primates.fasta' } = {} ) { - const run = new Run( { onError }, 7 ); +function setup( { + onError = () => {}, + path = '/data/primates.fasta', +}: { onError?: Run['parent']['onError']; path?: string } = {} ) { + const run = new Run( { onError } as Run['parent'], 7 ); run.addAlignments( [{ path }] ); return { run, alignment: run.alignments[0] }; } -function set( object, values ) { +function set( object: T, values: Partial ): void { runInAction( () => Object.assign( object, values ) ); } -const parsed = { +const parsed: AlignmentParseResult['alignment'] = { sequences: [ { taxon: 'Homo', code: 'ACGT' }, { taxon: 'Mus', code: 'ACGA' }, @@ -39,7 +48,7 @@ const parsed = { fileFormat: 'fasta', numSequences: 2, length: 4, - dataType: 'dna', + dataType: 'nucleotide', hasInvariantSites: true, typecheckingComplete: true, }; @@ -125,6 +134,7 @@ describe( 'Alignment observable fields update the page store', () => { mixed: ['mixed', false, null], }; for ( const [dataType, expected] of Object.entries( types ) ) { + // @ts-expect-error 'dna' is outside DataType: it exercises the dead case kept for #269. set( alignment, { dataType } ); expect( seen[seen.length - 1] ).toEqual( expected ); } @@ -221,7 +231,7 @@ describe( 'Alignment observable fields update the page store', () => { set( alignment, { dataType: 'multistate' } ); alignment.substitutionModel.setValue( 'MULTIx_GTR' ); const { seen, stop } = track( () => alignment.ngSubstitutionModelCmd ); - alignment.multistateNumber.setValue( 5 ); + alignment.multistateNumber.setValue( '5' ); expect( seen[0] ).toContain( 'MULTI' ); expect( seen[seen.length - 1] ).toBe( alignment.substitutionModel.value.replace( 'x', '5' ) + '' ); stop(); @@ -281,10 +291,11 @@ describe( 'Alignment observable fields update the page store', () => { modeltestLoading: true, partitionText: 'x', }; - const { seen, stop } = track( () => JSON.stringify( Object.keys( values ).map( ( k ) => alignment[k] ) ) ); + const keys = Object.keys( values ) as ( keyof typeof values )[]; + const { seen, stop } = track( () => JSON.stringify( keys.map( ( k ) => alignment[k] ) ) ); set( alignment, values ); - for ( const [key, value] of Object.entries( values ) ) { - expect( alignment[key] ).toEqual( value ); + for ( const key of keys ) { + expect( alignment[key] ).toEqual( values[key] ); } expect( seen.length ).toBe( 2 ); stop(); @@ -324,18 +335,20 @@ describe( 'Alignment constructor', () => { } ); it( 'disables modeltest on Windows 7', async () => { - window.rendererBridge = { ...bridge, host: { ...bridge.host, windows: true, release: '6.1.7601' } }; + const { host } = bridge; + installBridge( { host: { ...host, windows: true, release: '6.1.7601' } } ); vi.resetModules(); const IsolatedRun = ( await import( './Run' ) ).default; - const run = new IsolatedRun( {}, 1 ); + const run = new IsolatedRun( {} as Run['parent'], 1 ); run.addAlignments( [{ path: '/a.fasta' }] ); expect( run.alignments[0].modeltestDisabled ).toBe( true ); + installBridge( { host } ); } ); } ); describe( 'Alignment loadParsedAlignment', () => { - async function load( parse, run ) { - let pending; + async function load( parse: RendererBridge['parseAlignment'] ) { + let pending!: Promise; stubBridge( { parseAlignment: ( ...args ) => { pending = parse( ...args ); @@ -369,7 +382,7 @@ describe( 'Alignment loadParsedAlignment', () => { it( 'keeps the substitution matrix when the run data type is unchanged', async () => { const { run, alignment } = await load( async () => ( { - alignment: { ...parsed, dataType: 'dna' }, + alignment: { ...parsed, dataType: 'nucleotide' }, change: null, } ) ); expect( run.substitutionMatrix.value ).toBe( 'GTR' ); @@ -511,7 +524,7 @@ describe( 'Alignment model selection', () => { } ); describe( 'Alignment setModelFromString', () => { - function apply( result, dataType = 'nucleotide' ) { + function apply( result: ModelSelectionResult, dataType: DataType = 'nucleotide' ) { const { run, alignment } = setup(); set( alignment, { dataType, modeltestLoading: true } ); alignment.setModelFromString( result ); diff --git a/src/app/store/finalAlignment.test.ts b/src/app/store/finalAlignment.test.ts index ee5152eb..438b3167 100644 --- a/src/app/store/finalAlignment.test.ts +++ b/src/app/store/finalAlignment.test.ts @@ -1,16 +1,28 @@ -// @ts-nocheck — the test is not typed yet. import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; +import type { AlignmentSequence } from '../../main/parseAlignment'; +import type { DataType } from '../../common/typecheckAlignment'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; +interface AlignmentSpec { + path: string; + length: number; + sequences: AlignmentSequence[]; + dataType?: DataType; + hasInvariantSites?: boolean; +} + // The final alignment reads its run's alignments; build a real run with -// sequences set directly, as writeConcatenatedAlignment.test.js does. -function makeRun( alignments ) { - const run = new Run( {}, 7 ); +// sequences set directly, as writeConcatenatedAlignment.test.ts does. +function makeRun( alignments: AlignmentSpec[] ): Run { + const run = new Run( {} as Run['parent'], 7 ); // outputNameAvailable is a promisedComputed that only settles inside a reaction (outside one each read calls the bridge); pin it. - run.outputNameAvailable = { get: () => ( { outputNameUnused: 'out' } ) }; - window.rendererBridge = { parseAlignment: () => new Promise( () => {} ) }; + run.outputNameAvailable = { get: () => ( { outputNameUnused: 'out' } ) } as Run['outputNameAvailable']; + installBridge( { parseAlignment: () => new Promise( () => {} ) } ); run.addAlignments( alignments.map( ( { path } ) => ( { path } ) ) ); runInAction( () => { run.outputDir = '/out'; @@ -25,7 +37,7 @@ function makeRun( alignments ) { return run; } -const A = { +const A: AlignmentSpec = { path: '/data/a.fasta', length: 2, sequences: [ @@ -33,7 +45,7 @@ const A = { { taxon: 'Mus', code: 'GC' }, ], }; -const B = { +const B: AlignmentSpec = { path: '/data/b.fasta', length: 3, dataType: 'protein', @@ -43,8 +55,8 @@ const B = { ], }; -function track( fn ) { - const seen = []; +function track( fn: () => T ) { + const seen: T[] = []; const stop = autorun( () => seen.push( fn() ) ); return { seen, stop }; } @@ -115,11 +127,11 @@ describe( 'FinalAlignment observables', () => { describe( 'FinalAlignment actions', () => { function stubBridge() { const bridge = { - writeFile: vi.fn( async () => {} ), - openPath: vi.fn( async () => {} ), + writeFile: vi.fn( async () => {} ), + openPath: vi.fn( async () => '' ), showItemInFolder: vi.fn( async () => {} ), }; - window.rendererBridge = bridge; + installBridge( bridge ); return bridge; } diff --git a/src/app/store/loadAlignment.test.ts b/src/app/store/loadAlignment.test.ts index dfb379be..4ba0e76a 100644 --- a/src/app/store/loadAlignment.test.ts +++ b/src/app/store/loadAlignment.test.ts @@ -1,14 +1,16 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import type { AlignmentParseResult } from '../../main/parseAlignment'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; -const stayParsed = async () => ( { +const stayParsed = async (): Promise => ( { alignment: { sequences: [], fileFormat: 'fasta', numSequences: 0, length: 0, - dataType: 'dna', + dataType: 'nucleotide', hasInvariantSites: false, typecheckingComplete: true, }, @@ -17,12 +19,12 @@ const stayParsed = async () => ( { it( 'the alignment picker adds the chosen alignments', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as Run['parent'], 7 ); const selectAlignment = vi.fn( async () => [ { path: '/data/primates.fasta', name: 'primates.fasta' }, { path: '/data/cats.phy', name: 'cats.phy' }, ] ); - window.rendererBridge = { selectAlignment, parseAlignment: stayParsed }; + installBridge( { selectAlignment, parseAlignment: stayParsed } ); await run.loadAlignmentFiles(); @@ -34,13 +36,13 @@ it( 'the alignment picker adds the chosen alignments', async () => { } ); it( 'cancel leaves the alignments unchanged', async () => { - const run = new Run( {}, 7 ); - window.rendererBridge = { parseAlignment: stayParsed }; - run.addAlignments( [{ path: '/data/already.fasta', name: 'already.fasta' }] ); - window.rendererBridge = { + const run = new Run( {} as Run['parent'], 7 ); + installBridge( { parseAlignment: stayParsed } ); + run.addAlignments( [{ path: '/data/already.fasta' }] ); + installBridge( { parseAlignment: stayParsed, selectAlignment: vi.fn( async () => null ), - }; + } ); await run.loadAlignmentFiles(); @@ -51,15 +53,15 @@ it( 'cancel leaves the alignments unchanged', async () => { } ); it( 'a dialog failure fails the alignment choice', async () => { - const run = new Run( {}, 7 ); - window.rendererBridge = { parseAlignment: stayParsed }; - run.addAlignments( [{ path: '/data/already.fasta', name: 'already.fasta' }] ); - window.rendererBridge = { + const run = new Run( {} as Run['parent'], 7 ); + installBridge( { parseAlignment: stayParsed } ); + run.addAlignments( [{ path: '/data/already.fasta' }] ); + installBridge( { parseAlignment: stayParsed, selectAlignment: async () => { throw new Error( 'dialog failed' ); }, - }; + } ); await expect( run.loadAlignmentFiles() ).rejects.toThrow( 'dialog failed' ); expect( run.alignments.map( ( alignment ) => alignment.path ) ).toEqual( [ diff --git a/src/app/store/parseAlignment.test.ts b/src/app/store/parseAlignment.test.ts index c9dc8441..77907995 100644 --- a/src/app/store/parseAlignment.test.ts +++ b/src/app/store/parseAlignment.test.ts @@ -1,8 +1,11 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import type { AlignmentParseResult } from '../../main/parseAlignment'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; -const alignment = { +const alignment: AlignmentParseResult['alignment'] = { sequences: [ { taxon: 'Homo', code: 'ACGT' }, { taxon: 'Mus', code: 'ACGA' }, @@ -10,20 +13,20 @@ const alignment = { fileFormat: 'fasta', numSequences: 2, length: 4, - dataType: 'dna', + dataType: 'nucleotide', hasInvariantSites: true, typecheckingComplete: true, }; -function add( parseAlignment ) { - const run = new Run( {}, 7 ); - let pending; - window.rendererBridge = { +function add( parseAlignment: RendererBridge['parseAlignment'] ) { + const run = new Run( {} as Run['parent'], 7 ); + let pending!: Promise; + installBridge( { parseAlignment: ( ...args ) => { pending = parseAlignment( ...args ); return pending; }, - }; + } ); run.addAlignments( [ { path: '/data/primates.fasta' } ] ); return { run, pending }; } @@ -43,7 +46,7 @@ it( 'the alignment load keeps the path when parsing changes nothing', async () = expect( loaded.fileFormat ).toBe( 'fasta' ); expect( loaded.numSequences ).toBe( 2 ); expect( loaded.length ).toBe( 4 ); - expect( loaded.dataType ).toBe( 'dna' ); + expect( loaded.dataType ).toBe( 'nucleotide' ); expect( loaded.hasInvariantSites ).toBe( true ); expect( loaded.typecheckingComplete ).toBe( true ); expect( loaded.parsingComplete ).toBe( true ); diff --git a/src/app/store/writeConcatenatedAlignment.test.ts b/src/app/store/writeConcatenatedAlignment.test.ts index bb980356..e9c0ce25 100644 --- a/src/app/store/writeConcatenatedAlignment.test.ts +++ b/src/app/store/writeConcatenatedAlignment.test.ts @@ -1,11 +1,12 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; it( 'writes one concatenated FASTA', async () => { - const run = new Run( {}, 7 ); - window.rendererBridge = { parseAlignment: () => new Promise( () => {} ) }; + const run = new Run( {} as Run['parent'], 7 ); + installBridge( { parseAlignment: () => new Promise( () => {} ) } ); run.addAlignments( [ { path: '/data/a.fasta' }, { path: '/data/b.fasta' }, @@ -23,7 +24,7 @@ it( 'writes one concatenated FASTA', async () => { run.alignments[1].length = 2; } ); const writeFile = vi.fn( async () => {} ); - window.rendererBridge = { writeFile }; + installBridge( { writeFile } ); await run.finalAlignment.writeConcatenatedAlignment(); From 6a2dfc6fe6e7ba4a40580e5c526c8cfa6a2da176 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 19:23:19 +0100 Subject: [PATCH 16/23] Type the run lifecycle, run list, start and cancel tests (#304) Drops @ts-nocheck from the four tests. Each installs its bridge with installBridge or stubBridge instead of assigning window.rendererBridge, so a stub the renderer bridge lacks fails the typecheck. runLifecycle and RunList use the shared stubBridge and track in place of their local copies. Partial stand-ins are cast where they are used. Test counts are unchanged: runLifecycle 17, RunList 20, startRun 3, cancelRun 2. Co-Authored-By: Claude Fable 5.2 --- src/app/store/RunList.test.ts | 49 +++++++---------------- src/app/store/cancelRun.test.ts | 20 ++++++---- src/app/store/runLifecycle.test.ts | 62 +++++++++++------------------- src/app/store/startRun.test.ts | 40 +++++++++++-------- 4 files changed, 72 insertions(+), 99 deletions(-) diff --git a/src/app/store/RunList.test.ts b/src/app/store/RunList.test.ts index df6b4b3c..79dfb569 100644 --- a/src/app/store/RunList.test.ts +++ b/src/app/store/RunList.test.ts @@ -1,43 +1,20 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; + +import type { RendererBridge } from '../../common/rendererBridge'; +import { stubBridge, track } from '../../test/storeBridge'; import AppStore from './AppStore'; import RunList from './RunList'; import { runEvents } from './StoreBase'; -let listeners; -let cancelRun; - -// The run list subscribes to bridge events; keep each listener so a test can fire it. -function stubBridge() { - const byName = {}; - listeners = byName; - cancelRun = vi.fn(); - const bridge = { cancelRun, getVersion: () => Promise.resolve( '2.0.0' ) }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = ( listener ) => { - ( byName[name] ||= [] ).push( listener ); - return () => { - byName[name] = byName[name].filter( ( l ) => l !== listener ); - }; - }; - } - window.rendererBridge = bridge; -} - -function fire( name, ...args ) { - ( listeners[name] || [] ).forEach( ( listener ) => listener( ...args ) ); -} +let bridge: RendererBridge; +let fire: ReturnType['fire']; -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - -beforeEach( () => stubBridge() ); +// The run list subscribes to bridge events; stubBridge keeps each listener so a test can fire it. +beforeEach( () => { + ( { bridge, fire } = stubBridge( { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) } ) ); +} ); describe( 'AppStore', () => { it( 'loads the version from the renderer bridge', async () => { @@ -138,7 +115,7 @@ describe( 'RunList', () => { list.addRun(); const last = list.runs[2]; list.deleteRun( last ); - expect( cancelRun ).toHaveBeenCalledWith( 3 ); + expect( bridge.cancelRun ).toHaveBeenCalledWith( 3 ); expect( list.runs.map( ( r ) => r.id ) ).toEqual( [1, 2] ); expect( list.activeIndex ).toBe( 1 ); expect( list.activeRun.id ).toBe( 2 ); @@ -229,7 +206,7 @@ describe( 'RunList', () => { list.onUnhandledError( { title: 'Oops', error } ); expect( list.errorTitle ).toBe( 'Oops' ); expect( list.error ).toBe( error ); - console.log.mockRestore(); + vi.mocked( console.log ).mockRestore(); } ); it( 'the constraint toggles flip the active run only', () => { @@ -263,7 +240,7 @@ describe( 'RunList', () => { fire( runEvents.onUnhandledError, { title: 'Main', error } ); expect( list.errorTitle ).toBe( 'Main' ); expect( list.error ).toBe( error ); - console.log.mockRestore(); + vi.mocked( console.log ).mockRestore(); } ); it( 'generateReport reports the active run with truncated stdout', () => { diff --git a/src/app/store/cancelRun.test.ts b/src/app/store/cancelRun.test.ts index 5f394d79..b1231c35 100644 --- a/src/app/store/cancelRun.test.ts +++ b/src/app/store/cancelRun.test.ts @@ -1,15 +1,19 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import fs from 'fs'; import os from 'os'; import path from 'path'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; + it( 'the cancel control uses cancelRun', () => { const cancelRun = vi.fn(); - window.rendererBridge = { cancelRun }; - const run = new Run( { onError() {} }, 7 ); + installBridge( { cancelRun } ); + const run = new Run( { onError() {} } as Partial as RunParent, 7 ); run.running = true; run.cancel(); @@ -21,24 +25,24 @@ it( 'the cancel control uses cancelRun', () => { it( 'cancel before the run is tracked does not start it', async () => { const outputDir = fs.mkdtempSync( path.join( os.tmpdir(), 'raxml-cancel-' ) ); let holdWrites = true; - const waiters = []; + const waiters: ( () => void )[] = []; const writeFile = vi.fn( () => { if ( !holdWrites ) { return Promise.resolve(); } - return new Promise( ( resolve ) => { + return new Promise( ( resolve ) => { waiters.push( resolve ); } ); } ); const startRun = vi.fn( async () => {} ); const cancelRun = vi.fn(); - window.rendererBridge = { + installBridge( { writeFile, startRun, cancelRun, parseAlignment: () => new Promise( () => {} ), - }; - const run = new Run( { onError() {} }, 7 ); + } ); + const run = new Run( { onError() {} } as Partial as RunParent, 7 ); run.setOutputDir( outputDir ); run.addAlignments( [ { path: '/data/a.fasta' }, diff --git a/src/app/store/runLifecycle.test.ts b/src/app/store/runLifecycle.test.ts index b704ba7a..97a7f95d 100644 --- a/src/app/store/runLifecycle.test.ts +++ b/src/app/store/runLifecycle.test.ts @@ -1,57 +1,39 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; + +import type { RendererBridge } from '../../common/rendererBridge'; +import type { CheckOutputResult } from '../../main/checkOutput'; +import type { AlignmentSequence } from '../../main/parseAlignment'; +import { stubBridge, track } from '../../test/storeBridge'; import Run from './Run'; import { runEvents } from './StoreBase'; -let listeners; -let bridge; +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; -function subscribeTo( byName, name ) { - return ( listener ) => { - ( byName[name] ||= [] ).push( listener ); - return () => { - byName[name] = byName[name].filter( ( l ) => l !== listener ); - }; - }; -} +let bridge: RendererBridge; +let fire: ReturnType['fire']; -// The run subscribes to bridge events at construction; keep each listener so a test can fire it. +// The run subscribes to bridge events at construction; stubBridge keeps each listener so a test can fire it. beforeEach( () => { - listeners = {}; - bridge = { + ( { bridge, fire } = stubBridge( { startRun: vi.fn( async () => {} ), startAstral: vi.fn( async () => {} ), cancelRun: vi.fn(), writeFile: vi.fn( async () => {} ), - checkOutput: vi.fn( async () => ( { ok: true, resultFilenames: ['out.tre'] } ) ), + checkOutput: vi.fn( async () => ( { ok: true, resultFilenames: ['out.tre'] } as CheckOutputResult ) ), parseAlignment: () => new Promise( () => {} ), - }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = subscribeTo( listeners, name ); - } - window.rendererBridge = bridge; + } ) ); } ); -function fire( name, payload ) { - ( listeners[name] || [] ).forEach( ( listener ) => listener( payload ) ); -} - -// Records every value a reaction sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - function makeRun( { numSequences = 4 } = {} ) { const parent = { onError: vi.fn() }; - const run = new Run( parent, 7 ); + const run = new Run( parent as Partial as RunParent, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); run.alignments[0].sequences = Array.from( { length: numSequences }, ( _, i ) => ( { taxon: `T${i}`, - } ) ); + } ) ) as AlignmentSequence[]; run.setOutputDir( '/out' ); return { run, parent }; } @@ -66,7 +48,7 @@ describe( 'start', () => { expect( run.running ).toBe( true ); expect( bridge.startRun ).toHaveBeenCalledTimes( 1 ); - expect( bridge.startRun.mock.calls[0][0] ).toMatchObject( { + expect( vi.mocked( bridge.startRun ).mock.calls[0][0] ).toMatchObject( { id: 7, binaryName: run.binary.value, outputDir: '/out', @@ -102,7 +84,7 @@ describe( 'start', () => { ok: false, outputNameUnused: 'primates_2', resultFilenames: [], - } ) ); + } as CheckOutputResult ) ); const name = track( () => run.outputName ); const safe = track( () => run.outputNameSafe ); await new Promise( ( resolve ) => setTimeout( resolve, 0 ) ); @@ -217,7 +199,7 @@ describe( 'finish', () => { const { run } = makeRun(); const files = track( () => run.resultFilenames ); await new Promise( ( resolve ) => setTimeout( resolve, 0 ) ); - const before = bridge.checkOutput.mock.calls.length; + const before = vi.mocked( bridge.checkOutput ).mock.calls.length; fire( runEvents.onRunFinished, { id: 7, @@ -227,7 +209,7 @@ describe( 'finish', () => { } ); await new Promise( ( resolve ) => setTimeout( resolve, 0 ) ); - expect( bridge.checkOutput.mock.calls.length ).toBeGreaterThan( before ); + expect( vi.mocked( bridge.checkOutput ).mock.calls.length ).toBeGreaterThan( before ); expect( files.seen.at( -1 ) ).toEqual( ['out.tre'] ); files.stop(); } ); @@ -291,9 +273,9 @@ describe( 'cancel', () => { it( 'stops a start that is still writing files from starting the run', async () => { const { run } = makeRun(); - let release; + let release: () => void; bridge.writeFile = vi.fn( - () => new Promise( ( resolve ) => { + () => new Promise( ( resolve ) => { release = resolve; } ), ); diff --git a/src/app/store/startRun.test.ts b/src/app/store/startRun.test.ts index db8e40bd..076ddad0 100644 --- a/src/app/store/startRun.test.ts +++ b/src/app/store/startRun.test.ts @@ -1,56 +1,66 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import fs from 'fs'; import os from 'os'; import path from 'path'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type { CheckOutputResult } from '../../main/checkOutput'; +import type { AlignmentSequence } from '../../main/parseAlignment'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; import { runEvents } from './StoreBase'; -function bridge( extra ) { - const listeners = { +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +type Stream = 'stdout' | 'stderr' | 'finished' | 'error'; +// Every bridge listener fits this, whatever payload its event carries. +type Listener = ( payload: never ) => void; + +function bridge( extra: Partial = {} ) { + const listeners: Record = { stdout: [], stderr: [], finished: [], error: [], }; - const stops = []; - const subscribe = ( key ) => ( listener ) => { + const stops: Stream[] = []; + const subscribe = ( key: Stream ) => ( listener: Listener ) => { listeners[key].push( listener ); return () => { stops.push( key ); }; }; - window.rendererBridge = { + installBridge( { [runEvents.onRunStdout]: subscribe( 'stdout' ), [runEvents.onRunStderr]: subscribe( 'stderr' ), [runEvents.onRunFinished]: subscribe( 'finished' ), [runEvents.onRunError]: subscribe( 'error' ), parseAlignment: () => new Promise( () => {} ), - checkOutput: async () => ( { ok: true, resultFilenames: [] } ), + checkOutput: async () => ( { ok: true, resultFilenames: [] } as CheckOutputResult ), writeFile: async () => {}, - cancelRun() {}, + async cancelRun() {}, ...extra, - }; + } ); return { listeners, stops }; } -function emit( list, payload ) { - list.forEach( ( listener ) => listener( payload ) ); +function emit( list: Listener[], payload: unknown ) { + list.forEach( ( listener ) => listener( payload as never ) ); } it( 'startRun starts the run', async () => { const outputDir = fs.mkdtempSync( path.join( os.tmpdir(), 'raxml-run-' ) ); const startRun = vi.fn( async () => {} ); bridge( { startRun } ); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( { onError() {} } as Partial as RunParent, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); run.alignments[0].sequences = [ { taxon: 'A' }, { taxon: 'B' }, { taxon: 'C' }, { taxon: 'D' }, - ]; + ] as AlignmentSequence[]; run.setOutputDir( outputDir ); try { @@ -75,7 +85,7 @@ it( 'startRun starts the run', async () => { it( 'stdout, stderr, finish, and failure update the run', () => { const { listeners, stops } = bridge(); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( { onError() {} } as Partial as RunParent, 7 ); run.running = true; emit( listeners.stdout, { id: 7, content: 'tree\n' } ); @@ -108,7 +118,7 @@ it( 'stdout, stderr, finish, and failure update the run', () => { it( 'alignment output is appended for that alignment', () => { const { listeners } = bridge(); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( { onError() {} } as Partial as RunParent, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); const alignment = run.alignments[0]; From 5e2e1c4defbd93673dd20849da3134ee7420b3c8 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:29:15 +0100 Subject: [PATCH 17/23] Rename the page store option tests to TypeScript --- src/app/store/{InputFile.test.js => InputFile.test.ts} | 0 src/app/store/{Option.test.js => Option.test.ts} | 0 src/app/store/{OutGroup.test.js => OutGroup.test.ts} | 0 src/app/store/{astral.test.js => astral.test.ts} | 0 src/app/store/{loadAstralTree.test.js => loadAstralTree.test.ts} | 0 src/app/store/{loadTree.test.js => loadTree.test.ts} | 0 src/app/store/{modelSelection.test.js => modelSelection.test.ts} | 0 .../{substitutionOptions.test.js => substitutionOptions.test.ts} | 0 .../store/{treeFileOptions.test.js => treeFileOptions.test.ts} | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{InputFile.test.js => InputFile.test.ts} (100%) rename src/app/store/{Option.test.js => Option.test.ts} (100%) rename src/app/store/{OutGroup.test.js => OutGroup.test.ts} (100%) rename src/app/store/{astral.test.js => astral.test.ts} (100%) rename src/app/store/{loadAstralTree.test.js => loadAstralTree.test.ts} (100%) rename src/app/store/{loadTree.test.js => loadTree.test.ts} (100%) rename src/app/store/{modelSelection.test.js => modelSelection.test.ts} (100%) rename src/app/store/{substitutionOptions.test.js => substitutionOptions.test.ts} (100%) rename src/app/store/{treeFileOptions.test.js => treeFileOptions.test.ts} (100%) diff --git a/src/app/store/InputFile.test.js b/src/app/store/InputFile.test.ts similarity index 100% rename from src/app/store/InputFile.test.js rename to src/app/store/InputFile.test.ts diff --git a/src/app/store/Option.test.js b/src/app/store/Option.test.ts similarity index 100% rename from src/app/store/Option.test.js rename to src/app/store/Option.test.ts diff --git a/src/app/store/OutGroup.test.js b/src/app/store/OutGroup.test.ts similarity index 100% rename from src/app/store/OutGroup.test.js rename to src/app/store/OutGroup.test.ts diff --git a/src/app/store/astral.test.js b/src/app/store/astral.test.ts similarity index 100% rename from src/app/store/astral.test.js rename to src/app/store/astral.test.ts diff --git a/src/app/store/loadAstralTree.test.js b/src/app/store/loadAstralTree.test.ts similarity index 100% rename from src/app/store/loadAstralTree.test.js rename to src/app/store/loadAstralTree.test.ts diff --git a/src/app/store/loadTree.test.js b/src/app/store/loadTree.test.ts similarity index 100% rename from src/app/store/loadTree.test.js rename to src/app/store/loadTree.test.ts diff --git a/src/app/store/modelSelection.test.js b/src/app/store/modelSelection.test.ts similarity index 100% rename from src/app/store/modelSelection.test.js rename to src/app/store/modelSelection.test.ts diff --git a/src/app/store/substitutionOptions.test.js b/src/app/store/substitutionOptions.test.ts similarity index 100% rename from src/app/store/substitutionOptions.test.js rename to src/app/store/substitutionOptions.test.ts diff --git a/src/app/store/treeFileOptions.test.js b/src/app/store/treeFileOptions.test.ts similarity index 100% rename from src/app/store/treeFileOptions.test.js rename to src/app/store/treeFileOptions.test.ts From 4b5d66f351e51cbc9fe72507c791aa2c3a09404b Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:29:40 +0100 Subject: [PATCH 18/23] Rename the page store citation, host, menu and small bridge-call tests to .ts --- .../store/{checkOutputName.test.js => checkOutputName.test.ts} | 0 src/app/store/{citationConfig.test.js => citationConfig.test.ts} | 0 src/app/store/{host.test.js => host.test.ts} | 0 src/app/store/{menu.test.js => menu.test.ts} | 0 src/app/store/{openPath.test.js => openPath.test.ts} | 0 src/app/store/{pageStoreGaps.test.js => pageStoreGaps.test.ts} | 0 .../{provideStateReport.test.js => provideStateReport.test.ts} | 0 src/app/store/{readText.test.js => readText.test.ts} | 0 .../store/{selectOutputDir.test.js => selectOutputDir.test.ts} | 0 .../store/{showItemInFolder.test.js => showItemInFolder.test.ts} | 0 src/app/store/{version.test.js => version.test.ts} | 0 11 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{checkOutputName.test.js => checkOutputName.test.ts} (100%) rename src/app/store/{citationConfig.test.js => citationConfig.test.ts} (100%) rename src/app/store/{host.test.js => host.test.ts} (100%) rename src/app/store/{menu.test.js => menu.test.ts} (100%) rename src/app/store/{openPath.test.js => openPath.test.ts} (100%) rename src/app/store/{pageStoreGaps.test.js => pageStoreGaps.test.ts} (100%) rename src/app/store/{provideStateReport.test.js => provideStateReport.test.ts} (100%) rename src/app/store/{readText.test.js => readText.test.ts} (100%) rename src/app/store/{selectOutputDir.test.js => selectOutputDir.test.ts} (100%) rename src/app/store/{showItemInFolder.test.js => showItemInFolder.test.ts} (100%) rename src/app/store/{version.test.js => version.test.ts} (100%) diff --git a/src/app/store/checkOutputName.test.js b/src/app/store/checkOutputName.test.ts similarity index 100% rename from src/app/store/checkOutputName.test.js rename to src/app/store/checkOutputName.test.ts diff --git a/src/app/store/citationConfig.test.js b/src/app/store/citationConfig.test.ts similarity index 100% rename from src/app/store/citationConfig.test.js rename to src/app/store/citationConfig.test.ts diff --git a/src/app/store/host.test.js b/src/app/store/host.test.ts similarity index 100% rename from src/app/store/host.test.js rename to src/app/store/host.test.ts diff --git a/src/app/store/menu.test.js b/src/app/store/menu.test.ts similarity index 100% rename from src/app/store/menu.test.js rename to src/app/store/menu.test.ts diff --git a/src/app/store/openPath.test.js b/src/app/store/openPath.test.ts similarity index 100% rename from src/app/store/openPath.test.js rename to src/app/store/openPath.test.ts diff --git a/src/app/store/pageStoreGaps.test.js b/src/app/store/pageStoreGaps.test.ts similarity index 100% rename from src/app/store/pageStoreGaps.test.js rename to src/app/store/pageStoreGaps.test.ts diff --git a/src/app/store/provideStateReport.test.js b/src/app/store/provideStateReport.test.ts similarity index 100% rename from src/app/store/provideStateReport.test.js rename to src/app/store/provideStateReport.test.ts diff --git a/src/app/store/readText.test.js b/src/app/store/readText.test.ts similarity index 100% rename from src/app/store/readText.test.js rename to src/app/store/readText.test.ts diff --git a/src/app/store/selectOutputDir.test.js b/src/app/store/selectOutputDir.test.ts similarity index 100% rename from src/app/store/selectOutputDir.test.js rename to src/app/store/selectOutputDir.test.ts diff --git a/src/app/store/showItemInFolder.test.js b/src/app/store/showItemInFolder.test.ts similarity index 100% rename from src/app/store/showItemInFolder.test.js rename to src/app/store/showItemInFolder.test.ts diff --git a/src/app/store/version.test.js b/src/app/store/version.test.ts similarity index 100% rename from src/app/store/version.test.js rename to src/app/store/version.test.ts From 5cd3faff42c470a12f32397471ae75d3dff2ae76 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:32:16 +0100 Subject: [PATCH 19/23] Type the page store option tests Co-Authored-By: Claude Sonnet 5.5 --- src/app/store/InputFile.test.ts | 31 +++++++-------- src/app/store/Option.test.ts | 12 +++--- src/app/store/OutGroup.test.ts | 29 ++++++-------- src/app/store/astral.test.ts | 33 ++++++++++------ src/app/store/loadAstralTree.test.ts | 26 +++++++------ src/app/store/loadTree.test.ts | 30 ++++++++------- src/app/store/modelSelection.test.ts | 34 +++++++++------- src/app/store/substitutionOptions.test.ts | 47 ++++++++++------------- src/app/store/treeFileOptions.test.ts | 44 ++++++++++++--------- 9 files changed, 150 insertions(+), 136 deletions(-) diff --git a/src/app/store/InputFile.test.ts b/src/app/store/InputFile.test.ts index 3bfdbebf..3a00f559 100644 --- a/src/app/store/InputFile.test.ts +++ b/src/app/store/InputFile.test.ts @@ -1,30 +1,25 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; + +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; +import { track } from '../../test/storeBridge'; import AstralTree from './AstralTree'; import InputFile from './InputFile'; import StoreBase from './StoreBase'; -let bridge; +let bridge: RendererBridge; beforeEach( () => { - bridge = { + bridge = installBridge( { getVersion: vi.fn( () => Promise.resolve( '2.0.0' ) ), - openPath: vi.fn( () => Promise.resolve() ), + openPath: vi.fn( () => Promise.resolve( '' ) ), showItemInFolder: vi.fn( () => Promise.resolve() ), - }; - window.rendererBridge = bridge; + } ); } ); -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - -const run = { id: 'run1', removeAstralTree: vi.fn() }; +const run = { id: 1, removeAstralTree: vi.fn() }; describe( 'StoreBase', () => { it( 'initialises the version from the renderer bridge', async () => { @@ -65,7 +60,7 @@ describe( 'StoreBase', () => { describe( 'InputFile', () => { it( 'derives its parts from the path', () => { const file = new InputFile( run, '/data/trees/astral.tre' ); - expect( file.id ).toBe( 'run1_/data/trees/astral.tre' ); + expect( file.id ).toBe( '1_/data/trees/astral.tre' ); expect( file.name ).toBe( 'astral' ); expect( file.dir ).toBe( '/data/trees' ); expect( file.base ).toBe( 'astral.tre' ); @@ -79,7 +74,7 @@ describe( 'InputFile', () => { it( 'every computed updates when the path changes', () => { const file = new InputFile( run, '/a/one.tre' ); - const keys = ['id', 'name', 'dir', 'base', 'filename', 'ok']; + const keys = ['id', 'name', 'dir', 'base', 'filename', 'ok'] as const; const tracked = Object.fromEntries( keys.map( ( key ) => [key, track( () => file[key] )] ) ); runInAction( () => { file.path = ''; @@ -87,7 +82,7 @@ describe( 'InputFile', () => { runInAction( () => { file.path = '/b/two.nwk'; } ); - expect( tracked.id.seen ).toEqual( ['run1_/a/one.tre', 'run1_', 'run1_/b/two.nwk'] ); + expect( tracked.id.seen ).toEqual( ['1_/a/one.tre', '1_', '1_/b/two.nwk'] ); expect( tracked.name.seen ).toEqual( ['one', '', 'two'] ); expect( tracked.dir.seen ).toEqual( ['/a', '', '/b'] ); expect( tracked.base.seen ).toEqual( ['one.tre', '', 'two.nwk'] ); diff --git a/src/app/store/Option.test.ts b/src/app/store/Option.test.ts index ef39b147..47428cb6 100644 --- a/src/app/store/Option.test.ts +++ b/src/app/store/Option.test.ts @@ -1,11 +1,11 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; import * as yup from 'yup'; import Option from './Option'; -const positive = () => new Option( null, 2, 'Count', 'desc', 'hover', { +// Typed unknown so the tests can set strings and numbers on one option. +const positive = () => new Option( null, 2, 'Count', 'desc', 'hover', { schema: yup.number().positive(), } ); @@ -31,12 +31,12 @@ it( 'keeps an invalid value as given and reports its error', () => { expect( option.value ).toBe( -1 ); expect( option.error ).toBeInstanceOf( yup.ValidationError ); expect( option.haveError ).toBe( true ); - expect( option.errorMessage ).toBe( option.error.message ); + expect( option.errorMessage ).toBe( ( option.error as yup.ValidationError ).message ); expect( option.errorMessage ).not.toBe( '' ); } ); it( 'ignores an invalid value when only valid changes are allowed', () => { - const option = new Option( null, 'a', 'Name', 'desc', 'hover', { + const option = new Option( null, 'a', 'Name', 'desc', 'hover', { schema: yup.string().max( 3 ), allowOnlyValidChange: true, } ); @@ -47,7 +47,7 @@ it( 'ignores an invalid value when only valid changes are allowed', () => { } ); it( 'accepts any value without a schema', () => { - const option = new Option( null, 'x', 'Title', 'desc', 'hover' ); + const option = new Option( null, 'x', 'Title', 'desc', 'hover' ); option.setValue( 42 ); expect( option.value ).toBe( 42 ); expect( option.error ).toBeNull(); @@ -65,7 +65,7 @@ it( 'resets to the default value', () => { it( 'updates computeds and reactions when value changes', () => { const option = positive(); - const seen = []; + const seen: boolean[][] = []; const dispose = autorun( () => { seen.push( [option.isDefault, option.errorMessage === ''] ); } ); diff --git a/src/app/store/OutGroup.test.ts b/src/app/store/OutGroup.test.ts index cc2c215d..97fab291 100644 --- a/src/app/store/OutGroup.test.ts +++ b/src/app/store/OutGroup.test.ts @@ -1,32 +1,25 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; +import { installBridge } from '../../test/setup'; +import { track } from '../../test/storeBridge'; + +import type Alignment from './Alignment'; +import type Run from './Run'; import RunList from './RunList'; -import { runEvents } from './StoreBase'; -// A run subscribes to bridge events when it is created. +// A run subscribes to bridge events when it is created; the test setup stubs them. beforeEach( () => { - const bridge = { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = () => () => {}; - } - window.rendererBridge = bridge; + installBridge( { cancelRun: vi.fn(), getVersion: () => Promise.resolve( '2.0.0' ) } ); } ); const newRun = () => new RunList().activeRun; -const setAlignments = ( run, taxons ) => runInAction( () => { - run.alignments = [{ taxons }]; +const setAlignments = ( run: Run, taxons: string[] ) => runInAction( () => { + // The out-group reads only taxons from an alignment, so the stand-in is partial. + run.alignments = [{ taxons } as Partial as Alignment]; } ); -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - describe( 'OutGroup', () => { it( 'starts at none', () => { const { outGroup } = newRun(); diff --git a/src/app/store/astral.test.ts b/src/app/store/astral.test.ts index 3f0964e2..0b715272 100644 --- a/src/app/store/astral.test.ts +++ b/src/app/store/astral.test.ts @@ -1,35 +1,44 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type { CheckOutputResult } from '../../main/checkOutput'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; import { runEvents } from './StoreBase'; -function bridge( extra ) { - const listeners = { +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +const parent = { onError() {} } as Partial as RunParent; +// Every bridge listener fits this, whatever payload its event carries. +type Listener = ( payload: never ) => void; + +function bridge( extra: Partial = {} ) { + const listeners: { success: Listener[] } = { success: [], }; - const stops = []; - window.rendererBridge = { - [runEvents.onAstralSuccess]: ( listener ) => { + const stops: string[] = []; + installBridge( { + [runEvents.onAstralSuccess]: ( listener: Listener ) => { listeners.success.push( listener ); return () => { stops.push( 'success' ); }; }, - checkOutput: async () => ( { ok: true, resultFilenames: [] } ), + checkOutput: async () => ( { ok: true, resultFilenames: [] } as CheckOutputResult ), parseAlignment: () => new Promise( () => {} ), ...extra, - }; + } ); return { listeners, stops }; } -function emit( list, payload ) { - list.forEach( ( listener ) => listener( payload ) ); +function emit( list: Listener[], payload: unknown ) { + list.forEach( ( listener ) => listener( payload as never ) ); } it( 'startAstral starts ASTRAL', async () => { const startAstral = vi.fn( async () => {} ); bridge( { startAstral } ); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.setOutputDir( '/out' ); await run.startAstral(); @@ -44,7 +53,7 @@ it( 'startAstral starts ASTRAL', async () => { it( 'an ASTRAL exit code is recorded for that run', () => { const { listeners, stops } = bridge(); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.running = true; run.setOutputDir( '/out' ); diff --git a/src/app/store/loadAstralTree.test.ts b/src/app/store/loadAstralTree.test.ts index 33023b8a..c7c4152a 100644 --- a/src/app/store/loadAstralTree.test.ts +++ b/src/app/store/loadAstralTree.test.ts @@ -1,14 +1,19 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +const parent = {} as Partial as RunParent; + it( 'the ASTRAL file picker adds the chosen file', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); const selectAstralFile = vi.fn( async () => ( { path: '/data/trees.tre', name: 'trees.tre', } ) ); - window.rendererBridge = { selectAstralFile }; + installBridge( { selectAstralFile } ); await run.loadAstralTree(); @@ -17,26 +22,25 @@ it( 'the ASTRAL file picker adds the chosen file', async () => { } ); it( 'cancel leaves the ASTRAL file unchanged', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); run.addAstralFiles( { path: '/data/already.tre' } ); - window.rendererBridge = { - selectAstralFile: vi.fn( async () => null ), - }; + const selectAstralFile = vi.fn( async () => null ); + installBridge( { selectAstralFile } ); await run.loadAstralTree(); - expect( window.rendererBridge.selectAstralFile ).toHaveBeenCalledWith( 7 ); + expect( selectAstralFile ).toHaveBeenCalledWith( 7 ); expect( run.astralTree.path ).toBe( '/data/already.tre' ); } ); it( 'a dialog failure fails the ASTRAL file choice', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); run.addAstralFiles( { path: '/data/already.tre' } ); - window.rendererBridge = { + installBridge( { selectAstralFile: async () => { throw new Error( 'dialog failed' ); }, - }; + } ); await expect( run.loadAstralTree() ).rejects.toThrow( 'dialog failed' ); expect( run.astralTree.path ).toBe( '/data/already.tre' ); diff --git a/src/app/store/loadTree.test.ts b/src/app/store/loadTree.test.ts index d4ce74ea..30849d03 100644 --- a/src/app/store/loadTree.test.ts +++ b/src/app/store/loadTree.test.ts @@ -1,14 +1,19 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +const parent = {} as Partial as RunParent; + it( 'each tree picker keeps the chosen file', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); const selectTree = vi.fn() .mockResolvedValueOnce( { type: 'tree', filePath: '/data/start.nwk' } ) .mockResolvedValueOnce( { type: 'backboneConstraint', filePath: '/data/backbone.nwk' } ) .mockResolvedValueOnce( { type: 'multifurcatingConstraint', filePath: '/data/multi.nwk' } ); - window.rendererBridge = { selectTree }; + installBridge( { selectTree } ); await run.loadTreeFile(); await run.loadBackboneConstraintFile(); @@ -23,32 +28,31 @@ it( 'each tree picker keeps the chosen file', async () => { } ); it( 'cancel leaves the trees unchanged', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); run.tree.setFilePath( '/data/already.nwk' ); - window.rendererBridge = { - selectTree: vi.fn( async () => null ), - }; + const selectTree = vi.fn( async () => null ); + installBridge( { selectTree } ); await run.loadTreeFile(); await run.loadBackboneConstraintFile(); await run.loadMultifurcatingConstraintFile(); - expect( window.rendererBridge.selectTree ).toHaveBeenCalledWith( 7, 'tree' ); - expect( window.rendererBridge.selectTree ).toHaveBeenCalledWith( 7, 'backboneConstraint' ); - expect( window.rendererBridge.selectTree ).toHaveBeenCalledWith( 7, 'multifurcatingConstraint' ); + expect( selectTree ).toHaveBeenCalledWith( 7, 'tree' ); + expect( selectTree ).toHaveBeenCalledWith( 7, 'backboneConstraint' ); + expect( selectTree ).toHaveBeenCalledWith( 7, 'multifurcatingConstraint' ); expect( run.tree.filePath ).toBe( '/data/already.nwk' ); expect( run.backboneConstraint.filePath ).toBe( '' ); expect( run.multifurcatingConstraint.filePath ).toBe( '' ); } ); it( 'a dialog failure fails the tree choice', async () => { - const run = new Run( {}, 7 ); + const run = new Run( parent, 7 ); run.tree.setFilePath( '/data/already.nwk' ); - window.rendererBridge = { + installBridge( { selectTree: async () => { throw new Error( 'dialog failed' ); }, - }; + } ); await expect( run.loadTreeFile() ).rejects.toThrow( 'dialog failed' ); expect( run.tree.filePath ).toBe( '/data/already.nwk' ); diff --git a/src/app/store/modelSelection.test.ts b/src/app/store/modelSelection.test.ts index c3aaae9f..bfebea97 100644 --- a/src/app/store/modelSelection.test.ts +++ b/src/app/store/modelSelection.test.ts @@ -1,38 +1,46 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; import { runEvents } from './StoreBase'; -function bridge( extra ) { - const listeners = { +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +const parent = { onError() {} } as Partial as RunParent; +// Every bridge listener fits this, whatever payload its event carries. +type Listener = ( payload: never ) => void; + +function bridge( extra: Partial = {} ) { + const listeners: Record<'success' | 'failure', Listener[]> = { success: [], failure: [], }; - const stops = []; - const subscribe = ( key ) => ( listener ) => { + const stops: string[] = []; + const subscribe = ( key: 'success' | 'failure' ) => ( listener: Listener ) => { listeners[key].push( listener ); return () => { stops.push( key ); }; }; - window.rendererBridge = { + installBridge( { parseAlignment: () => new Promise( () => {} ), [runEvents.onModelSelectionSuccess]: subscribe( 'success' ), [runEvents.onModelSelectionFailure]: subscribe( 'failure' ), ...extra, - }; + } ); return { listeners, stops }; } -function emit( list, payload ) { - list.forEach( ( listener ) => listener( payload ) ); +function emit( list: Listener[], payload: unknown ) { + list.forEach( ( listener ) => listener( payload as never ) ); } it( 'startModelSelection starts model selection', async () => { const startModelSelection = vi.fn( async () => {} ); bridge( { startModelSelection } ); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.setOutputDir( '/out' ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); const alignment = run.alignments[0]; @@ -56,7 +64,7 @@ it( 'startModelSelection starts model selection', async () => { it( 'a model selection result sets the model', () => { const { listeners, stops } = bridge(); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.running = true; run.addAlignments( [{ path: '/data/primates.fasta' }] ); const alignment = run.alignments[0]; @@ -80,7 +88,7 @@ it( 'a model selection result sets the model', () => { it( 'the model-selection cancel control uses cancelModelSelection', () => { const cancelModelSelection = vi.fn(); bridge( { cancelModelSelection } ); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); const alignment = run.alignments[0]; alignment.modeltestLoading = true; @@ -93,7 +101,7 @@ it( 'the model-selection cancel control uses cancelModelSelection', () => { it( 'a model selection failure shows the error', () => { const { listeners } = bridge(); - const run = new Run( { onError() {} }, 7 ); + const run = new Run( parent, 7 ); run.running = true; run.addAlignments( [{ path: '/data/primates.fasta' }] ); const alignment = run.alignments[0]; diff --git a/src/app/store/substitutionOptions.test.ts b/src/app/store/substitutionOptions.test.ts index 4b43122d..1330eefe 100644 --- a/src/app/store/substitutionOptions.test.ts +++ b/src/app/store/substitutionOptions.test.ts @@ -1,36 +1,36 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it } from 'vitest'; -import { autorun, runInAction } from 'mobx'; +import { runInAction } from 'mobx'; + +import type { DataType } from '../../common/typecheckAlignment'; +import { installBridge } from '../../test/setup'; +import { track } from '../../test/storeBridge'; import Run from './Run'; -// Run's constructor subscribes to bridge events; a no-op stub is enough here. beforeEach( () => { - window.rendererBridge = new Proxy( {}, { - get: ( _, name ) => { - if ( name === 'getVersion' ) { - return () => Promise.resolve( '2.0.0' ); - } - // A load that never settles keeps the test in control of dataType. - return name === 'parseAlignment' - ? () => new Promise( () => {} ) - : () => () => {}; - }, + installBridge( { + getVersion: () => Promise.resolve( '2.0.0' ), + // A load that never settles keeps the test in control of dataType. + parseAlignment: () => new Promise( () => {} ), } ); } ); -const binaryNamed = ( run, prefix ) => run.binary.options - .map( ( o ) => o.value ).find( ( v ) => v.startsWith( prefix ) ); -const ngName = () => binaryNamed( new Run( { onError() {} }, 1 ), 'raxml-ng' ); +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; +const parent = { onError() {} } as Partial as RunParent; + +const binaryNamed = ( run: Run, prefix: string ) => run.binary.options + .map( ( o ) => o.value ).find( ( v: string ) => v.startsWith( prefix ) ); +const ngName = () => binaryNamed( new Run( parent, 1 ), 'raxml-ng' ); // The default binary depends on the host platform, so pin a classic RAxML one. function newRun() { - const run = new Run( { onError() {} }, 1 ); + const run = new Run( parent, 1 ); run.binary.setValue( binaryNamed( run, 'raxmlHPC' ) ); return run; } -function makeRun( dataType = 'nucleotide' ) { +function makeRun( dataType: DataType = 'nucleotide' ) { const run = newRun(); run.addAlignments( [{ path: '/data/a.fasta' }] ); runInAction( () => { @@ -39,13 +39,6 @@ function makeRun( dataType = 'nucleotide' ) { return run; } -// Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; - const stop = autorun( () => seen.push( fn() ) ); - return { seen, stop }; -} - const noAlignmentRun = newRun; describe( 'SubstitutionMatrix', () => { @@ -81,7 +74,7 @@ describe( 'SubstitutionMatrix', () => { run.alignments[0].dataType = 'nucleotide'; } ); expect( run.substitutionMatrix.notAvailable ).toBe( false ); - for ( const type of ['binary', 'protein', 'multistate'] ) { + for ( const type of ['binary', 'protein', 'multistate'] as DataType[] ) { runInAction( () => { run.alignments[0].dataType = type; } ); @@ -104,7 +97,7 @@ describe( 'SubstitutionMatrix', () => { run.substitutionMatrix.setValue( value ); expect( run.substitutionMatrix.cmdValue ).toBe( cmd ); } - for ( const [type, cmd] of [['binary', 'BIN'], ['protein', 'PROT'], ['multistate', 'MULTI']] ) { + for ( const [type, cmd] of [['binary', 'BIN'], ['protein', 'PROT'], ['multistate', 'MULTI']] as [DataType, string][] ) { runInAction( () => { run.alignments[0].dataType = type; } ); diff --git a/src/app/store/treeFileOptions.test.ts b/src/app/store/treeFileOptions.test.ts index 370ba6d9..62b641c7 100644 --- a/src/app/store/treeFileOptions.test.ts +++ b/src/app/store/treeFileOptions.test.ts @@ -1,35 +1,43 @@ -// @ts-nocheck — the test is not typed yet. import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import type { Mock } from 'vitest'; import { autorun, runInAction } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; -const files = [ +// The run reads only onError from its parent here, so the stand-in is partial. +type RunParent = ConstructorParameters[0]; + +type TreeKey = 'tree' | 'backboneConstraint' | 'multifurcatingConstraint'; + +const files: [TreeKey, string][] = [ [ 'tree', '/data/start.nwk' ], [ 'backboneConstraint', '/data/backbone.tre' ], [ 'multifurcatingConstraint', '/data/multi.tre' ], ]; -let showItemInFolder; -let openPath; -let selectTree; -let run; -let disposers; +let showItemInFolder: Mock; +let openPath: Mock; +let selectTree: Mock; +let run: Run; +let disposers: ( () => void )[]; // Records every value an autorun sees, so a test can prove it re-ran. // Run.analysis is a computed that builds a new option; observing it keeps the set value. -function observe( fn ) { - const seen = []; +function observe( fn: () => unknown ) { + const seen: unknown[] = []; disposers.push( autorun( () => seen.push( fn() ) ) ); return { seen }; } beforeEach( () => { showItemInFolder = vi.fn( async () => {} ); - openPath = vi.fn( async () => {} ); + openPath = vi.fn( async () => '' ); selectTree = vi.fn(); - window.rendererBridge = { showItemInFolder, openPath, selectTree }; - run = new Run( {}, 3 ); + installBridge( { showItemInFolder, openPath, selectTree } ); + run = new Run( {} as Partial as RunParent, 3 ); disposers = []; // The default binary is raxml-ng; these tests use the classic RAxML analyses. run.binary.setValue( run.binary.options.find( ( { value } ) => value.includes( 'raxmlHPC' ) ).value ); @@ -128,13 +136,13 @@ describe( 'Tree notAvailable', () => { describe.each( [ [ 'backboneConstraint', 'useBackboneConstraint', 'onBackboneConstraint' ], [ 'multifurcatingConstraint', 'useMultifurcatingConstraint', 'onMultifurcatingConstraint' ], -] )( '%s toggle', ( key, flag, toggle ) => { +] as [Exclude, 'useBackboneConstraint' | 'useMultifurcatingConstraint', 'onBackboneConstraint' | 'onMultifurcatingConstraint'][] )( '%s toggle', ( key, flag, toggle ) => { const option = () => run[key]; it( 'notAvailable follows the toggle', () => { const { seen } = observe( () => option().notAvailable ); - run[toggle](); - run[toggle](); + run[toggle]( null, null ); + run[toggle]( null, null ); expect( seen ).toEqual( [ true, false, true ] ); } ); @@ -149,11 +157,11 @@ describe.each( [ it( 'isSet needs the toggle and a file', () => { const { seen } = observe( () => option().isSet ); - run[toggle](); + run[toggle]( null, null ); option().setFilePath( '/data/c.tre' ); - run[toggle](); + run[toggle]( null, null ); option().remove(); - run[toggle](); + run[toggle]( null, null ); // the computed only notifies when its value changes expect( seen ).toEqual( [ false, true, false ] ); } ); From 74313e3246d11306713f4aa20d562b4ceb432126 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:32:27 +0100 Subject: [PATCH 20/23] Type the page store citation, host, menu and small bridge-call tests (#306) Co-Authored-By: Claude Sonnet 5.5 --- src/app/store/checkOutputName.test.ts | 9 ++-- src/app/store/citationConfig.test.ts | 58 ++++++++++++------------ src/app/store/host.test.ts | 34 +++++++++----- src/app/store/menu.test.ts | 36 ++++++--------- src/app/store/openPath.test.ts | 13 ++++-- src/app/store/pageStoreGaps.test.ts | 13 +++--- src/app/store/provideStateReport.test.ts | 5 +- src/app/store/readText.test.ts | 9 ++-- src/app/store/selectOutputDir.test.ts | 21 +++++---- src/app/store/showItemInFolder.test.ts | 17 ++++--- src/app/store/version.test.ts | 5 +- 11 files changed, 121 insertions(+), 99 deletions(-) diff --git a/src/app/store/checkOutputName.test.ts b/src/app/store/checkOutputName.test.ts index 5b0c6e91..e31019aa 100644 --- a/src/app/store/checkOutputName.test.ts +++ b/src/app/store/checkOutputName.test.ts @@ -1,8 +1,11 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { when } from 'mobx'; +import { installBridge } from '../../test/setup'; import Run from './Run'; +// The run reads nothing from its parent here, so the stand-in is empty. +type RunParent = ConstructorParameters[0]; + it( 'the output-name check uses checkOutput', async () => { const checkOutput = vi.fn( async () => ( { outputDir: '/data/out', @@ -12,8 +15,8 @@ it( 'the output-name check uses checkOutput', async () => { outputNameUnused: 'tree_1', resultFilenames: ['tree.raxml.log'], } ) ); - window.rendererBridge = { checkOutput }; - const run = new Run( {}, 7 ); + installBridge( { checkOutput } ); + const run = new Run( {} as RunParent, 7 ); run.setOutputDir( '/data/out' ); run.setOutputName( 'tree' ); diff --git a/src/app/store/citationConfig.test.ts b/src/app/store/citationConfig.test.ts index 04c7fc78..85e04e7a 100644 --- a/src/app/store/citationConfig.test.ts +++ b/src/app/store/citationConfig.test.ts @@ -1,41 +1,41 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; import { reaction, runInAction } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { stubBridge } from '../../test/storeBridge'; + import AppStore from './AppStore'; -let listeners; -let bridge; +let bridge: RendererBridge; +let fire: ReturnType['fire']; +let listeners: ReturnType['listeners']; +// The page store subscribes to the theme events; stubBridge keeps each listener so a test can fire it. beforeEach( () => { - listeners = {}; - const subscribe = ( key ) => vi.fn( ( listener ) => { - listeners[key] = listener; - return () => { - delete listeners[key]; - }; - } ); - bridge = { + ( { bridge, fire, listeners } = stubBridge( { getVersion: vi.fn( async () => '2.0.0' ), getDarkMode: vi.fn( async () => false ), setDarkMode: vi.fn( async () => {} ), copyText: vi.fn( async () => {} ), - onLightMode: subscribe( 'light' ), - onDarkMode: subscribe( 'dark' ), - }; - window.rendererBridge = bridge; + } ) ); } ); -async function settle() { - await Promise.all( bridge.getDarkMode.mock.results.map( ( r ) => r.value ) ); +// The events that still have a live listener. +function subscribed() { + return Object.entries( listeners ).filter( ( [ , live ] ) => live.length ).map( ( [ name ] ) => name ).sort(); } -function track( expression ) { - const seen = []; +// Unlike the shared track, this records only changes, not the initial value. +function track( expression: () => T ) { + const seen: T[] = []; const stop = reaction( expression, ( value ) => seen.push( value ) ); return { seen, stop }; } +async function settle() { + await Promise.all( vi.mocked( bridge.getDarkMode ).mock.results.map( ( r ) => r.value ) ); +} + describe( 'citation', () => { it( 'offers plain text, RIS and BibTeX, plain text first', () => { const { citation } = new AppStore(); @@ -116,13 +116,13 @@ describe( 'citation', () => { citation.setFormat( 'bib' ); await citation.copyToClipboard(); expect( bridge.copyText ).toHaveBeenCalledWith( citation.allText ); - expect( bridge.copyText.mock.calls[0][0] ).toContain( '@article{' ); + expect( vi.mocked( bridge.copyText ).mock.calls[0][0] ).toContain( '@article{' ); } ); } ); describe( 'config dark mode', () => { it( 'starts light and loads dark mode from the renderer bridge', async () => { - bridge.getDarkMode.mockImplementation( async () => 1 ); + vi.mocked( bridge.getDarkMode ).mockImplementation( async () => 1 as unknown as boolean ); const { config } = new AppStore(); expect( config.isDarkMode ).toBe( false ); await settle(); @@ -130,7 +130,7 @@ describe( 'config dark mode', () => { } ); it( 'a falsy loaded value stays light', async () => { - bridge.getDarkMode.mockImplementation( async () => undefined ); + vi.mocked( bridge.getDarkMode ).mockImplementation( async () => undefined as unknown as boolean ); const { config } = new AppStore(); await settle(); expect( config.isDarkMode ).toBe( false ); @@ -141,8 +141,10 @@ describe( 'config dark mode', () => { await settle(); const { seen, stop } = track( () => config.isDarkMode ); + // @ts-expect-error the page passes a non-boolean on purpose; the runtime guard coerces it config.setDarkMode( 'yes' ); expect( config.isDarkMode ).toBe( true ); + // @ts-expect-error the page passes a non-boolean on purpose; the runtime guard coerces it config.setDarkMode( 0 ); expect( config.isDarkMode ).toBe( false ); runInAction( () => { @@ -151,26 +153,26 @@ describe( 'config dark mode', () => { stop(); expect( seen ).toEqual( [true, false, true] ); - expect( bridge.setDarkMode.mock.calls ).toEqual( [[true], [false]] ); + expect( vi.mocked( bridge.setDarkMode ).mock.calls ).toEqual( [[true], [false]] ); } ); it( 'dark and light menu events switch the theme', async () => { const { config } = new AppStore(); await settle(); - listeners.dark(); + fire( 'onDarkMode' ); expect( config.isDarkMode ).toBe( true ); - listeners.light(); + fire( 'onLightMode' ); expect( config.isDarkMode ).toBe( false ); - expect( bridge.setDarkMode.mock.calls ).toEqual( [[true], [false]] ); + expect( vi.mocked( bridge.setDarkMode ).mock.calls ).toEqual( [[true], [false]] ); } ); it( 'dispose stops listening for menu events', async () => { const { config } = new AppStore(); await settle(); - expect( Object.keys( listeners ).sort() ).toEqual( ['dark', 'light'] ); + expect( subscribed() ).toEqual( ['onDarkMode', 'onLightMode'] ); config.dispose(); - expect( listeners ).toEqual( {} ); + expect( subscribed() ).toEqual( [] ); } ); } ); diff --git a/src/app/store/host.test.ts b/src/app/store/host.test.ts index e3292f10..2e9d8b12 100644 --- a/src/app/store/host.test.ts +++ b/src/app/store/host.test.ts @@ -1,18 +1,30 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; -function install( host ) { +import type { HostInfo } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + +import type Alignment from './Alignment'; +import type Run from './Run'; + +// The run and the alignment read only the host here, so their owners are empty stand-ins. +type RunParent = ConstructorParameters[0]; +type AlignmentOwner = ConstructorParameters[0]; + +function install( host: HostInfo ) { let reads = 0; const bridge = { - parseAlignment: () => new Promise( () => {} ), + parseAlignment: () => new Promise( () => {} ), }; + // A getter counts the reads; installBridge copies it without reading it. Object.defineProperty( bridge, 'host', { + configurable: true, + enumerable: true, get() { reads += 1; return host; }, } ); - window.rendererBridge = bridge; + installBridge( bridge ); return () => reads; } @@ -31,8 +43,8 @@ it( 'reads the host once and uses it for Windows 7', async () => { cpuModel: 'Intel', } ); const { Run, Alignment } = await load(); - const run = new Run( {}, 7 ); - const alignment = new Alignment( { id: 7 }, '/data/primates.fasta' ); + const run = new Run( {} as RunParent, 7 ); + const alignment = new Alignment( { id: 7 } as AlignmentOwner, '/data/primates.fasta' ); expect( reads() ).toBe( 1 ); expect( run.binary.options.map( ( option ) => option.value ) ).toContain( 'raxmlHPC_Win7.exe' ); @@ -48,8 +60,8 @@ it( 'uses the later Windows binaries when the release is not 6.1', async () => { cpuModel: 'Intel', } ); const { Run, Alignment } = await load(); - const run = new Run( {}, 7 ); - const alignment = new Alignment( { id: 7 }, '/data/primates.fasta' ); + const run = new Run( {} as RunParent, 7 ); + const alignment = new Alignment( { id: 7 } as AlignmentOwner, '/data/primates.fasta' ); expect( run.binary.options.map( ( option ) => option.value ) ).toContain( 'raxmlHPC.exe' ); expect( run.binary.options.map( ( option ) => option.value ) ).not.toContain( 'raxmlHPC_Win7.exe' ); @@ -64,7 +76,7 @@ it( 'picks the arm modeltest binary from the arch or the cpu model', async () => cpuModel: 'Intel', } ); let { Run } = await load(); - expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); + expect( new Run( {} as RunParent, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); install( { windows: false, @@ -73,7 +85,7 @@ it( 'picks the arm modeltest binary from the arch or the cpu model', async () => cpuModel: 'Apple M4', } ); ( { Run } = await load() ); - expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); + expect( new Run( {} as RunParent, 7 ).modeltestName ).toBe( 'modeltest-ng-ARM64' ); install( { windows: false, @@ -82,5 +94,5 @@ it( 'picks the arm modeltest binary from the arch or the cpu model', async () => cpuModel: 'Intel', } ); ( { Run } = await load() ); - expect( new Run( {}, 7 ).modeltestName ).toBe( 'modeltest-ng' ); + expect( new Run( {} as RunParent, 7 ).modeltestName ).toBe( 'modeltest-ng' ); } ); diff --git a/src/app/store/menu.test.ts b/src/app/store/menu.test.ts index 2522906d..e465d6eb 100644 --- a/src/app/store/menu.test.ts +++ b/src/app/store/menu.test.ts @@ -1,46 +1,36 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it } from 'vitest'; + +import { stubBridge } from '../../test/storeBridge'; + import RunList from './RunList'; +// The run list subscribes to the menu events; stubBridge keeps each listener so a test can fire it. function bridge() { - const listeners = {}; - const subscribe = ( key ) => ( listener ) => { - listeners[key] = listener; - return () => {}; - }; - window.rendererBridge = { - onAddRun: subscribe( 'add' ), - onRemoveRun: subscribe( 'remove' ), - onLightMode: subscribe( 'light' ), - onDarkMode: subscribe( 'dark' ), - onToggleBackboneConstraint: subscribe( 'backbone' ), - onToggleMultifurcatingConstraint: subscribe( 'multifurcating' ), - }; - return listeners; + return stubBridge().fire; } it( 'onAddRun and onRemoveRun update the page runs', () => { - const listeners = bridge(); + const fire = bridge(); const runs = new RunList(); - listeners.add(); + fire( 'onAddRun' ); expect( runs.runs ).toHaveLength( 2 ); - listeners.remove(); + fire( 'onRemoveRun' ); expect( runs.runs ).toHaveLength( 1 ); } ); it( 'onToggleBackboneConstraint and onToggleMultifurcatingConstraint update those constraints', () => { - const listeners = bridge(); + const fire = bridge(); const runs = new RunList(); - listeners.backbone(); + fire( 'onToggleBackboneConstraint' ); expect( runs.activeRun.useBackboneConstraint ).toBe( true ); - listeners.backbone(); + fire( 'onToggleBackboneConstraint' ); expect( runs.activeRun.useBackboneConstraint ).toBe( false ); - listeners.multifurcating(); + fire( 'onToggleMultifurcatingConstraint' ); expect( runs.activeRun.useMultifurcatingConstraint ).toBe( true ); - listeners.multifurcating(); + fire( 'onToggleMultifurcatingConstraint' ); expect( runs.activeRun.useMultifurcatingConstraint ).toBe( false ); } ); diff --git a/src/app/store/openPath.test.ts b/src/app/store/openPath.test.ts index 95b05a0b..e59af94d 100644 --- a/src/app/store/openPath.test.ts +++ b/src/app/store/openPath.test.ts @@ -1,11 +1,14 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; import Run from './Run'; +// The run reads nothing from its parent here, so the stand-in is empty. +type RunParent = ConstructorParameters[0]; + it( 'opens a result file through the renderer bridge', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); const openPath = vi.fn( async () => '' ); - window.rendererBridge = { openPath }; + installBridge( { openPath } ); await run.openFile( '/data/results/tree.raxml.bestTree' ); @@ -13,10 +16,10 @@ it( 'opens a result file through the renderer bridge', async () => { } ); it( 'opens the output directory through the renderer bridge', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.setOutputDir( '/data/results' ); const openPath = vi.fn( async () => '' ); - window.rendererBridge = { openPath }; + installBridge( { openPath } ); await run.openOutputDir(); diff --git a/src/app/store/pageStoreGaps.test.ts b/src/app/store/pageStoreGaps.test.ts index 6fca23f2..30936e2f 100644 --- a/src/app/store/pageStoreGaps.test.ts +++ b/src/app/store/pageStoreGaps.test.ts @@ -1,18 +1,19 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun, runInAction } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; import RunList from './RunList'; -let bridge; +let bridge: RendererBridge; beforeEach( () => { - bridge = { + bridge = installBridge( { cancelModelSelection: vi.fn(), parseAlignment: () => new Promise( () => {} ), - }; - window.rendererBridge = bridge; + } ); } ); function makeRun() { @@ -84,7 +85,7 @@ describe( 'disableCheckUndeterminedSequence', () => { // analysis is a computed that builds its option; keep it observed so a set value sticks. const keepAnalysis = autorun( () => run.analysis ); runInAction( () => { run.analysis.value = 'FT'; } ); - const seen = []; + const seen: boolean[] = []; const stop = autorun( () => seen.push( run.args.flat().includes( '-O' ) ) ); runInAction( () => { run.disableCheckUndeterminedSequence = false; } ); diff --git a/src/app/store/provideStateReport.test.ts b/src/app/store/provideStateReport.test.ts index 537124e2..9e224bb0 100644 --- a/src/app/store/provideStateReport.test.ts +++ b/src/app/store/provideStateReport.test.ts @@ -1,9 +1,10 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; + it( 'provideStateReport registers the store report once', async () => { const provideStateReport = vi.fn(); - window.rendererBridge = { provideStateReport }; + installBridge( { provideStateReport } ); vi.resetModules(); const store = ( await import( './index' ) ).default; diff --git a/src/app/store/readText.test.ts b/src/app/store/readText.test.ts index 62e4b162..35141277 100644 --- a/src/app/store/readText.test.ts +++ b/src/app/store/readText.test.ts @@ -1,11 +1,14 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; import Run from './Run'; +// The run reads nothing from its parent here, so the stand-in is empty. +type RunParent = ConstructorParameters[0]; + it( 'reads a text file through the renderer bridge', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); const readFile = vi.fn( async () => 'DNA, gene = 1-100\n' ); - window.rendererBridge = { readFile }; + installBridge( { readFile } ); await run.addPartitionFiles( [{ path: '/data/genes.part' }] ); diff --git a/src/app/store/selectOutputDir.test.ts b/src/app/store/selectOutputDir.test.ts index 59f739c5..c8b4c1f4 100644 --- a/src/app/store/selectOutputDir.test.ts +++ b/src/app/store/selectOutputDir.test.ts @@ -1,11 +1,14 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; import Run from './Run'; +// The run reads nothing from its parent here, so the stand-in is empty. +type RunParent = ConstructorParameters[0]; + it( 'the output-directory picker sets the chosen directory', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); const selectOutputDir = vi.fn( async () => '/data/results' ); - window.rendererBridge = { selectOutputDir }; + installBridge( { selectOutputDir } ); await run.selectOutputDir(); @@ -14,11 +17,11 @@ it( 'the output-directory picker sets the chosen directory', async () => { } ); it( 'cancel leaves the output directory unchanged', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.setOutputDir( '/data/already' ); - window.rendererBridge = { + installBridge( { selectOutputDir: vi.fn( async () => null ), - }; + } ); await run.selectOutputDir(); @@ -27,13 +30,13 @@ it( 'cancel leaves the output directory unchanged', async () => { } ); it( 'a dialog failure fails the output-directory choice', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.setOutputDir( '/data/already' ); - window.rendererBridge = { + installBridge( { selectOutputDir: async () => { throw new Error( 'dialog failed' ); }, - }; + } ); await expect( run.selectOutputDir() ).rejects.toThrow( 'dialog failed' ); expect( run.outputDir ).toBe( '/data/already' ); diff --git a/src/app/store/showItemInFolder.test.ts b/src/app/store/showItemInFolder.test.ts index 90e6cd03..ffd1069e 100644 --- a/src/app/store/showItemInFolder.test.ts +++ b/src/app/store/showItemInFolder.test.ts @@ -1,13 +1,16 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; import { runInAction } from 'mobx'; +import { installBridge } from '../../test/setup'; import Run from './Run'; +// The run reads nothing from its parent here, so the stand-in is empty. +type RunParent = ConstructorParameters[0]; + it( 'shows a tree file in its folder', async () => { - const run = new Run( {}, 7 ); + const run = new Run( {} as RunParent, 7 ); run.tree.setFilePath( '/data/start.nwk' ); const showItemInFolder = vi.fn( async () => {} ); - window.rendererBridge = { showItemInFolder }; + installBridge( { showItemInFolder } ); await run.tree.openFolder(); @@ -15,8 +18,8 @@ it( 'shows a tree file in its folder', async () => { } ); it( 'shows the concatenated alignment in its folder', async () => { - const run = new Run( {}, 7 ); - window.rendererBridge = { parseAlignment: () => new Promise( () => {} ) }; + const run = new Run( {} as RunParent, 7 ); + installBridge( { parseAlignment: () => new Promise( () => {} ) } ); run.addAlignments( [ { path: '/data/a.fasta' } ] ); runInAction( () => { run.alignments[0].sequences = [ @@ -26,10 +29,10 @@ it( 'shows the concatenated alignment in its folder', async () => { run.alignments[0].length = 2; } ); const showItemInFolder = vi.fn( async () => {} ); - window.rendererBridge = { + installBridge( { writeFile: vi.fn( async () => {} ), showItemInFolder, - }; + } ); await run.finalAlignment.showFileInFolder(); diff --git a/src/app/store/version.test.ts b/src/app/store/version.test.ts index 73699018..34d90567 100644 --- a/src/app/store/version.test.ts +++ b/src/app/store/version.test.ts @@ -1,10 +1,11 @@ -// @ts-nocheck — the test is not typed yet. import { expect, it, vi } from 'vitest'; +import { installBridge } from '../../test/setup'; + import AppStore from './AppStore'; it( 'the page learns the app version from getVersion', async () => { const getVersion = vi.fn( async () => '2.0.18' ); - window.rendererBridge = { getVersion }; + installBridge( { getVersion } ); const store = new AppStore(); await Promise.all( getVersion.mock.results.map( ( result ) => result.value ) ); From f28108797b3ba0098d6f49d3dd4322ab4ddfb101 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:39:04 +0100 Subject: [PATCH 21/23] Rename the page store run computeds, options and input-action tests to .ts --- src/app/store/{Run.computeds.test.js => Run.computeds.test.ts} | 0 .../store/{RunSimpleOptions.test.js => RunSimpleOptions.test.ts} | 0 .../store/{runInputActions.test.js => runInputActions.test.ts} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/app/store/{Run.computeds.test.js => Run.computeds.test.ts} (100%) rename src/app/store/{RunSimpleOptions.test.js => RunSimpleOptions.test.ts} (100%) rename src/app/store/{runInputActions.test.js => runInputActions.test.ts} (100%) diff --git a/src/app/store/Run.computeds.test.js b/src/app/store/Run.computeds.test.ts similarity index 100% rename from src/app/store/Run.computeds.test.js rename to src/app/store/Run.computeds.test.ts diff --git a/src/app/store/RunSimpleOptions.test.js b/src/app/store/RunSimpleOptions.test.ts similarity index 100% rename from src/app/store/RunSimpleOptions.test.js rename to src/app/store/RunSimpleOptions.test.ts diff --git a/src/app/store/runInputActions.test.js b/src/app/store/runInputActions.test.ts similarity index 100% rename from src/app/store/runInputActions.test.js rename to src/app/store/runInputActions.test.ts From 74c717ff4559d30949beeb7870004d382145510d Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 20:41:06 +0100 Subject: [PATCH 22/23] Type the page store run computeds, options and input-action tests Co-Authored-By: Claude Sonnet 5.5 --- src/app/store/Run.computeds.test.ts | 47 +++++++++---------- src/app/store/RunSimpleOptions.test.ts | 24 +++++----- src/app/store/runInputActions.test.ts | 62 +++++++++++++++----------- 3 files changed, 72 insertions(+), 61 deletions(-) diff --git a/src/app/store/Run.computeds.test.ts b/src/app/store/Run.computeds.test.ts index 65270530..8ff8d7a7 100644 --- a/src/app/store/Run.computeds.test.ts +++ b/src/app/store/Run.computeds.test.ts @@ -1,34 +1,35 @@ -// @ts-nocheck — the test is not typed yet. import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import type { Mock } from 'vitest'; import { autorun, runInAction } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type { CheckOutputResult } from '../../main/checkOutput'; +import { installBridge } from '../../test/setup'; + +import type Alignment from './Alignment'; +import type AstralTree from './AstralTree'; import Run from './Run'; import { analysisOptions, binaries } from './RunOptions'; -import { runEvents } from './StoreBase'; const modeltestName = binaries.find( ( b ) => b.type === 'modeltest' ).name; -let checkOutput; -let stops = []; +let checkOutput: Mock; +let stops: ( () => void )[] = []; // The run subscribes to bridge events in its constructor; the stub accepts and ignores them. beforeEach( () => { stops = []; - checkOutput = vi.fn( async ( { outputName } ) => ( { + checkOutput = vi.fn( async ( { outputName } ) => ( { ok: true, outputNameUnused: outputName, resultFilenames: [], - } ) ); - const bridge = { checkOutput, getVersion: () => Promise.resolve( '2.0.0' ) }; - for ( const name of Object.values( runEvents ) ) { - bridge[name] = () => () => {}; - } - window.rendererBridge = bridge; + } as CheckOutputResult ) ); + installBridge( { checkOutput, getVersion: () => Promise.resolve( '2.0.0' ) } ); } ); afterEach( () => stops.forEach( ( stop ) => stop() ) ); -const nucleotide = ( over = {} ) => ( { +const nucleotide = ( over: Record = {} ): Alignment => ( { name: 'a.fasta', path: '/in/a.fasta', filename: 'a.fasta', @@ -41,11 +42,11 @@ const nucleotide = ( over = {} ) => ( { showModifiedSnack: false, showModifiedDialog: false, modeltestLoading: false, - modificationMessages: [], + modificationMessages: [] as string[], ngSubstitutionModelCmd: 'GTR+G', partition: { isDefault: true, isComplete: true }, ...over, -} ); +} as unknown as Alignment ); function makeRun( { alignments = [nucleotide()], binary = 'raxmlHPC', outputDir = '/out' } = {} ) { const run = new Run( null, 1 ); @@ -60,8 +61,8 @@ function makeRun( { alignments = [nucleotide()], binary = 'raxmlHPC', outputDir } // outputNameAvailable only settles inside a reaction, so reads that touch it go through here. -function read( fn ) { - let value; +function read( fn: () => T ): T { + let value: T; autorun( () => { value = fn(); } )(); @@ -69,7 +70,7 @@ function read( fn ) { } // outputNameAvailable is async and only computes while observed. -async function observeOutput( run ) { +async function observeOutput( run: Run ) { stops.push( autorun( () => run.outputNameAvailable.get() ) ); await new Promise( ( resolve ) => setTimeout( resolve, 0 ) ); } @@ -137,7 +138,7 @@ describe( 'Run alignment computeds', () => { expect( run.hasAstralTree ).toBe( false ); expect( run.canLoadAstralTree ).toBe( false ); runInAction( () => { - run.astralTree = { path: '/in/t.tre' }; + run.astralTree = { path: '/in/t.tre' } as AstralTree; } ); expect( run.hasAstralTree ).toBe( true ); } ); @@ -232,7 +233,7 @@ describe( 'Run state computeds', () => { const { missing } = run; expect( run.ok ).toBe( !missing ); runInAction( () => { - run.error = 'boom'; + run.error = { message: 'boom' }; } ); expect( run.ok ).toBe( false ); } ); @@ -244,7 +245,7 @@ describe( 'Run state computeds', () => { it( 'startDisabled is true while running or in error', () => { const run = makeRun(); runInAction( () => { - run.error = 'boom'; + run.error = { message: 'boom' }; } ); expect( run.startDisabled ).toBe( true ); runInAction( () => { @@ -291,7 +292,7 @@ describe( 'Run output computeds', () => { ok: false, outputNameUnused: 'output_2', resultFilenames: ['a.tre'], - } ); + } as CheckOutputResult ); const run = makeRun(); await observeOutput( run ); expect( read( () => run.outputNameOk ) ).toBe( false ); @@ -303,7 +304,7 @@ describe( 'Run output computeds', () => { } ); it( 'haveResult needs result files from the current output directory', async () => { - checkOutput.mockResolvedValue( { ok: false, outputNameUnused: 'x', resultFilenames: ['a.tre'] } ); + checkOutput.mockResolvedValue( { ok: false, outputNameUnused: 'x', resultFilenames: ['a.tre'] } as CheckOutputResult ); const run = makeRun(); await observeOutput( run ); runInAction( () => { @@ -346,7 +347,7 @@ describe( 'Run command', () => { const run = makeRun( { binary: 'raxmlHPC' } ); run.analysis.setValue( 'FT' ); await observeOutput( run ); - const seen = []; + const seen: string[] = []; stops.push( autorun( () => seen.push( run.command ) ) ); run.analysis.setValue( 'ML' ); expect( seen[seen.length - 1] ).toContain( '-f d' ); diff --git a/src/app/store/RunSimpleOptions.test.ts b/src/app/store/RunSimpleOptions.test.ts index 32e002bf..01dd1b02 100644 --- a/src/app/store/RunSimpleOptions.test.ts +++ b/src/app/store/RunSimpleOptions.test.ts @@ -1,7 +1,7 @@ -// @ts-nocheck — the test is not typed yet. import { afterEach, describe, expect, it } from 'vitest'; import { autorun, runInAction } from 'mobx'; +import type Alignment from './Alignment'; import Run from './Run'; import { binaries, MAX_NUM_CPUS } from './RunOptions'; @@ -10,7 +10,7 @@ const plain = binaries.find( ( b ) => b.type === 'raxml' && !/PTHREADS|-ng/.test // Run.analysis is a computed that builds a new option on each evaluation, so an // unobserved run forgets a set analysis value. A kept-alive reaction models the page. -const stops = []; +const stops: ( () => void )[] = []; afterEach( () => stops.splice( 0 ).forEach( ( stop ) => stop() ) ); // The initial binary is raxml-ng on some hosts; most tests start from classic RAxML. @@ -24,20 +24,20 @@ const newRun = () => { }; // Records every value an autorun sees, so a test can prove it re-ran. -function track( fn ) { - const seen = []; +function track( fn: () => T ) { + const seen: T[] = []; const stop = autorun( () => seen.push( fn() ) ); return { seen, stop }; } -const set = ( option, value ) => runInAction( () => { +const set = ( option: { value: unknown }, value: unknown ) => runInAction( () => { option.value = value; } ); -const setAnalysis = ( run, value ) => set( run.analysis, value ); +const setAnalysis = ( run: Run, value: string ) => set( run.analysis, value ); -const addAlignment = ( run, dataType ) => runInAction( () => { - run.alignments.push( { dataType, taxons: ['a', 'b'], partition: { isDefault: true } } ); +const addAlignment = ( run: Run, dataType: string ) => runInAction( () => { + run.alignments.push( { dataType, taxons: ['a', 'b'], partition: { isDefault: true } } as unknown as Alignment ); } ); describe( 'Binary', () => { @@ -151,8 +151,10 @@ describe( 'Analysis and RaxmlNgAnalysis', () => { } ); } ); +type OptionName = 'numRuns' | 'numRepetitions' | 'branchLength' | 'sHlike' | 'combinedOutput' | 'startingTree'; + describe( 'analysis dependent availability', () => { - const cases = [ + const cases: [ OptionName, string[], string[] ][] = [ // [option name, analyses that use it, analyses that do not] ['numRuns', ['ML', 'ML+tBS'], ['FT', 'ML+rBS', 'RBS']], ['numRepetitions', ['ML+rBS', 'ML+tBS', 'BS+con'], ['FT', 'ML', 'PD']], @@ -201,7 +203,7 @@ describe( 'analysis dependent availability', () => { describe( 'option lists', () => { it( 'lists the values the run offers', () => { const run = newRun(); - const values = ( option ) => option.options.map( ( o ) => o.value ); + const values = ( option: { options: { value: unknown }[] } ) => option.options.map( ( o ) => o.value ); expect( values( run.numRuns ) ).toEqual( [1, 10, 20, 50, 100, 500] ); expect( values( run.numRepetitions ) ).toEqual( [100, 200, 500, 1000, 10000, 'autoMR', 'autoMRE', 'autoMRE_IGN', 'autoFC'], @@ -237,7 +239,7 @@ describe( 'option values reach the run command', () => { set( run.branchLength, true ); set( run.sHlike, true ); stop(); - const steps = ( command ) => command.split( ' &&\\\n' ).length; + const steps = ( command: string ) => command.split( ' &&\\\n' ).length; expect( seen.map( steps ) ).toEqual( [1, 2, 3] ); } ); diff --git a/src/app/store/runInputActions.test.ts b/src/app/store/runInputActions.test.ts index 8309b22e..4df0c0f5 100644 --- a/src/app/store/runInputActions.test.ts +++ b/src/app/store/runInputActions.test.ts @@ -1,10 +1,17 @@ -// @ts-nocheck — the test is not typed yet. import { beforeEach, describe, expect, it, vi } from 'vitest'; import { autorun } from 'mobx'; +import type { RendererBridge } from '../../common/rendererBridge'; +import type { CheckOutputResult } from '../../main/checkOutput'; +import type { AlignmentParseResult } from '../../main/parseAlignment'; +import { installBridge } from '../../test/setup'; + import Run from './Run'; -const stayParsed = async () => ( { +// The tests build runs without a parent. +type RunParent = ConstructorParameters[0]; + +const stayParsed = async (): Promise => ( { alignment: { sequences: [], fileFormat: 'fasta', @@ -15,29 +22,29 @@ const stayParsed = async () => ( { typecheckingComplete: true, }, change: null, -} ); +} as unknown as AlignmentParseResult ); -const checkOutput = vi.fn( async ( { outputName } ) => ( { +const checkOutput = vi.fn( async ( { outputName } ) => ( { ok: true, outputNameUnused: outputName, resultFilenames: [], -} ) ); +} as CheckOutputResult ) ); const flush = () => new Promise( ( resolve ) => setTimeout( resolve, 0 ) ); // Runs `read` in an autorun and returns every value it saw, newest last. -function watch( read ) { - const seen = []; +function watch( read: () => T ) { + const seen: T[] = []; const dispose = autorun( () => seen.push( read() ) ); return { seen, dispose }; } -let run; +let run: Run; beforeEach( () => { checkOutput.mockClear(); - window.rendererBridge = { parseAlignment: stayParsed, checkOutput }; - run = new Run( {}, 7 ); + installBridge( { parseAlignment: stayParsed, checkOutput } ); + run = new Run( {} as RunParent, 7 ); } ); describe( 'output name and directory', () => { @@ -71,8 +78,8 @@ describe( 'output name and directory', () => { } ); it( 'openOutputDir opens the output directory', async () => { - const openPath = vi.fn( async () => {} ); - window.rendererBridge = { checkOutput, openPath }; + const openPath = vi.fn( async () => '' ); + installBridge( { checkOutput, openPath } ); run.setOutputDir( '/out' ); await run.openOutputDir(); @@ -135,11 +142,11 @@ describe( 'alignments', () => { } ); it( 'removeAlignment removes it and keeps the partition while others remain', async () => { - window.rendererBridge = { + installBridge( { parseAlignment: stayParsed, checkOutput, readFile: async () => 'DNA, g = 1-10\n', - }; + } ); run.addAlignments( [ { path: '/data/primates.fasta' }, { path: '/data/cats.phy' }, @@ -153,11 +160,11 @@ describe( 'alignments', () => { } ); it( 'removing the last alignment resets the partition file', async () => { - window.rendererBridge = { + installBridge( { parseAlignment: stayParsed, checkOutput, readFile: async () => 'DNA, g = 1-10\n', - }; + } ); run.addAlignments( [{ path: '/data/primates.fasta' }] ); await run.addPartitionFiles( [{ path: '/data/g.part' }] ); const { seen, dispose } = watch( () => run.haveAlignments ); @@ -172,7 +179,7 @@ describe( 'alignments', () => { it( 'removeAlignment ignores an alignment the run does not hold', () => { run.addAlignments( [{ path: '/data/primates.fasta' }] ); - const other = new Run( {}, 8 ); + const other = new Run( {} as RunParent, 8 ); other.addAlignments( [{ path: '/data/other.fasta' }] ); run.removeAlignment( other.alignments[0] ); @@ -222,15 +229,15 @@ describe( 'ASTRAL tree', () => { describe( 'partition file', () => { it( 'loadPartitionFile shows the path and content after the read resolves', async () => { - let finishRead; - const readFile = vi.fn( - () => new Promise( ( resolve ) => { finishRead = resolve; } ), + let finishRead: ( content: string ) => void; + const readFile = vi.fn( + () => new Promise( ( resolve ) => { finishRead = resolve; } ), ); - window.rendererBridge = { + installBridge( { checkOutput, selectPartitionFile: async () => '/data/genes.part', readFile, - }; + } ); const { seen, dispose } = watch( () => `${run.partitionFile}|${run.partitionFileContent}` ); const loading = run.loadPartitionFile(); @@ -249,7 +256,7 @@ describe( 'partition file', () => { } ); it( 'a loaded partition file moves its computeds and blocks the alignment picker', async () => { - window.rendererBridge = { checkOutput, readFile: async () => 'x' }; + installBridge( { checkOutput, readFile: async () => 'x' } ); const name = watch( () => run.partitionFileName ); const have = watch( () => run.havePartitionFile ); const canLoad = watch( () => run.canLoadAlignment ); @@ -265,14 +272,15 @@ describe( 'partition file', () => { } ); it( 'addPartitionFiles with no files changes nothing', async () => { - window.rendererBridge = { checkOutput, readFile: vi.fn() }; + const readFile = vi.fn(); + installBridge( { checkOutput, readFile } ); await run.addPartitionFiles( [] ); expect( run.partitionFile ).toBe( '' ); - expect( window.rendererBridge.readFile ).not.toHaveBeenCalled(); + expect( readFile ).not.toHaveBeenCalled(); } ); it( 'removePartitionFile clears the path and the content', async () => { - window.rendererBridge = { checkOutput, readFile: async () => 'x' }; + installBridge( { checkOutput, readFile: async () => 'x' } ); await run.addPartitionFiles( [{ path: '/data/genes.part' }] ); const { seen, dispose } = watch( () => run.havePartitionFile ); @@ -286,7 +294,7 @@ describe( 'partition file', () => { } ); describe( 'tree files', () => { - it.each( [ 'tree', 'backboneConstraint', 'multifurcatingConstraint' ] )( + it.each( [ 'tree', 'backboneConstraint', 'multifurcatingConstraint' ] as const )( 'addTreeFiles sets the %s file', ( type ) => { const { seen, dispose } = watch( () => run[type].haveFile ); From d0d035da7f793efc15e9fa0c387f295b778a5a43 Mon Sep 17 00:00:00 2001 From: Johannes Klein Agents Date: Sun, 22 Nov 2026 22:22:52 +0100 Subject: [PATCH 23/23] Narrow the Vitest include to TypeScript tests Vitest now picks up only .ts and .tsx tests, and the Playwright config comment names Vitest instead of Jest. Closes #307. Co-Authored-By: Claude Opus 5.5 --- e2e/playwright.config.js | 2 +- vitest.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/playwright.config.js b/e2e/playwright.config.js index 2157afa5..43229f34 100644 --- a/e2e/playwright.config.js +++ b/e2e/playwright.config.js @@ -4,7 +4,7 @@ const path = require('path'); /** @type {import('playwright/test').PlaywrightTestConfig} */ const config = { testDir: path.join(__dirname), - testMatch: '**/*.spec.js', // Jest owns *.test.js + testMatch: '**/*.spec.js', // Vitest owns *.test.ts and *.test.tsx testIgnore: ['docs/**'], // Locator checks use Playwright's 5s expect timeout. A long wait passes its own timeout. timeout: 15 * 60 * 1000, diff --git a/vitest.config.mjs b/vitest.config.mjs index 22c9d341..8bad2b23 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -16,7 +16,7 @@ export default defineConfig( { environment: 'jsdom', globals: false, clearMocks: false, - include: [ 'src/**/*.test.{js,jsx,ts,tsx}', 'e2e/helpers/**/*.test.ts' ], + include: [ 'src/**/*.test.{ts,tsx}', 'e2e/helpers/**/*.test.ts' ], // Order matters: the bridge is installed before the page store loads, then the MobX check wraps each test. setupFiles: [ './src/test/setup.ts', './src/test/mobxActionWarning.ts' ], },