diff --git a/config/config/package.json b/config/config/package.json index d676f51ea8..0c12b17afd 100644 --- a/config/config/package.json +++ b/config/config/package.json @@ -66,6 +66,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/config": "workspace:*", "@pnpm/prepare": "workspace:*", "@pnpm/test-fixtures": "workspace:*", diff --git a/config/config/test/globalBinDir.test.ts b/config/config/test/globalBinDir.test.ts index 06eb477e6b..7b6ee85fd4 100644 --- a/config/config/test/globalBinDir.test.ts +++ b/config/config/test/globalBinDir.test.ts @@ -1,6 +1,7 @@ /// import fs from 'fs' import { tempDir } from '@pnpm/prepare' +import { jest } from '@jest/globals' import path from 'path' import pathName from 'path-name' import symlinkDir from 'symlink-dir' @@ -11,7 +12,8 @@ const globalBinDir = path.join(homedir(), '.local', 'pnpm') const isWindows = process.platform === 'win32' jest.mock('@pnpm/npm-conf/lib/conf', () => { - const originalModule = jest.requireActual('@pnpm/npm-conf/lib/conf') + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const originalModule = jest.requireActual('@pnpm/npm-conf/lib/conf') class MockedConf extends originalModule { // eslint-disable-next-line @typescript-eslint/no-explicit-any constructor (base: any, types: any) { diff --git a/config/config/test/index.ts b/config/config/test/index.ts index 2e1fbaf69d..b8b004726e 100644 --- a/config/config/test/index.ts +++ b/config/config/test/index.ts @@ -7,6 +7,7 @@ import { getConfig } from '@pnpm/config' import loadNpmConf from '@pnpm/npm-conf' import { prepare, prepareEmpty } from '@pnpm/prepare' import { fixtures } from '@pnpm/test-fixtures' +import { jest } from '@jest/globals' import symlinkDir from 'symlink-dir' diff --git a/config/package-is-installable/package.json b/config/package-is-installable/package.json index ae5e5ad171..fc04bf2cac 100644 --- a/config/package-is-installable/package.json +++ b/config/package-is-installable/package.json @@ -46,6 +46,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/package-is-installable": "workspace:*", "@types/semver": "catalog:" diff --git a/config/package-is-installable/test/checkPlatform.ts b/config/package-is-installable/test/checkPlatform.ts index 1f1464fd89..358633f3c2 100644 --- a/config/package-is-installable/test/checkPlatform.ts +++ b/config/package-is-installable/test/checkPlatform.ts @@ -1,9 +1,11 @@ +import { jest } from '@jest/globals' +import type * as DetectLibc from 'detect-libc' import { checkPlatform } from '../lib/checkPlatform' const packageId = 'registry.npmjs.org/foo/1.0.0' jest.mock('detect-libc', () => { - const original = jest.requireActual('detect-libc') + const original = jest.requireActual('detect-libc') return { ...original, familySync: () => 'musl', diff --git a/config/plugin-commands-config/package.json b/config/plugin-commands-config/package.json index fc5b59787a..f1c1840f8f 100644 --- a/config/plugin-commands-config/package.json +++ b/config/plugin-commands-config/package.json @@ -50,6 +50,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-config": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/config/plugin-commands-config/test/managingAuthSettings.test.ts b/config/plugin-commands-config/test/managingAuthSettings.test.ts index cdecfef222..938ead9ae7 100644 --- a/config/plugin-commands-config/test/managingAuthSettings.test.ts +++ b/config/plugin-commands-config/test/managingAuthSettings.test.ts @@ -1,5 +1,6 @@ import { config } from '@pnpm/plugin-commands-config' import { runNpm } from '@pnpm/run-npm' +import { jest } from '@jest/globals' jest.mock('@pnpm/run-npm', () => ({ runNpm: jest.fn(), diff --git a/deps/status/package.json b/deps/status/package.json index 2025d63e2c..24bf0d60a7 100644 --- a/deps/status/package.json +++ b/deps/status/package.json @@ -53,6 +53,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/deps.status": "workspace:*", "@pnpm/prepare": "workspace:*", "@pnpm/write-project-manifest": "workspace:*", diff --git a/deps/status/test/checkDepsStatus.test.ts b/deps/status/test/checkDepsStatus.test.ts index 24e390db1f..35a9f1a739 100644 --- a/deps/status/test/checkDepsStatus.test.ts +++ b/deps/status/test/checkDepsStatus.test.ts @@ -2,22 +2,23 @@ import { type Stats } from 'fs' import { checkDepsStatus, type CheckDepsStatusOptions } from '@pnpm/deps.status' import * as workspaceStateModule from '@pnpm/workspace.state' import * as lockfileFs from '@pnpm/lockfile.fs' +import { jest } from '@jest/globals' import * as fsUtils from '../lib/safeStat' import * as statManifestFileUtils from '../lib/statManifestFile' jest.mock('../lib/safeStat', () => ({ - ...jest.requireActual('../lib/safeStat'), + ...jest.requireActual('../lib/safeStat'), safeStatSync: jest.fn(), safeStat: jest.fn(), })) jest.mock('../lib/statManifestFile', () => ({ - ...jest.requireActual('../lib/statManifestFile'), + ...jest.requireActual('../lib/statManifestFile'), statManifestFile: jest.fn(), })) jest.mock('@pnpm/lockfile.fs', () => ({ - ...jest.requireActual('@pnpm/lockfile.fs'), + ...jest.requireActual('@pnpm/lockfile.fs'), readCurrentLockfile: jest.fn(), readWantedLockfile: jest.fn(), })) diff --git a/env/node.fetcher/package.json b/env/node.fetcher/package.json index 5e6ba22cb0..62777a136a 100644 --- a/env/node.fetcher/package.json +++ b/env/node.fetcher/package.json @@ -43,6 +43,7 @@ "detect-libc": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/cafs-types": "workspace:*", "@pnpm/node.fetcher": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/env/node.fetcher/test/node.test.ts b/env/node.fetcher/test/node.test.ts index 6e5ca26d08..b7d082407b 100644 --- a/env/node.fetcher/test/node.test.ts +++ b/env/node.fetcher/test/node.test.ts @@ -4,6 +4,7 @@ import path from 'path' import { Readable } from 'stream' import { fetchNode, type FetchNodeOptionsToDir as FetchNodeOptions } from '@pnpm/node.fetcher' import { tempDir } from '@pnpm/prepare' +import { jest } from '@jest/globals' import { isNonGlibcLinux } from 'detect-libc' jest.mock('detect-libc', () => ({ diff --git a/env/plugin-commands-env/package.json b/env/plugin-commands-env/package.json index 117ce0db06..18d6600d19 100644 --- a/env/plugin-commands-env/package.json +++ b/env/plugin-commands-env/package.json @@ -56,6 +56,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-env": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/env/plugin-commands-env/test/node.test.ts b/env/plugin-commands-env/test/node.test.ts index 56840bf00c..62d43beba5 100644 --- a/env/plugin-commands-env/test/node.test.ts +++ b/env/plugin-commands-env/test/node.test.ts @@ -4,6 +4,7 @@ import fs from 'fs' import { Readable } from 'stream' import tar from 'tar-stream' import { globalWarn } from '@pnpm/logger' +import { jest } from '@jest/globals' import { ZipFile } from 'yazl' import { getNodeDir, @@ -54,7 +55,7 @@ jest.mock('@pnpm/fetch', () => ({ })) jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/env/system-node-version/package.json b/env/system-node-version/package.json index 485001d777..cb5bef7f18 100644 --- a/env/system-node-version/package.json +++ b/env/system-node-version/package.json @@ -37,6 +37,7 @@ "mem": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/env.system-node-version": "workspace:*" }, "engines": { diff --git a/env/system-node-version/test/getSystemNodeVersion.test.ts b/env/system-node-version/test/getSystemNodeVersion.test.ts index 7932c8460e..77741991a7 100644 --- a/env/system-node-version/test/getSystemNodeVersion.test.ts +++ b/env/system-node-version/test/getSystemNodeVersion.test.ts @@ -1,3 +1,4 @@ +import { jest } from '@jest/globals' import { getSystemNodeVersionNonCached } from '../lib' import * as execa from 'execa' diff --git a/exec/build-commands/package.json b/exec/build-commands/package.json index c8ca105fd2..f1f9de3f20 100644 --- a/exec/build-commands/package.json +++ b/exec/build-commands/package.json @@ -46,6 +46,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/exec.build-commands": "workspace:*", "@pnpm/plugin-commands-installation": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/exec/build-commands/test/approveBuilds.test.ts b/exec/build-commands/test/approveBuilds.test.ts index 169fe596dc..8817e13c35 100644 --- a/exec/build-commands/test/approveBuilds.test.ts +++ b/exec/build-commands/test/approveBuilds.test.ts @@ -9,6 +9,7 @@ import { type ProjectManifest } from '@pnpm/types' import { getConfig } from '@pnpm/config' import { type Modules, readModulesManifest } from '@pnpm/modules-yaml' import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock' +import { jest } from '@jest/globals' import { sync as loadJsonFile } from 'load-json-file' import omit from 'ramda/src/omit' import { tempDir } from '@pnpm/prepare-temp-dir' diff --git a/exec/plugin-commands-script-runners/package.json b/exec/plugin-commands-script-runners/package.json index 20c62565a9..cfc1f9e925 100644 --- a/exec/plugin-commands-script-runners/package.json +++ b/exec/plugin-commands-script-runners/package.json @@ -73,6 +73,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/env.system-node-version": "workspace:*", "@pnpm/filter-workspace-packages": "workspace:*", "@pnpm/logger": "workspace:*", diff --git a/exec/plugin-commands-script-runners/test/create.ts b/exec/plugin-commands-script-runners/test/create.ts index fa54917be8..e1396a6151 100644 --- a/exec/plugin-commands-script-runners/test/create.ts +++ b/exec/plugin-commands-script-runners/test/create.ts @@ -1,4 +1,5 @@ import { PnpmError } from '@pnpm/error' +import { jest } from '@jest/globals' import { create, dlx } from '../src' import { DLX_DEFAULT_OPTS as DEFAULT_OPTS } from './utils' diff --git a/exec/plugin-commands-script-runners/test/dlx.ts b/exec/plugin-commands-script-runners/test/dlx.ts index 92d1c53b75..9195de5e59 100644 --- a/exec/plugin-commands-script-runners/test/dlx.ts +++ b/exec/plugin-commands-script-runners/test/dlx.ts @@ -2,6 +2,7 @@ import path from 'path' import execa from 'execa' import { dlx } from '@pnpm/plugin-commands-script-runners' import { prepareEmpty } from '@pnpm/prepare' +import { jest } from '@jest/globals' import { DLX_DEFAULT_OPTS as DEFAULT_OPTS } from './utils' jest.mock('execa') diff --git a/exec/plugin-commands-script-runners/test/exec.logs.ts b/exec/plugin-commands-script-runners/test/exec.logs.ts index d72726d736..8e9ff1a881 100644 --- a/exec/plugin-commands-script-runners/test/exec.logs.ts +++ b/exec/plugin-commands-script-runners/test/exec.logs.ts @@ -4,6 +4,7 @@ import { filterPackagesFromDir } from '@pnpm/workspace.filter-packages-from-dir' import { logger } from '@pnpm/logger' import { exec } from '@pnpm/plugin-commands-script-runners' import { preparePackages } from '@pnpm/prepare' +import { jest } from '@jest/globals' import writeYamlFile from 'write-yaml-file' import { DEFAULT_OPTS } from './utils' diff --git a/exec/plugin-commands-script-runners/test/exec.ts b/exec/plugin-commands-script-runners/test/exec.ts index c6ae79cb0c..21dfa42576 100644 --- a/exec/plugin-commands-script-runners/test/exec.ts +++ b/exec/plugin-commands-script-runners/test/exec.ts @@ -1,6 +1,7 @@ import execa from 'execa' import { exec } from '@pnpm/plugin-commands-script-runners' import { prepareEmpty } from '@pnpm/prepare' +import { jest } from '@jest/globals' import { DEFAULT_OPTS } from './utils' jest.mock('execa') diff --git a/exec/plugin-commands-script-runners/test/verifyDepsBeforeRun.ts b/exec/plugin-commands-script-runners/test/verifyDepsBeforeRun.ts index dff32d9daa..3e87d3ccbc 100644 --- a/exec/plugin-commands-script-runners/test/verifyDepsBeforeRun.ts +++ b/exec/plugin-commands-script-runners/test/verifyDepsBeforeRun.ts @@ -4,11 +4,12 @@ import { globalWarn } from '@pnpm/logger' import { type VerifyDepsBeforeRun } from '@pnpm/config' import { run } from '@pnpm/plugin-commands-script-runners' import { prepare } from '@pnpm/prepare' +import { jest } from '@jest/globals' import { prompt } from 'enquirer' import { DEFAULT_OPTS } from './utils' jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/fetching/directory-fetcher/package.json b/fetching/directory-fetcher/package.json index 505e34f3a3..662ac858b7 100644 --- a/fetching/directory-fetcher/package.json +++ b/fetching/directory-fetcher/package.json @@ -43,6 +43,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/directory-fetcher": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/test-fixtures": "workspace:*", diff --git a/fetching/directory-fetcher/test/index.ts b/fetching/directory-fetcher/test/index.ts index 257493c7d5..04d1209b07 100644 --- a/fetching/directory-fetcher/test/index.ts +++ b/fetching/directory-fetcher/test/index.ts @@ -6,6 +6,7 @@ import { createDirectoryFetcher } from '@pnpm/directory-fetcher' import { debug } from '@pnpm/logger' import { fixtures } from '@pnpm/test-fixtures' import { sync as rimraf } from '@zkochan/rimraf' +import { jest } from '@jest/globals' const f = fixtures(__dirname) jest.mock('@pnpm/logger', () => { diff --git a/fetching/git-fetcher/package.json b/fetching/git-fetcher/package.json index 0fd8a0b511..eb804b6ff0 100644 --- a/fetching/git-fetcher/package.json +++ b/fetching/git-fetcher/package.json @@ -43,6 +43,7 @@ "@pnpm/worker": "workspace:^" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/create-cafs-store": "workspace:*", "@pnpm/git-fetcher": "workspace:*", "@pnpm/logger": "workspace:*", diff --git a/fetching/git-fetcher/test/index.ts b/fetching/git-fetcher/test/index.ts index ed7d3b55be..0baca74fb9 100644 --- a/fetching/git-fetcher/test/index.ts +++ b/fetching/git-fetcher/test/index.ts @@ -3,11 +3,12 @@ import path from 'path' import { createCafsStore } from '@pnpm/create-cafs-store' import { createGitFetcher } from '@pnpm/git-fetcher' import { globalWarn } from '@pnpm/logger' +import { jest } from '@jest/globals' import tempy from 'tempy' import execa from 'execa' jest.mock('execa', () => { - const originalModule = jest.requireActual('execa') + const originalModule = jest.requireActual('execa') // eslint-disable-line return { __esModule: true, ...originalModule, @@ -16,7 +17,7 @@ jest.mock('execa', () => { }) jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/fetching/tarball-fetcher/package.json b/fetching/tarball-fetcher/package.json index 793039163f..ab90a5181c 100644 --- a/fetching/tarball-fetcher/package.json +++ b/fetching/tarball-fetcher/package.json @@ -52,6 +52,7 @@ "@pnpm/worker": "workspace:^" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/cafs-types": "workspace:*", "@pnpm/create-cafs-store": "workspace:*", "@pnpm/fetch": "workspace:*", diff --git a/fetching/tarball-fetcher/test/fetch.ts b/fetching/tarball-fetcher/test/fetch.ts index 8c36599a04..ddd5b8264e 100644 --- a/fetching/tarball-fetcher/test/fetch.ts +++ b/fetching/tarball-fetcher/test/fetch.ts @@ -5,18 +5,20 @@ import { FetchError, PnpmError } from '@pnpm/error' import { createFetchFromRegistry } from '@pnpm/fetch' import { createCafsStore } from '@pnpm/create-cafs-store' import { globalWarn } from '@pnpm/logger' +import type * as Logger from '@pnpm/logger' import { fixtures } from '@pnpm/test-fixtures' import { createTarballFetcher, BadTarballError, TarballIntegrityError, } from '@pnpm/tarball-fetcher' +import { jest } from '@jest/globals' import nock from 'nock' import ssri from 'ssri' import tempy from 'tempy' jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/fs/indexed-pkg-importer/package.json b/fs/indexed-pkg-importer/package.json index 787484d6a9..969f5f4dcc 100644 --- a/fs/indexed-pkg-importer/package.json +++ b/fs/indexed-pkg-importer/package.json @@ -60,6 +60,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/fs.indexed-pkg-importer": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/fs/indexed-pkg-importer/test/createImportPackage.test.ts b/fs/indexed-pkg-importer/test/createImportPackage.test.ts index 015c1e138b..d9acd31f7a 100644 --- a/fs/indexed-pkg-importer/test/createImportPackage.test.ts +++ b/fs/indexed-pkg-importer/test/createImportPackage.test.ts @@ -3,11 +3,12 @@ import path from 'path' import { createIndexedPkgImporter } from '@pnpm/fs.indexed-pkg-importer' import gfs from '@pnpm/graceful-fs' import { globalInfo } from '@pnpm/logger' +import { jest } from '@jest/globals' const testOnLinuxOnly = (process.platform === 'darwin' || process.platform === 'win32') ? test.skip : test jest.mock('@pnpm/graceful-fs', () => { - const { access, promises } = jest.requireActual('fs') + const { access, promises } = jest.requireActual('fs') const fsMock = { mkdirSync: promises.mkdir, readdirSync: promises.readdir, @@ -190,10 +191,10 @@ test('packageImportMethod=hardlink relinks package from store if package.json is test('packageImportMethod=hardlink does not relink package from store if package.json is not present in the store', () => { const importPackage = createIndexedPkgImporter('hardlink') - jest.mocked(gfs.statSync).mockImplementation((file) => { + jest.mocked(gfs.statSync).mockImplementation(((file: string) => { expect(typeof file).toBe('string') return { ino: BigInt(1) } as BigIntStats - }) + }) as unknown as typeof gfs.statSync) expect(importPackage('project/package', { filesMap: { 'index.js': 'hash2', @@ -205,12 +206,12 @@ test('packageImportMethod=hardlink does not relink package from store if package test('packageImportMethod=hardlink links packages when they are not found', () => { const importPackage = createIndexedPkgImporter('hardlink') - jest.mocked(gfs.statSync).mockImplementation((file) => { + jest.mocked(gfs.statSync).mockImplementation(((file: string) => { if (file === path.join('project/package', 'package.json')) { throw Object.assign(new Error(), { code: 'ENOENT' }) } return { ino: BigInt(0) } as BigIntStats - }) + }) as unknown as typeof gfs.statSync) expect(importPackage('project/package', { filesMap: { 'index.js': 'hash2', diff --git a/lockfile/filtering/package.json b/lockfile/filtering/package.json index 596ffbe7d1..514a19a03c 100644 --- a/lockfile/filtering/package.json +++ b/lockfile/filtering/package.json @@ -47,6 +47,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/lockfile.filtering": "workspace:*", "@pnpm/logger": "workspace:*", "@types/ramda": "catalog:", diff --git a/lockfile/filtering/test/filterByImportersAndEngine.ts b/lockfile/filtering/test/filterByImportersAndEngine.ts index 43f191ffdd..970718adcc 100644 --- a/lockfile/filtering/test/filterByImportersAndEngine.ts +++ b/lockfile/filtering/test/filterByImportersAndEngine.ts @@ -1,12 +1,13 @@ import { LOCKFILE_VERSION } from '@pnpm/constants' import { filterLockfileByImportersAndEngine } from '@pnpm/lockfile.filtering' import { type DepPath, type ProjectId } from '@pnpm/types' +import { jest } from '@jest/globals' const REGIONAL_ARCH = Object.assign({}, process.arch) const REGIONAL_CPU = Object.assign({}, process.platform) jest.mock('detect-libc', () => { - const original = jest.requireActual('detect-libc') + const original = jest.requireActual('detect-libc') return { ...original, familySync: () => 'musl', diff --git a/lockfile/fs/package.json b/lockfile/fs/package.json index 2fa87f6ad9..1df321e59c 100644 --- a/lockfile/fs/package.json +++ b/lockfile/fs/package.json @@ -56,6 +56,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/lockfile.fs": "workspace:*", "@pnpm/logger": "workspace:*", "@types/js-yaml": "catalog:", diff --git a/lockfile/fs/test/lockfileName.test.ts b/lockfile/fs/test/lockfileName.test.ts index 7dade76f42..ebe223ac1d 100644 --- a/lockfile/fs/test/lockfileName.test.ts +++ b/lockfile/fs/test/lockfileName.test.ts @@ -1,5 +1,6 @@ import { WANTED_LOCKFILE } from '@pnpm/constants' import { getCurrentBranch } from '@pnpm/git-utils' +import { jest } from '@jest/globals' import { getWantedLockfileName } from '../lib/lockfileName' jest.mock('@pnpm/git-utils', () => ({ getCurrentBranch: jest.fn() })) diff --git a/lockfile/fs/test/read.test.ts b/lockfile/fs/test/read.test.ts index b6f75f6cb8..0c6847e0e1 100644 --- a/lockfile/fs/test/read.test.ts +++ b/lockfile/fs/test/read.test.ts @@ -8,6 +8,7 @@ import { writeWantedLockfile, } from '@pnpm/lockfile.fs' import { type DepPath, type ProjectId } from '@pnpm/types' +import { jest } from '@jest/globals' import tempy from 'tempy' jest.mock('@pnpm/git-utils', () => ({ getCurrentBranch: jest.fn() })) diff --git a/lockfile/fs/test/write.test.ts b/lockfile/fs/test/write.test.ts index 698e5364c8..d7c712390f 100644 --- a/lockfile/fs/test/write.test.ts +++ b/lockfile/fs/test/write.test.ts @@ -6,6 +6,7 @@ import { readWantedLockfile, writeLockfiles, } from '@pnpm/lockfile.fs' +import { jest } from '@jest/globals' import tempy from 'tempy' import yaml from 'yaml-tag' import { getCurrentBranch } from '@pnpm/git-utils' diff --git a/modules-mounter/daemon/package.json b/modules-mounter/daemon/package.json index 1208bc1db4..ecfc1b03d8 100644 --- a/modules-mounter/daemon/package.json +++ b/modules-mounter/daemon/package.json @@ -55,6 +55,7 @@ "fuse-native": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/constants": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/mount-modules": "workspace:*", diff --git a/modules-mounter/daemon/test/createFuseHandlers.test.ts b/modules-mounter/daemon/test/createFuseHandlers.test.ts index 9860af343f..c43b35e42c 100644 --- a/modules-mounter/daemon/test/createFuseHandlers.test.ts +++ b/modules-mounter/daemon/test/createFuseHandlers.test.ts @@ -1,4 +1,5 @@ import { STORE_VERSION } from '@pnpm/constants' +import { jest } from '@jest/globals' import path from 'path' jest.mock('fuse-native', () => ({ ENOENT: -2 })) diff --git a/packages/plugin-commands-doctor/package.json b/packages/plugin-commands-doctor/package.json index 45c96b08fd..f599868afa 100644 --- a/packages/plugin-commands-doctor/package.json +++ b/packages/plugin-commands-doctor/package.json @@ -40,6 +40,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-doctor": "workspace:*" }, diff --git a/packages/plugin-commands-doctor/test/index.ts b/packages/plugin-commands-doctor/test/index.ts index ab4764e939..312c13de36 100644 --- a/packages/plugin-commands-doctor/test/index.ts +++ b/packages/plugin-commands-doctor/test/index.ts @@ -1,5 +1,6 @@ import { doctor } from '@pnpm/plugin-commands-doctor' import { logger } from '@pnpm/logger' +import { jest } from '@jest/globals' beforeEach(() => { jest.spyOn(logger, 'warn') diff --git a/packages/plugin-commands-setup/package.json b/packages/plugin-commands-setup/package.json index fa73d91533..0f130c347b 100644 --- a/packages/plugin-commands-setup/package.json +++ b/packages/plugin-commands-setup/package.json @@ -42,6 +42,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/error": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-setup": "workspace:*", diff --git a/packages/plugin-commands-setup/test/setup.test.ts b/packages/plugin-commands-setup/test/setup.test.ts index 98e58f9e60..59a96bd93f 100644 --- a/packages/plugin-commands-setup/test/setup.test.ts +++ b/packages/plugin-commands-setup/test/setup.test.ts @@ -1,6 +1,7 @@ import { PnpmError } from '@pnpm/error' import { setup } from '@pnpm/plugin-commands-setup' import { addDirToEnvPath, type PathExtenderReport } from '@pnpm/os.env.path-extender' +import { jest } from '@jest/globals' jest.mock('@pnpm/os.env.path-extender', () => ({ addDirToEnvPath: jest.fn(), diff --git a/patching/apply-patch/package.json b/patching/apply-patch/package.json index 32402588da..2db9e4ae25 100644 --- a/patching/apply-patch/package.json +++ b/patching/apply-patch/package.json @@ -39,6 +39,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/patching.apply-patch": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/patching/apply-patch/test/applyPatchToDir.ts b/patching/apply-patch/test/applyPatchToDir.ts index c765ff52f5..76e1a0a4f4 100644 --- a/patching/apply-patch/test/applyPatchToDir.ts +++ b/patching/apply-patch/test/applyPatchToDir.ts @@ -4,11 +4,12 @@ import { applyPatchToDir } from '@pnpm/patching.apply-patch' import { fixtures } from '@pnpm/test-fixtures' import { tempDir } from '@pnpm/prepare' import { globalWarn } from '@pnpm/logger' +import { jest } from '@jest/globals' const f = fixtures(__dirname) jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/patching/plugin-commands-patching/package.json b/patching/plugin-commands-patching/package.json index 91406dad65..e5240e7220 100644 --- a/patching/plugin-commands-patching/package.json +++ b/patching/plugin-commands-patching/package.json @@ -71,6 +71,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-patching": "workspace:*", "@pnpm/prepare": "workspace:*", diff --git a/patching/plugin-commands-patching/test/patch.test.ts b/patching/plugin-commands-patching/test/patch.test.ts index 63dc522a86..b998f61bcb 100644 --- a/patching/plugin-commands-patching/test/patch.test.ts +++ b/patching/plugin-commands-patching/test/patch.test.ts @@ -12,6 +12,7 @@ import { readProjectManifest } from '@pnpm/read-project-manifest' import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock' import { DEFAULT_OPTS } from './utils/index' import { fixtures } from '@pnpm/test-fixtures' +import { jest } from '@jest/globals' import * as enquirer from 'enquirer' jest.mock('enquirer', () => ({ prompt: jest.fn() })) diff --git a/pkg-manager/core/package.json b/pkg-manager/core/package.json index 22b69d58a8..1b906db84e 100644 --- a/pkg-manager/core/package.json +++ b/pkg-manager/core/package.json @@ -122,6 +122,7 @@ "@pnpm/worker": "workspace:^" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/assert-project": "workspace:*", "@pnpm/assert-store": "workspace:*", "@pnpm/core": "workspace:*", diff --git a/pkg-manager/core/test/catalogs.ts b/pkg-manager/core/test/catalogs.ts index de124230c9..4ea5260933 100644 --- a/pkg-manager/core/test/catalogs.ts +++ b/pkg-manager/core/test/catalogs.ts @@ -5,12 +5,13 @@ import { addDistTag } from '@pnpm/registry-mock' import { type MutatedProject, mutateModules, type ProjectOptions, type MutateModulesOptions, addDependenciesToPackage } from '@pnpm/core' import { type CatalogSnapshots } from '@pnpm/lockfile.types' import { logger } from '@pnpm/logger' +import { jest } from '@jest/globals' import { sync as loadJsonFile } from 'load-json-file' import path from 'path' import { testDefaults } from './utils' jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') // eslint-disable-line originalModule.logger.warn = jest.fn() return originalModule }) diff --git a/pkg-manager/link-bins/package.json b/pkg-manager/link-bins/package.json index 2cc7d21fe8..aba8034ea3 100644 --- a/pkg-manager/link-bins/package.json +++ b/pkg-manager/link-bins/package.json @@ -56,6 +56,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/link-bins": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/test-fixtures": "workspace:*", diff --git a/pkg-manager/link-bins/test/index.ts b/pkg-manager/link-bins/test/index.ts index a9f5903428..9192808ee9 100644 --- a/pkg-manager/link-bins/test/index.ts +++ b/pkg-manager/link-bins/test/index.ts @@ -8,6 +8,7 @@ import { linkBinsOfPkgsByAliases, } from '@pnpm/link-bins' import { fixtures } from '@pnpm/test-fixtures' +import { jest } from '@jest/globals' import CMD_EXTENSION from 'cmd-extension' import isWindows from 'is-windows' import normalizePath from 'normalize-path' diff --git a/pkg-manager/plugin-commands-installation/package.json b/pkg-manager/plugin-commands-installation/package.json index a2ffee5e8f..8a9d21ac41 100644 --- a/pkg-manager/plugin-commands-installation/package.json +++ b/pkg-manager/plugin-commands-installation/package.json @@ -95,6 +95,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/assert-project": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/modules-yaml": "workspace:*", diff --git a/pkg-manager/plugin-commands-installation/test/patchedDependencies.ts b/pkg-manager/plugin-commands-installation/test/patchedDependencies.ts index e97c2b2782..077130b083 100644 --- a/pkg-manager/plugin-commands-installation/test/patchedDependencies.ts +++ b/pkg-manager/plugin-commands-installation/test/patchedDependencies.ts @@ -5,10 +5,11 @@ import { globalWarn } from '@pnpm/logger' import { add, install } from '@pnpm/plugin-commands-installation' import { prepareEmpty } from '@pnpm/prepare' import { fixtures } from '@pnpm/test-fixtures' +import { jest } from '@jest/globals' import { DEFAULT_OPTS } from './utils' jest.mock('@pnpm/logger', () => { - const originalModule = jest.requireActual('@pnpm/logger') + const originalModule = jest.requireActual('@pnpm/logger') return { ...originalModule, globalWarn: jest.fn(), diff --git a/pkg-manager/plugin-commands-installation/test/update/interactive.ts b/pkg-manager/plugin-commands-installation/test/update/interactive.ts index 62069f92b9..5d58a8b395 100644 --- a/pkg-manager/plugin-commands-installation/test/update/interactive.ts +++ b/pkg-manager/plugin-commands-installation/test/update/interactive.ts @@ -4,6 +4,7 @@ import { type LockfileObject } from '@pnpm/lockfile.types' import { add, install, update } from '@pnpm/plugin-commands-installation' import { prepare, preparePackages } from '@pnpm/prepare' import { REGISTRY_MOCK_PORT, addDistTag } from '@pnpm/registry-mock' +import { jest } from '@jest/globals' import { sync as readYamlFile } from 'read-yaml-file' import chalk from 'chalk' import * as enquirer from 'enquirer' diff --git a/pkg-manager/plugin-commands-installation/test/update/issue-7415.ts b/pkg-manager/plugin-commands-installation/test/update/issue-7415.ts index 0b56fc7640..c804d91d96 100644 --- a/pkg-manager/plugin-commands-installation/test/update/issue-7415.ts +++ b/pkg-manager/plugin-commands-installation/test/update/issue-7415.ts @@ -4,6 +4,7 @@ import { REGISTRY_MOCK_PORT } from '@pnpm/registry-mock' import { update, install } from '@pnpm/plugin-commands-installation' import * as enquirer from 'enquirer' import { filterPackagesFromDir } from '@pnpm/workspace.filter-packages-from-dir' +import { jest } from '@jest/globals' jest.mock('enquirer', () => ({ prompt: jest.fn() })) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a00129f54..b8d872d9e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,6 +36,9 @@ catalogs: '@gwhitney/detect-indent': specifier: 7.0.1 version: 7.0.1 + '@jest/globals': + specifier: 29.7.0 + version: 29.7.0 '@pnpm/builder.policy': specifier: 3.0.1 version: 3.0.1 @@ -1681,6 +1684,9 @@ importers: specifier: 'catalog:' version: '@pnpm/which@3.0.1' devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/config': specifier: workspace:* version: 'link:' @@ -1854,6 +1860,9 @@ importers: specifier: 'catalog:' version: 7.7.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../../packages/logger @@ -1935,6 +1944,9 @@ importers: specifier: 'catalog:' version: 4.0.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../../packages/logger @@ -2170,6 +2182,9 @@ importers: specifier: 'catalog:' version: '@pnpm/ramda@0.28.1' devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/deps.status': specifier: workspace:* version: 'link:' @@ -2210,6 +2225,9 @@ importers: specifier: 'catalog:' version: 2.0.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/cafs-types': specifier: workspace:* version: link:../../store/cafs-types @@ -2339,6 +2357,9 @@ importers: specifier: 'catalog:' version: 4.3.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../../packages/logger @@ -2394,6 +2415,9 @@ importers: specifier: 'catalog:' version: 8.1.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/env.system-node-version': specifier: workspace:* version: 'link:' @@ -2431,6 +2455,9 @@ importers: specifier: 'catalog:' version: 1.0.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/exec.build-commands': specifier: workspace:* version: 'link:' @@ -2865,6 +2892,9 @@ importers: specifier: 'catalog:' version: 4.3.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/env.system-node-version': specifier: workspace:* version: link:../../env/system-node-version @@ -3035,6 +3065,9 @@ importers: specifier: workspace:* version: link:../../packages/types devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/directory-fetcher': specifier: workspace:* version: 'link:' @@ -3088,6 +3121,9 @@ importers: specifier: 'catalog:' version: safe-execa@0.1.2 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/create-cafs-store': specifier: workspace:* version: link:../../store/create-cafs-store @@ -3164,6 +3200,9 @@ importers: specifier: 'catalog:' version: 6.0.2 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/cafs-types': specifier: workspace:* version: link:../../store/cafs-types @@ -3290,6 +3329,9 @@ importers: specifier: 'catalog:' version: 1.6.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/fs.indexed-pkg-importer': specifier: workspace:* version: 'link:' @@ -3560,6 +3602,9 @@ importers: specifier: 'catalog:' version: '@pnpm/ramda@0.28.1' devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/lockfile.filtering': specifier: workspace:* version: 'link:' @@ -3636,6 +3681,9 @@ importers: specifier: 'catalog:' version: 5.0.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/lockfile.fs': specifier: workspace:* version: 'link:' @@ -4064,6 +4112,9 @@ importers: specifier: 'catalog:' version: 3.0.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/constants': specifier: workspace:* version: link:../../packages/constants @@ -4340,6 +4391,9 @@ importers: specifier: 'catalog:' version: 1.0.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../logger @@ -4414,6 +4468,9 @@ importers: specifier: 'catalog:' version: 1.0.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/error': specifier: workspace:* version: link:../error @@ -4467,6 +4524,9 @@ importers: specifier: 'catalog:' version: 0.0.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../../packages/logger @@ -4607,6 +4667,9 @@ importers: specifier: 'catalog:' version: 0.2.14 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/logger': specifier: workspace:* version: link:../../packages/logger @@ -4885,6 +4948,9 @@ importers: specifier: 'catalog:' version: 7.7.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/assert-project': specifier: workspace:* version: link:../../__utils__/assert-project @@ -5331,6 +5397,9 @@ importers: specifier: 'catalog:' version: 6.0.5 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/link-bins': specifier: workspace:* version: 'link:' @@ -5750,6 +5819,9 @@ importers: specifier: 'catalog:' version: '@pnpm/which@3.0.1' devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/assert-project': specifier: workspace:* version: link:../../__utils__/assert-project @@ -6237,6 +6309,9 @@ importers: specifier: 2.4.0 version: 2.4.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/assert-project': specifier: workspace:* version: link:../__utils__/assert-project @@ -6803,6 +6878,9 @@ importers: specifier: 'catalog:' version: 4.3.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/catalogs.config': specifier: workspace:* version: link:../../catalogs/config @@ -7345,6 +7423,9 @@ importers: specifier: 'catalog:' version: 7.7.1 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/constants': specifier: workspace:* version: link:../../packages/constants @@ -8258,6 +8339,9 @@ importers: specifier: 'catalog:' version: 3.1.0 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/store-path': specifier: workspace:* version: 'link:' @@ -8363,6 +8447,9 @@ importers: specifier: 'catalog:' version: 1.0.3 devDependencies: + '@jest/globals': + specifier: 'catalog:' + version: 29.7.0 '@pnpm/env.path': specifier: workspace:* version: link:../../env/path @@ -8413,7 +8500,7 @@ importers: version: link:../fs/symlink-dependency '@rushstack/worker-pool': specifier: 'catalog:' - version: 0.4.9(@types/node@24.3.0) + version: 0.4.9(@types/node@22.15.30) is-windows: specifier: 'catalog:' version: 1.0.2 @@ -8771,6 +8858,10 @@ packages: resolution: {integrity: sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==} engines: {node: '>=6.9.0'} + '@babel/generator@7.27.5': + resolution: {integrity: sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==} + engines: {node: '>=6.9.0'} + '@babel/generator@7.28.3': resolution: {integrity: sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==} engines: {node: '>=6.9.0'} @@ -8801,6 +8892,12 @@ packages: resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} engines: {node: '>=6.9.0'} + '@babel/helper-module-transforms@7.27.3': + resolution: {integrity: sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@babel/helper-module-transforms@7.28.3': resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==} engines: {node: '>=6.9.0'} @@ -8837,6 +8934,10 @@ packages: resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} engines: {node: '>=6.9.0'} + '@babel/helpers@7.27.4': + resolution: {integrity: sha512-Y+bO6U+I7ZKaM5G5rDUZiYfUvQPUibYmAFe7EnKdnKBbVXDZxvp+MWOH5gYciY0EPk4EScsuFMQBbEfpdRKSCQ==} + engines: {node: '>=6.9.0'} + '@babel/helpers@7.28.3': resolution: {integrity: sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==} engines: {node: '>=6.9.0'} @@ -8848,6 +8949,13 @@ packages: peerDependencies: '@babel/types': '*' + '@babel/parser@7.27.5': + resolution: {integrity: sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==} + engines: {node: '>=6.0.0'} + hasBin: true + peerDependencies: + '@babel/types': '*' + '@babel/parser@7.28.3': resolution: {integrity: sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==} engines: {node: '>=6.0.0'} @@ -8972,6 +9080,10 @@ packages: resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} + '@babel/traverse@7.27.4': + resolution: {integrity: sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==} + engines: {node: '>=6.9.0'} + '@babel/traverse@7.28.3': resolution: {integrity: sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==} engines: {node: '>=6.9.0'} @@ -8984,6 +9096,10 @@ packages: resolution: {integrity: sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==} engines: {node: '>=6.9.0'} + '@babel/types@7.27.3': + resolution: {integrity: sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw==} + engines: {node: '>=6.9.0'} + '@babel/types@7.28.2': resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==} engines: {node: '>=6.9.0'} @@ -9586,18 +9702,34 @@ packages: resolution: {integrity: sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/environment@29.7.0': + resolution: {integrity: sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/environment@30.0.5': resolution: {integrity: sha512-aRX7WoaWx1oaOkDQvCWImVQ8XNtdv5sEWgk4gxR6NXb7WBUnL5sRak4WRzIQRZ1VTWPvV4VI4mgGjNL9TeKMYA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/expect-utils@29.7.0': + resolution: {integrity: sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/expect-utils@30.0.5': resolution: {integrity: sha512-F3lmTT7CXWYywoVUGTCmom0vXq3HTTkaZyTAzIy+bXSBizB7o5qzlC9VCtq0arOa8GqmNsbg/cE9C6HLn7Szew==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/expect@29.7.0': + resolution: {integrity: sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/expect@30.0.5': resolution: {integrity: sha512-6udac8KKrtTtC+AXZ2iUN/R7dp7Ydry+Fo6FPFnDG54wjVMnb6vW/XNlf7Xj8UDjAE3aAVAsR4KFyKk3TCXmTA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/fake-timers@29.7.0': + resolution: {integrity: sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/fake-timers@30.0.5': resolution: {integrity: sha512-ZO5DHfNV+kgEAeP3gK3XlpJLL4U3Sz6ebl/n68Uwt64qFFs5bv4bfEEjyRGK5uM0C90ewooNgFuKMdkbEoMEXw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -9606,6 +9738,10 @@ packages: resolution: {integrity: sha512-AyYdemXCptSRFirI5EPazNxyPwAL0jXt3zceFjaj8NFiKP9pOi0bfXonf6qkf82z2t3QWPeLCWWw4stPBzctLw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/globals@29.7.0': + resolution: {integrity: sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/globals@30.0.5': resolution: {integrity: sha512-7oEJT19WW4oe6HR7oLRvHxwlJk2gev0U9px3ufs8sX9PoD1Eza68KF0/tlN7X0dq/WVsBScXQGgCldA1V9Y/jA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -9647,10 +9783,18 @@ packages: resolution: {integrity: sha512-Aea/G1egWoIIozmDD7PBXUOxkekXl7ueGzrsGGi1SbeKgQqCYCIf+wfbflEbf2LiPxL8j2JZGLyrzZagjvW4YQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/transform@29.7.0': + resolution: {integrity: sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/transform@30.0.5': resolution: {integrity: sha512-Vk8amLQCmuZyy6GbBht1Jfo9RSdBtg7Lks+B0PecnjI8J+PCLQPGh7uI8Q/2wwpW2gLdiAfiHNsmekKlywULqg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + '@jest/types@29.6.3': + resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/types@30.0.5': resolution: {integrity: sha512-aREYa3aku9SSnea4aX6bhKn4bgv3AXkgijoQgbYV3yvbiGt6z+MQ85+6mIhx9DsKW2BuB/cLR/A+tcMThx+KLQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -9658,12 +9802,23 @@ packages: '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.5.5': - resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} '@jridgewell/trace-mapping@0.3.30': resolution: {integrity: sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==} @@ -10403,8 +10558,8 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - '@sinclair/typebox@0.34.39': - resolution: {integrity: sha512-keEoFsevmLwAedzacnTVmra66GViRH3fhWO1M+nZ8rUgpPJyN4mcvqlGr3QMrQXx4L8KNwW0q9/BeHSEoO4teg==} + '@sinclair/typebox@0.34.40': + resolution: {integrity: sha512-gwBNIP8ZAYev/ORDWW0QvxdwPXwxBtLsdsJgSc7eDIRt8ubP+rxUBzPsrwnu16fgEF8Bx4lh/+mvQvJzcTM6Kw==} '@sindresorhus/is@4.6.0': resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} @@ -10462,8 +10617,8 @@ packages: '@types/babel__template@7.4.4': resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} - '@types/babel__traverse@7.28.0': - resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + '@types/babel__traverse@7.20.7': + resolution: {integrity: sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==} '@types/bintrees@1.0.6': resolution: {integrity: sha512-pZWT4Bz+tWwxlDspSjdoIza4PE5lbGI4Xvs3FZV/2v5m5SDA8LwNpU8AXxlndmARO7OaQ1Vf3zFenOsNMzaRkQ==} @@ -10561,18 +10716,18 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@18.19.111': - resolution: {integrity: sha512-90sGdgA+QLJr1F9X79tQuEut0gEYIfkX9pydI4XGRgvFo9g2JWswefI+WUSUHPYVBHYSEfTEqBxA5hQvAZB3Mw==} + '@types/node@18.19.110': + resolution: {integrity: sha512-WW2o4gTmREtSnqKty9nhqF/vA0GKd0V/rbC0OyjSk9Bz6bzlsXKT+i7WDdS/a0z74rfT2PO4dArVCSnapNLA5Q==} '@types/node@20.5.1': resolution: {integrity: sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==} + '@types/node@22.15.29': + resolution: {integrity: sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==} + '@types/node@22.15.30': resolution: {integrity: sha512-6Q7lr06bEHdlfplU6YRbgG1SFBdlsfNC4/lX+SkhiTs0cpJkOElmWls8PxDFv4yY/xKb8Y6SO0OmSX4wgqTZbA==} - '@types/node@24.3.0': - resolution: {integrity: sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==} - '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -11260,6 +11415,10 @@ packages: peerDependencies: '@babel/core': ^7.11.0 + babel-plugin-istanbul@6.1.1: + resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} + engines: {node: '>=8'} + babel-plugin-istanbul@7.0.0: resolution: {integrity: sha512-C5OzENSx/A+gt7t4VH1I2XsflxyPUmXRFPKBxt33xncdOmq7oROVM3bZv9Ysjjkv8OJYDMa+tKuKMvqU/H3xdw==} engines: {node: '>=12'} @@ -11268,10 +11427,10 @@ packages: resolution: {integrity: sha512-zTPME3pI50NsFW8ZBaVIOeAxzEY7XHlmWeXXu9srI+9kNfzCUTy8MFan46xOGZY8NZThMqq+e3qZUKsvXbasnQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - babel-preset-current-node-syntax@1.2.0: - resolution: {integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==} + babel-preset-current-node-syntax@1.1.0: + resolution: {integrity: sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==} peerDependencies: - '@babel/core': ^7.0.0 || ^8.0.0-0 + '@babel/core': ^7.0.0 babel-preset-jest@30.0.1: resolution: {integrity: sha512-+YHejD5iTWI46cZmcc/YtX4gaKBtdqCHCVfuVinizVpbmyjO3zYmeuyFdfA8duRqQZfgCAMlsfmkVbJ+e2MAJw==} @@ -11508,8 +11667,8 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} - ci-info@4.3.0: - resolution: {integrity: sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==} + ci-info@4.2.0: + resolution: {integrity: sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==} engines: {node: '>=8'} cjs-module-lexer@2.1.0: @@ -12319,6 +12478,10 @@ packages: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} engines: {node: '>=6'} + expect@29.7.0: + resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + expect@30.0.5: resolution: {integrity: sha512-P0te2pt+hHI5qLJkIR+iMvS+lYUZml8rKKsohVHAGY+uClp9XVbdyYNJOIjSRpHVp8s8YqxJCiHUkSYZGr8rtQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -12711,6 +12874,10 @@ packages: resolution: {integrity: sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==} engines: {node: '>=8'} + globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + globals@13.24.0: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} @@ -13269,6 +13436,10 @@ packages: resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} + istanbul-lib-instrument@5.2.1: + resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} + engines: {node: '>=8'} + istanbul-lib-instrument@6.0.3: resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} engines: {node: '>=10'} @@ -13341,6 +13512,10 @@ packages: resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-haste-map@29.7.0: + resolution: {integrity: sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-haste-map@30.0.5: resolution: {integrity: sha512-dkmlWNlsTSR0nH3nRfW5BKbqHefLZv0/6LCccG0xFCTWcJu8TuEwG+5Cm75iBfjVoockmO6J35o5gxtFSn5xeg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -13349,14 +13524,26 @@ packages: resolution: {integrity: sha512-3Uxr5uP8jmHMcsOtYMRB/zf1gXN3yUIc+iPorhNETG54gErFIiUhLvyY/OggYpSMOEYqsmRxmuU4ZOoX5jpRFg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-matcher-utils@29.7.0: + resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-matcher-utils@30.0.5: resolution: {integrity: sha512-uQgGWt7GOrRLP1P7IwNWwK1WAQbq+m//ZY0yXygyfWp0rJlksMSLQAA4wYQC3b6wl3zfnchyTx+k3HZ5aPtCbQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-message-util@29.7.0: + resolution: {integrity: sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-message-util@30.0.5: resolution: {integrity: sha512-NAiDOhsK3V7RU0Aa/HnrQo+E4JlbarbmI3q6Pi4KcxicdtjV82gcIUrejOtczChtVQR4kddu1E1EJlW6EN9IyA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-mock@29.7.0: + resolution: {integrity: sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-mock@30.0.5: resolution: {integrity: sha512-Od7TyasAAQX/6S+QCbN6vZoWOMwlTtzzGuxJku1GhGanAjz9y+QsQkpScDmETvdc9aSXyJ/Op4rhpMYBWW91wQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -13370,6 +13557,10 @@ packages: jest-resolve: optional: true + jest-regex-util@29.6.3: + resolution: {integrity: sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-regex-util@30.0.1: resolution: {integrity: sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -13390,10 +13581,18 @@ packages: resolution: {integrity: sha512-7oySNDkqpe4xpX5PPiJTe5vEa+Ak/NnNz2bGYZrA1ftG3RL3EFlHaUkA1Cjx+R8IhK0Vg43RML5mJedGTPNz3A==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-snapshot@29.7.0: + resolution: {integrity: sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-snapshot@30.0.5: resolution: {integrity: sha512-T00dWU/Ek3LqTp4+DcW6PraVxjk28WY5Ua/s+3zUKSERZSNyxTqhDXCWKG5p2HAJ+crVQ3WJ2P9YVHpj1tkW+g==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-util@29.7.0: + resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-util@30.0.5: resolution: {integrity: sha512-pvyPWssDZR0FlfMxCBoc0tvM8iUEskaRFALUtGQYzVEAqisAztmy+R8LnU14KT4XA0H/a5HMVTXat1jLne010g==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -13406,6 +13605,10 @@ packages: resolution: {integrity: sha512-z9slj/0vOwBDBjN3L4z4ZYaA+pG56d6p3kTUhFRYGvXbXMWhXmb/FIxREZCD06DYUwDKKnj2T80+Pb71CQ0KEg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + jest-worker@29.7.0: + resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-worker@30.0.5: resolution: {integrity: sha512-ojRXsWzEP16NdUuBw/4H/zkZdHOa7MMYCk4E430l+8fELeLg/mqmMlRhjL7UNZvQrDmnovWZV4DxX03fZF48fQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} @@ -14402,8 +14605,8 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - picomatch@4.0.3: - resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} engines: {node: '>=12'} pidtree@0.6.0: @@ -15626,9 +15829,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici-types@7.10.0: - resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==} - unified@9.2.2: resolution: {integrity: sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==} @@ -15871,6 +16071,10 @@ packages: write-file-atomic@3.0.3: resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} + write-file-atomic@4.0.2: + resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} + engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + write-file-atomic@5.0.1: resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -15975,8 +16179,8 @@ snapshots: '@ampproject/remapping@2.3.0': dependencies: - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.30 + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 '@arcanis/slice-ansi@1.1.1': dependencies: @@ -15994,14 +16198,14 @@ snapshots: dependencies: '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.27.1 - '@babel/generator': 7.28.3 + '@babel/generator': 7.27.5 '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-module-transforms': 7.28.3(@babel/core@7.26.10) - '@babel/helpers': 7.28.3 - '@babel/parser': 7.28.3(@babel/types@7.28.2) + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.26.10) + '@babel/helpers': 7.27.4 + '@babel/parser': 7.27.5(@babel/types@7.27.3) '@babel/template': 7.27.2 - '@babel/traverse': 7.28.3 - '@babel/types': 7.28.2 + '@babel/traverse': 7.27.4 + '@babel/types': 7.27.3 convert-source-map: 2.0.0 debug: 4.4.1 gensync: 1.0.0-beta.2 @@ -16032,11 +16236,19 @@ snapshots: '@babel/generator@7.23.0': dependencies: - '@babel/types': 7.28.2 - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.30 + '@babel/types': 7.27.3 + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 + '@babel/generator@7.27.5': + dependencies: + '@babel/parser': 7.27.5(@babel/types@7.27.3) + '@babel/types': 7.27.3 + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 3.1.0 + '@babel/generator@7.28.3': dependencies: '@babel/parser': 7.28.3(@babel/types@7.28.2) @@ -16047,7 +16259,7 @@ snapshots: '@babel/helper-annotate-as-pure@7.27.3': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.27.3 '@babel/helper-compilation-targets@7.27.2': dependencies: @@ -16065,7 +16277,7 @@ snapshots: '@babel/helper-optimise-call-expression': 7.27.1 '@babel/helper-replace-supers': 7.27.1(@babel/core@7.26.10) '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 - '@babel/traverse': 7.28.3 + '@babel/traverse': 7.27.4 semver: 7.7.2 transitivePeerDependencies: - supports-color @@ -16074,24 +16286,24 @@ snapshots: '@babel/helper-member-expression-to-functions@7.27.1': dependencies: - '@babel/traverse': 7.28.3 - '@babel/types': 7.28.2 + '@babel/traverse': 7.27.4 + '@babel/types': 7.27.3 transitivePeerDependencies: - supports-color '@babel/helper-module-imports@7.27.1': dependencies: - '@babel/traverse': 7.28.3 - '@babel/types': 7.28.2 + '@babel/traverse': 7.27.4 + '@babel/types': 7.27.3 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.28.3(@babel/core@7.26.10)': + '@babel/helper-module-transforms@7.27.3(@babel/core@7.26.10)': dependencies: '@babel/core': 7.26.10 '@babel/helper-module-imports': 7.27.1 '@babel/helper-validator-identifier': 7.27.1 - '@babel/traverse': 7.28.3 + '@babel/traverse': 7.27.4 transitivePeerDependencies: - supports-color @@ -16106,7 +16318,7 @@ snapshots: '@babel/helper-optimise-call-expression@7.27.1': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.27.3 '@babel/helper-plugin-utils@7.27.1': {} @@ -16115,14 +16327,14 @@ snapshots: '@babel/core': 7.26.10 '@babel/helper-member-expression-to-functions': 7.27.1 '@babel/helper-optimise-call-expression': 7.27.1 - '@babel/traverse': 7.28.3 + '@babel/traverse': 7.27.4 transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.27.1': dependencies: - '@babel/traverse': 7.28.3 - '@babel/types': 7.28.2 + '@babel/traverse': 7.27.4 + '@babel/types': 7.27.3 transitivePeerDependencies: - supports-color @@ -16132,6 +16344,11 @@ snapshots: '@babel/helper-validator-option@7.27.1': {} + '@babel/helpers@7.27.4': + dependencies: + '@babel/template': 7.27.2 + '@babel/types': 7.27.3 + '@babel/helpers@7.28.3': dependencies: '@babel/template': 7.27.2 @@ -16141,10 +16358,18 @@ snapshots: dependencies: '@babel/types': 7.23.0 + '@babel/parser@7.27.5(@babel/types@7.27.3)': + dependencies: + '@babel/types': 7.27.3 + '@babel/parser@7.28.3(@babel/types@7.26.10)': dependencies: '@babel/types': 7.26.10 + '@babel/parser@7.28.3(@babel/types@7.27.3)': + dependencies: + '@babel/types': 7.27.3 + '@babel/parser@7.28.3(@babel/types@7.28.2)': dependencies: '@babel/types': 7.28.2 @@ -16153,7 +16378,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.28.3)': dependencies: @@ -16164,7 +16388,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16175,7 +16398,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.28.3)': dependencies: @@ -16186,7 +16408,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.28.3)': dependencies: @@ -16197,7 +16418,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-import-attributes@7.27.1(@babel/core@7.28.3)': dependencies: @@ -16208,7 +16428,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.28.3)': dependencies: @@ -16219,7 +16438,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16240,7 +16458,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.28.3)': dependencies: @@ -16251,7 +16468,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16262,7 +16478,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.28.3)': dependencies: @@ -16273,7 +16488,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16284,7 +16498,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16295,7 +16508,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.28.3)': dependencies: @@ -16306,7 +16518,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.28.3)': dependencies: @@ -16317,7 +16528,6 @@ snapshots: dependencies: '@babel/core': 7.26.10 '@babel/helper-plugin-utils': 7.27.1 - optional: true '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.28.3)': dependencies: @@ -16337,7 +16547,7 @@ snapshots: '@babel/plugin-transform-modules-commonjs@7.27.1(@babel/core@7.26.10)': dependencies: '@babel/core': 7.26.10 - '@babel/helper-module-transforms': 7.28.3(@babel/core@7.26.10) + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.26.10) '@babel/helper-plugin-utils': 7.27.1 transitivePeerDependencies: - supports-color @@ -16369,8 +16579,20 @@ snapshots: '@babel/template@7.27.2': dependencies: '@babel/code-frame': 7.27.1 - '@babel/parser': 7.28.3(@babel/types@7.28.2) - '@babel/types': 7.28.2 + '@babel/parser': 7.27.5(@babel/types@7.27.3) + '@babel/types': 7.27.3 + + '@babel/traverse@7.27.4': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.27.5 + '@babel/parser': 7.27.5(@babel/types@7.27.3) + '@babel/template': 7.27.2 + '@babel/types': 7.27.3 + debug: 4.4.1 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color '@babel/traverse@7.28.3': dependencies: @@ -16395,6 +16617,11 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.27.1 + '@babel/types@7.27.3': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@babel/types@7.28.2': dependencies: '@babel/helper-string-parser': 7.27.1 @@ -17086,7 +17313,7 @@ snapshots: '@jest/console@30.0.5': dependencies: '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 jest-message-util: 30.0.5 jest-util: 30.0.5 @@ -17100,14 +17327,14 @@ snapshots: '@jest/test-result': 30.0.5 '@jest/transform': 30.0.5(@babel/types@7.26.10) '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 ansi-escapes: 4.3.2 chalk: 4.1.2 - ci-info: 4.3.0 + ci-info: 4.2.0 exit-x: 0.2.2 graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) jest-changed-files: 30.0.5 - jest-config: 30.0.5(@babel/types@7.26.10)(@types/node@24.3.0)(ts-node@10.9.2(@types/node@22.15.30)(typescript@5.9.2)) + jest-config: 30.0.5(@babel/types@7.26.10)(@types/node@22.15.30)(ts-node@10.9.2(@types/node@22.15.30)(typescript@5.9.2)) jest-haste-map: 30.0.5 jest-message-util: 30.0.5 jest-regex-util: 30.0.1 @@ -17131,17 +17358,35 @@ snapshots: '@jest/diff-sequences@30.0.1': {} + '@jest/environment@29.7.0': + dependencies: + '@jest/fake-timers': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 22.15.29 + jest-mock: 29.7.0 + '@jest/environment@30.0.5': dependencies: '@jest/fake-timers': 30.0.5 '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 jest-mock: 30.0.5 + '@jest/expect-utils@29.7.0': + dependencies: + jest-get-type: 29.6.3 + '@jest/expect-utils@30.0.5': dependencies: '@jest/get-type': 30.0.1 + '@jest/expect@29.7.0': + dependencies: + expect: 29.7.0 + jest-snapshot: 29.7.0 + transitivePeerDependencies: + - supports-color + '@jest/expect@30.0.5': dependencies: expect: 30.0.5 @@ -17149,17 +17394,35 @@ snapshots: transitivePeerDependencies: - supports-color + '@jest/fake-timers@29.7.0': + dependencies: + '@jest/types': 29.6.3 + '@sinonjs/fake-timers': 10.3.0 + '@types/node': 22.15.29 + jest-message-util: 29.7.0 + jest-mock: 29.7.0 + jest-util: 29.7.0 + '@jest/fake-timers@30.0.5': dependencies: '@jest/types': 30.0.5 '@sinonjs/fake-timers': 13.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 jest-message-util: 30.0.5 jest-mock: 30.0.5 jest-util: 30.0.5 '@jest/get-type@30.0.1': {} + '@jest/globals@29.7.0': + dependencies: + '@jest/environment': 29.7.0 + '@jest/expect': 29.7.0 + '@jest/types': 29.6.3 + jest-mock: 29.7.0 + transitivePeerDependencies: + - supports-color + '@jest/globals@30.0.5': dependencies: '@jest/environment': 30.0.5 @@ -17171,7 +17434,7 @@ snapshots: '@jest/pattern@30.0.1': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.30 jest-regex-util: 30.0.1 '@jest/reporters@30.0.5(@babel/types@7.26.10)': @@ -17182,7 +17445,7 @@ snapshots: '@jest/transform': 30.0.5(@babel/types@7.26.10) '@jest/types': 30.0.5 '@jridgewell/trace-mapping': 0.3.30 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit-x: 0.2.2 @@ -17209,7 +17472,7 @@ snapshots: '@jest/schemas@30.0.5': dependencies: - '@sinclair/typebox': 0.34.39 + '@sinclair/typebox': 0.34.40 '@jest/snapshot-utils@30.0.5': dependencies: @@ -17238,6 +17501,27 @@ snapshots: jest-haste-map: 30.0.5 slash: 3.0.0 + '@jest/transform@29.7.0(@babel/types@7.27.3)': + dependencies: + '@babel/core': 7.26.10 + '@jest/types': 29.6.3 + '@jridgewell/trace-mapping': 0.3.25 + babel-plugin-istanbul: 6.1.1(@babel/types@7.27.3) + chalk: 4.1.2 + convert-source-map: 2.0.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) + jest-haste-map: 29.7.0 + jest-regex-util: 29.6.3 + jest-util: 29.7.0 + micromatch: 4.0.8 + pirates: 4.0.7 + slash: 3.0.0 + write-file-atomic: 4.0.2 + transitivePeerDependencies: + - '@babel/types' + - supports-color + '@jest/transform@30.0.5(@babel/types@7.26.10)': dependencies: '@babel/core': 7.28.3 @@ -17280,34 +17564,56 @@ snapshots: - '@babel/types' - supports-color + '@jest/types@29.6.3': + dependencies: + '@jest/schemas': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 22.15.29 + '@types/yargs': 17.0.33 + chalk: 4.1.2 + '@jest/types@30.0.5': dependencies: '@jest/pattern': 30.0.1 '@jest/schemas': 30.0.5 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 24.3.0 + '@types/node': 22.15.30 '@types/yargs': 17.0.33 chalk: 4.1.2 '@jridgewell/gen-mapping@0.3.13': dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.30 + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping@0.3.30': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.5.0 '@manypkg/find-root@1.1.0': dependencies: @@ -18565,13 +18871,9 @@ snapshots: optionalDependencies: '@types/node': 22.15.30 - '@rushstack/worker-pool@0.4.9(@types/node@24.3.0)': - optionalDependencies: - '@types/node': 24.3.0 - '@sinclair/typebox@0.27.8': {} - '@sinclair/typebox@0.34.39': {} + '@sinclair/typebox@0.34.40': {} '@sindresorhus/is@4.6.0': {} @@ -18618,7 +18920,7 @@ snapshots: '@types/adm-zip@0.5.7': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/archy@0.0.33': {} @@ -18628,7 +18930,7 @@ snapshots: '@babel/types': 7.28.2 '@types/babel__generator': 7.27.0 '@types/babel__template': 7.4.4 - '@types/babel__traverse': 7.28.0 + '@types/babel__traverse': 7.20.7 '@types/babel__generator@7.27.0': dependencies: @@ -18639,7 +18941,7 @@ snapshots: '@babel/parser': 7.28.3(@babel/types@7.28.2) '@babel/types': 7.28.2 - '@types/babel__traverse@7.28.0': + '@types/babel__traverse@7.20.7': dependencies: '@babel/types': 7.28.2 @@ -18649,33 +18951,33 @@ snapshots: '@types/byline@4.2.36': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/cacheable-request@6.0.3': dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/responselike': 1.0.3 '@types/cross-spawn@6.0.6': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/emscripten@1.40.1': {} '@types/fs-extra@9.0.13': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/glob@8.1.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/graceful-fs@4.1.9': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/hosted-git-info@3.0.5': {} @@ -18683,7 +18985,7 @@ snapshots: '@types/http-proxy@1.17.16': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/ini@1.3.31': {} @@ -18693,7 +18995,7 @@ snapshots: '@types/isexe@2.0.2': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.30 '@types/istanbul-lib-coverage@2.0.6': {} @@ -18718,7 +19020,7 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/lodash.kebabcase@4.1.9': dependencies: @@ -18744,19 +19046,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@18.19.111': + '@types/node@18.19.110': dependencies: undici-types: 5.26.5 '@types/node@20.5.1': {} - '@types/node@22.15.30': + '@types/node@22.15.29': dependencies: undici-types: 6.21.0 - '@types/node@24.3.0': + '@types/node@22.15.30': dependencies: - undici-types: 7.10.0 + undici-types: 6.21.0 '@types/normalize-package-data@2.4.4': {} @@ -18774,14 +19076,14 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/retry@0.12.5': {} '@types/rimraf@3.0.2': dependencies: '@types/glob': 8.1.0 - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/semver@6.2.7': {} @@ -18799,7 +19101,7 @@ snapshots: '@types/ssri@7.1.5': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/stack-utils@2.0.3': {} @@ -18807,16 +19109,16 @@ snapshots: '@types/tar-stream@2.2.3': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/tar@6.1.13': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 minipass: 4.2.8 '@types/touch@3.1.5': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.30 '@types/treeify@1.0.3': {} @@ -18830,7 +19132,7 @@ snapshots: '@types/write-file-atomic@4.0.3': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@types/yargs-parser@21.0.3': {} @@ -18842,7 +19144,7 @@ snapshots: '@types/yazl@3.3.0': dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.29 '@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1(eslint@8.57.1)(typescript@5.9.2))(eslint@8.57.1)(typescript@5.9.2)': dependencies: @@ -19181,7 +19483,7 @@ snapshots: '@yarnpkg/shell': 4.1.2(typanion@3.14.0) camelcase: 5.3.1 chalk: 3.0.0 - ci-info: 4.3.0 + ci-info: 4.2.0 clipanion: 3.2.0-rc.6(typanion@3.14.0) cross-spawn: 7.0.6 diff: 5.2.0 @@ -19212,7 +19514,7 @@ snapshots: '@yarnpkg/shell': 4.1.2(typanion@3.14.0) camelcase: 5.3.1 chalk: 3.0.0 - ci-info: 4.3.0 + ci-info: 4.2.0 clipanion: 3.2.0-rc.6(typanion@3.14.0) cross-spawn: 7.0.6 diff: 5.2.0 @@ -19268,12 +19570,12 @@ snapshots: '@yarnpkg/pnp@4.0.8': dependencies: - '@types/node': 18.19.111 + '@types/node': 18.19.110 '@yarnpkg/fslib': 3.1.2 '@yarnpkg/pnp@4.1.1': dependencies: - '@types/node': 18.19.111 + '@types/node': 18.19.110 '@yarnpkg/fslib': 3.1.2 '@yarnpkg/shell@4.0.0(typanion@3.14.0)': @@ -19636,6 +19938,17 @@ snapshots: - '@babel/types' - supports-color + babel-plugin-istanbul@6.1.1(@babel/types@7.27.3): + dependencies: + '@babel/helper-plugin-utils': 7.27.1 + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-instrument: 5.2.1(@babel/types@7.27.3) + test-exclude: 6.0.0 + transitivePeerDependencies: + - '@babel/types' + - supports-color + babel-plugin-istanbul@7.0.0(@babel/types@7.26.10): dependencies: '@babel/helper-plugin-utils': 7.27.1 @@ -19664,7 +19977,7 @@ snapshots: '@babel/types': 7.28.2 '@types/babel__core': 7.20.5 - babel-preset-current-node-syntax@1.2.0(@babel/core@7.26.10): + babel-preset-current-node-syntax@1.1.0(@babel/core@7.26.10): dependencies: '@babel/core': 7.26.10 '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.26.10) @@ -19682,9 +19995,8 @@ snapshots: '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.26.10) '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.26.10) '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.26.10) - optional: true - babel-preset-current-node-syntax@1.2.0(@babel/core@7.28.3): + babel-preset-current-node-syntax@1.1.0(@babel/core@7.28.3): dependencies: '@babel/core': 7.28.3 '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.28.3) @@ -19707,14 +20019,14 @@ snapshots: dependencies: '@babel/core': 7.26.10 babel-plugin-jest-hoist: 30.0.1 - babel-preset-current-node-syntax: 1.2.0(@babel/core@7.26.10) + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.26.10) optional: true babel-preset-jest@30.0.1(@babel/core@7.28.3): dependencies: '@babel/core': 7.28.3 babel-plugin-jest-hoist: 30.0.1 - babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.3) + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.28.3) bail@1.0.5: {} @@ -19984,7 +20296,7 @@ snapshots: ci-info@3.9.0: {} - ci-info@4.3.0: {} + ci-info@4.2.0: {} cjs-module-lexer@2.1.0: {} @@ -20909,6 +21221,14 @@ snapshots: expand-template@2.0.3: {} + expect@29.7.0: + dependencies: + '@jest/expect-utils': 29.7.0 + jest-get-type: 29.6.3 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + expect@30.0.5: dependencies: '@jest/expect-utils': 30.0.5 @@ -21014,9 +21334,9 @@ snapshots: dependencies: bser: 2.1.1 - fdir@6.4.5(picomatch@4.0.3): + fdir@6.4.5(picomatch@4.0.2): optionalDependencies: - picomatch: 4.0.3 + picomatch: 4.0.2 fetch-blob@2.1.2: {} @@ -21390,6 +21710,8 @@ snapshots: dependencies: ini: 1.3.7 + globals@11.12.0: {} + globals@13.24.0: dependencies: type-fest: 0.20.2 @@ -21925,6 +22247,17 @@ snapshots: istanbul-lib-coverage@3.2.2: {} + istanbul-lib-instrument@5.2.1(@babel/types@7.27.3): + dependencies: + '@babel/core': 7.28.3 + '@babel/parser': 7.28.3(@babel/types@7.27.3) + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.2 + semver: 7.7.2 + transitivePeerDependencies: + - '@babel/types' + - supports-color + istanbul-lib-instrument@6.0.3(@babel/types@7.26.10): dependencies: '@babel/core': 7.28.3 @@ -21979,7 +22312,7 @@ snapshots: '@jest/expect': 30.0.5 '@jest/test-result': 30.0.5 '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 co: 4.6.0 dedent: 1.6.0 @@ -22029,7 +22362,7 @@ snapshots: '@jest/types': 30.0.5 babel-jest: 30.0.5(@babel/core@7.28.3)(@babel/types@7.26.10) chalk: 4.1.2 - ci-info: 4.3.0 + ci-info: 4.2.0 deepmerge: 4.3.1 glob: 10.4.5 graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) @@ -22054,40 +22387,6 @@ snapshots: - babel-plugin-macros - supports-color - jest-config@30.0.5(@babel/types@7.26.10)(@types/node@24.3.0)(ts-node@10.9.2(@types/node@22.15.30)(typescript@5.9.2)): - dependencies: - '@babel/core': 7.28.3 - '@jest/get-type': 30.0.1 - '@jest/pattern': 30.0.1 - '@jest/test-sequencer': 30.0.5 - '@jest/types': 30.0.5 - babel-jest: 30.0.5(@babel/core@7.28.3)(@babel/types@7.26.10) - chalk: 4.1.2 - ci-info: 4.3.0 - deepmerge: 4.3.1 - glob: 10.4.5 - graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) - jest-circus: 30.0.5(@babel/types@7.26.10) - jest-docblock: 30.0.1 - jest-environment-node: 30.0.5 - jest-regex-util: 30.0.1 - jest-resolve: 30.0.5 - jest-runner: 30.0.5(@babel/types@7.26.10) - jest-util: 30.0.5 - jest-validate: 30.0.5 - micromatch: 4.0.8 - parse-json: 5.2.0 - pretty-format: 30.0.5 - slash: 3.0.0 - strip-json-comments: 3.1.1 - optionalDependencies: - '@types/node': 24.3.0 - ts-node: 10.9.2(@types/node@22.15.30)(typescript@5.9.2) - transitivePeerDependencies: - - '@babel/types' - - babel-plugin-macros - - supports-color - jest-diff@29.7.0: dependencies: chalk: 4.1.2 @@ -22119,17 +22418,33 @@ snapshots: '@jest/environment': 30.0.5 '@jest/fake-timers': 30.0.5 '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 jest-mock: 30.0.5 jest-util: 30.0.5 jest-validate: 30.0.5 jest-get-type@29.6.3: {} + jest-haste-map@29.7.0: + dependencies: + '@jest/types': 29.6.3 + '@types/graceful-fs': 4.1.9 + '@types/node': 22.15.29 + anymatch: 3.1.3 + fb-watchman: 2.0.2 + graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) + jest-regex-util: 29.6.3 + jest-util: 29.7.0 + jest-worker: 29.7.0 + micromatch: 4.0.8 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.3 + jest-haste-map@30.0.5: dependencies: '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) @@ -22146,6 +22461,13 @@ snapshots: '@jest/get-type': 30.0.1 pretty-format: 30.0.5 + jest-matcher-utils@29.7.0: + dependencies: + chalk: 4.1.2 + jest-diff: 29.7.0 + jest-get-type: 29.6.3 + pretty-format: 29.7.0 + jest-matcher-utils@30.0.5: dependencies: '@jest/get-type': 30.0.1 @@ -22153,6 +22475,18 @@ snapshots: jest-diff: 30.0.5 pretty-format: 30.0.5 + jest-message-util@29.7.0: + dependencies: + '@babel/code-frame': 7.27.1 + '@jest/types': 29.6.3 + '@types/stack-utils': 2.0.3 + chalk: 4.1.2 + graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) + micromatch: 4.0.8 + pretty-format: 29.7.0 + slash: 3.0.0 + stack-utils: 2.0.6 + jest-message-util@30.0.5: dependencies: '@babel/code-frame': 7.27.1 @@ -22165,16 +22499,24 @@ snapshots: slash: 3.0.0 stack-utils: 2.0.6 + jest-mock@29.7.0: + dependencies: + '@jest/types': 29.6.3 + '@types/node': 22.15.29 + jest-util: 29.7.0 + jest-mock@30.0.5: dependencies: '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 jest-util: 30.0.5 jest-pnp-resolver@1.2.3(jest-resolve@30.0.5): optionalDependencies: jest-resolve: 30.0.5 + jest-regex-util@29.6.3: {} + jest-regex-util@30.0.1: {} jest-resolve-dependencies@30.0.5: @@ -22202,7 +22544,7 @@ snapshots: '@jest/test-result': 30.0.5 '@jest/transform': 30.0.5(@babel/types@7.26.10) '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 emittery: 0.13.1 exit-x: 0.2.2 @@ -22232,7 +22574,7 @@ snapshots: '@jest/test-result': 30.0.5 '@jest/transform': 30.0.5(@babel/types@7.26.10) '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 cjs-module-lexer: 2.1.0 collect-v8-coverage: 1.0.2 @@ -22251,6 +22593,31 @@ snapshots: - '@babel/types' - supports-color + jest-snapshot@29.7.0: + dependencies: + '@babel/core': 7.26.10 + '@babel/generator': 7.27.5 + '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.26.10) + '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.26.10) + '@babel/types': 7.27.3 + '@jest/expect-utils': 29.7.0 + '@jest/transform': 29.7.0(@babel/types@7.27.3) + '@jest/types': 29.6.3 + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.26.10) + chalk: 4.1.2 + expect: 29.7.0 + graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) + jest-diff: 29.7.0 + jest-get-type: 29.6.3 + jest-matcher-utils: 29.7.0 + jest-message-util: 29.7.0 + jest-util: 29.7.0 + natural-compare: 1.4.0 + pretty-format: 29.7.0 + semver: 7.7.2 + transitivePeerDependencies: + - supports-color + jest-snapshot@30.0.5: dependencies: '@babel/core': 7.28.3 @@ -22263,7 +22630,7 @@ snapshots: '@jest/snapshot-utils': 30.0.5 '@jest/transform': 30.0.5(@babel/types@7.28.2) '@jest/types': 30.0.5 - babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.3) + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.28.3) chalk: 4.1.2 expect: 30.0.5 graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) @@ -22277,14 +22644,23 @@ snapshots: transitivePeerDependencies: - supports-color + jest-util@29.7.0: + dependencies: + '@jest/types': 29.6.3 + '@types/node': 22.15.29 + chalk: 4.1.2 + ci-info: 3.9.0 + graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) + picomatch: 2.3.1 + jest-util@30.0.5: dependencies: '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 chalk: 4.1.2 - ci-info: 4.3.0 + ci-info: 4.2.0 graceful-fs: 4.2.11(patch_hash=68ebc232025360cb3dcd3081f4067f4e9fc022ab6b6f71a3230e86c7a5b337d1) - picomatch: 4.0.3 + picomatch: 4.0.2 jest-validate@30.0.5: dependencies: @@ -22299,16 +22675,23 @@ snapshots: dependencies: '@jest/test-result': 30.0.5 '@jest/types': 30.0.5 - '@types/node': 24.3.0 + '@types/node': 22.15.30 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 jest-util: 30.0.5 string-length: 4.0.2 + jest-worker@29.7.0: + dependencies: + '@types/node': 22.15.29 + jest-util: 29.7.0 + merge-stream: 2.0.0 + supports-color: 8.1.1 + jest-worker@30.0.5: dependencies: - '@types/node': 24.3.0 + '@types/node': 22.15.30 '@ungap/structured-clone': 1.3.0 jest-util: 30.0.5 merge-stream: 2.0.0 @@ -23305,7 +23688,7 @@ snapshots: picomatch@2.3.1: {} - picomatch@4.0.3: {} + picomatch@4.0.2: {} pidtree@0.6.0: {} @@ -24425,8 +24808,8 @@ snapshots: tinyglobby@0.2.14: dependencies: - fdir: 6.4.5(picomatch@4.0.3) - picomatch: 4.0.3 + fdir: 6.4.5(picomatch@4.0.2) + picomatch: 4.0.2 tinylogic@2.0.0: {} @@ -24666,8 +25049,6 @@ snapshots: undici-types@6.21.0: {} - undici-types@7.10.0: {} - unified@9.2.2: dependencies: '@types/unist': 2.0.11 @@ -24766,7 +25147,7 @@ snapshots: v8-to-istanbul@9.3.0: dependencies: - '@jridgewell/trace-mapping': 0.3.30 + '@jridgewell/trace-mapping': 0.3.25 '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 @@ -25043,6 +25424,11 @@ snapshots: signal-exit: 3.0.7 typedarray-to-buffer: 3.1.5 + write-file-atomic@4.0.2: + dependencies: + imurmurhash: 0.1.4 + signal-exit: 3.0.7 + write-file-atomic@5.0.1: dependencies: imurmurhash: 0.1.4 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 016005c786..79af3632c6 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -57,6 +57,7 @@ catalog: '@eslint/eslintrc': 3.1.0 '@eslint/js': 9.9.1 '@gwhitney/detect-indent': 7.0.1 + '@jest/globals': 29.7.0 '@pnpm/builder.policy': 3.0.1 '@pnpm/byline': ^1.0.0 '@pnpm/colorize-semver-diff': ^1.0.1 diff --git a/pnpm/package.json b/pnpm/package.json index 6a635a4dca..32d49b9f50 100644 --- a/pnpm/package.json +++ b/pnpm/package.json @@ -76,6 +76,7 @@ "node-gyp": "^11.1.0" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/assert-project": "workspace:*", "@pnpm/byline": "catalog:", "@pnpm/cache.commands": "workspace:*", diff --git a/pnpm/src/checkForUpdates.test.ts b/pnpm/src/checkForUpdates.test.ts index a2238976fb..8052818e39 100644 --- a/pnpm/src/checkForUpdates.test.ts +++ b/pnpm/src/checkForUpdates.test.ts @@ -1,6 +1,7 @@ import { getConfig } from '@pnpm/config' import { updateCheckLogger } from '@pnpm/core-loggers' import { prepareEmpty } from '@pnpm/prepare' +import { jest } from '@jest/globals' import loadJsonFile from 'load-json-file' import writeJsonFile from 'write-json-file' import { checkForUpdates } from './checkForUpdates' diff --git a/releasing/plugin-commands-publishing/package.json b/releasing/plugin-commands-publishing/package.json index 4fd5ea7ca8..ff679d51ac 100644 --- a/releasing/plugin-commands-publishing/package.json +++ b/releasing/plugin-commands-publishing/package.json @@ -71,6 +71,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/catalogs.config": "workspace:*", "@pnpm/logger": "workspace:*", "@pnpm/plugin-commands-publishing": "workspace:*", diff --git a/releasing/plugin-commands-publishing/test/gitChecks.ts b/releasing/plugin-commands-publishing/test/gitChecks.ts index b4d3ac523e..c15f07147c 100644 --- a/releasing/plugin-commands-publishing/test/gitChecks.ts +++ b/releasing/plugin-commands-publishing/test/gitChecks.ts @@ -8,6 +8,7 @@ import tempy from 'tempy' import * as enquirer from 'enquirer' import { publish } from '@pnpm/plugin-commands-publishing' +import { jest } from '@jest/globals' import { DEFAULT_OPTS } from './utils' jest.mock('enquirer', () => ({ prompt: jest.fn() })) diff --git a/reviewing/license-scanner/package.json b/reviewing/license-scanner/package.json index 100865f8fd..396c99be6c 100644 --- a/reviewing/license-scanner/package.json +++ b/reviewing/license-scanner/package.json @@ -54,6 +54,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/constants": "workspace:*", "@pnpm/license-scanner": "workspace:*", "@pnpm/logger": "workspace:*", diff --git a/reviewing/license-scanner/test/licenses.spec.ts b/reviewing/license-scanner/test/licenses.spec.ts index 037fbfe5ac..51aad988a5 100644 --- a/reviewing/license-scanner/test/licenses.spec.ts +++ b/reviewing/license-scanner/test/licenses.spec.ts @@ -2,11 +2,12 @@ import { findDependencyLicenses } from '@pnpm/license-scanner' import { LOCKFILE_VERSION } from '@pnpm/constants' import { type DepPath, type ProjectManifest, type Registries, type ProjectId } from '@pnpm/types' import { type LockfileObject } from '@pnpm/lockfile.fs' +import { jest } from '@jest/globals' import { type LicensePackage } from '../lib/licenses' import { type GetPackageInfoOptions, type PackageInfo } from '../lib/getPkgInfo' jest.mock('../lib/getPkgInfo', () => { - const actualModule = jest.requireActual('../lib/getPkgInfo') + const actualModule = jest.requireActual('../lib/getPkgInfo') return { ...actualModule, getPkgInfo: async (pkg: PackageInfo, _opts: GetPackageInfoOptions): Promise< diff --git a/store/store-path/package.json b/store/store-path/package.json index 8efcf66094..8d4f1f0ef0 100644 --- a/store/store-path/package.json +++ b/store/store-path/package.json @@ -41,6 +41,7 @@ "touch": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/store-path": "workspace:*", "@types/is-windows": "catalog:", "@types/node": "catalog:", diff --git a/store/store-path/test/index.ts b/store/store-path/test/index.ts index 8209df6cc3..03842949e1 100644 --- a/store/store-path/test/index.ts +++ b/store/store-path/test/index.ts @@ -1,5 +1,6 @@ import { STORE_VERSION } from '@pnpm/constants' import { getStorePath } from '@pnpm/store-path' +import { jest } from '@jest/globals' import isWindows from 'is-windows' jest.mock('os') diff --git a/tools/plugin-commands-self-updater/package.json b/tools/plugin-commands-self-updater/package.json index c88bcea5db..05d356e6d4 100644 --- a/tools/plugin-commands-self-updater/package.json +++ b/tools/plugin-commands-self-updater/package.json @@ -50,6 +50,7 @@ "@pnpm/logger": "catalog:" }, "devDependencies": { + "@jest/globals": "catalog:", "@pnpm/env.path": "workspace:*", "@pnpm/prepare": "workspace:*", "@pnpm/tools.plugin-commands-self-updater": "workspace:*", diff --git a/tools/plugin-commands-self-updater/test/selfUpdate.test.ts b/tools/plugin-commands-self-updater/test/selfUpdate.test.ts index d2bb6392de..9f5ab5c767 100644 --- a/tools/plugin-commands-self-updater/test/selfUpdate.test.ts +++ b/tools/plugin-commands-self-updater/test/selfUpdate.test.ts @@ -3,13 +3,14 @@ import path from 'path' import { prependDirsToPath } from '@pnpm/env.path' import { tempDir, prepare as prepareWithPkg } from '@pnpm/prepare' import { selfUpdate } from '@pnpm/tools.plugin-commands-self-updater' +import { jest } from '@jest/globals' import spawn from 'cross-spawn' import nock from 'nock' const pnpmTarballPath = require.resolve('@pnpm/tgz-fixtures/tgz/pnpm-9.1.0.tgz') jest.mock('@pnpm/cli-meta', () => { - const actualModule = jest.requireActual('@pnpm/cli-meta') + const actualModule = jest.requireActual('@pnpm/cli-meta') return { ...actualModule,