Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
chore: vitest (#2118)
Vlad Franguf448f81bc3c9
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex a56fcc834..d2e5cb445 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -36,6 +36,230 @@ sudo ifconfig lo0 alias 127.0.0.3 upsudo ifconfig lo0 alias 127.0.0.4 up```+## Testing in Crawlee with vitest++There are a few small differences between how testing in jest and vitest works. Mostly, they relate to what to do, and not do anymore.++### Configuration file for tests created in the package they are for++You will need to use this tsconfig.json in the `test` folder in the package (say, if you were adding a test to `packages/core` and there wasn't a `tsconfig.json` file already there)++```json+{+ "extends": "../../../tsconfig.json",+ "include": ["**/*", "../../**/*"],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}+```++### Mocking modules++Mocks are pretty much the same when it comes to jest vs vitest. One crucial difference is that you no longer need to unmock modules in an afterAll block, as they are mocked per test file.++#### Previous++```ts+jest.mock('node:os', () => {+ const original: typeof import('node:os') = jest.requireActual('node:os');+ return {+ ...original,+ platform: () => 'darwin',+ freemem: jest.fn(),+ };+});++afterAll(() => {+ jest.unmock('node:os');+});+```++#### Now++```ts+vitest.mock('node:os', async (importActual) => {+ const original = await importActual<typeof import('node:os')>();+ return {+ ...original,+ platform: () => 'darwin',+ freemem: jest.fn(),+ };+});+```++### Mocking based on imports++Given the following two samples:++#### 1++```ts+import os from 'node:os';++console.log(os.platform());+```++#### 2++```ts+import { platform } from 'node:os';++console.log(platform());+```++You will need to mock the module based on how you import it in the source code. This means, if you will import the default export, you will need to add a `default` property to the mocked object. Otherwise, you will need to mock the module as is.++So, for example 1:++```ts+vitest.mock('node:os', async (importActual) => {+ const original = await importActual<+ typeof import('node:os') & { default: typeof import('node:os') }+ >();++ const platformMock = () => 'darwin';+ const freememMock = vitest.fn();++ return {+ ...original,+ platform: platformMock,+ freemem: freememMock,+ // Specifically, you'll need to also mock the `default` property of the module, as seen below+ default: {+ ...original.default,+ platform: platformMock,+ freemem: freememMock,+ },+ };+});+```++And for example 2:++```ts+vitest.mock('node:os', async (importActual) => {+ const original = await importActual<typeof import('node:os')>();++ const platformMock = () => 'darwin';+ const freememMock = vitest.fn();++ return {+ ...original,+ platform: platformMock,+ freemem: freememMock,+ };+});+```++### Mocked functions++In previous jest code, we had to cast mocked functions as `jest.MockedFunction`. This is _technically_ still needed, but vitest gives us a utility function that casts it for us: `vitest.mocked()`. It doesn't do anything runtime wise, but it helps with type inference.++```ts+import os from 'node:os';++const mockedPlatform = vitest.mocked(os.platform);+```++### Resetting spies to original implementation++You no longer need to reset spies to their original implementation. This is done automatically for you via vitest's `restoreMocks` option.++With that said, if you create spies in a `beforeAll`/`beforeEach` hook, you might need to call this at the start of your file: `vitest.setConfig({ restoreMocks: false });`, as otherwise your spies will be reset before your tests run.++### Separate spy instances for methods track their own calls++In previous jest code, you could do something like this:++```ts+const spy = jest.spyOn(os, 'platform').mockReturnValueOnce('darwin');++expect(os.platform()).toBe('darwin');+expect(spy).toHaveBeenCalledTimes(1);++const spy2 = jest.spyOn(os, 'platform').mockReturnValueOnce('linux');++expect(os.platform()).toBe('linux');+expect(spy).toHaveBeenCalledTimes(2);+```++This is no longer valid in vitest. You will need to re-use the same spy instance.++```ts+const spy = vitest.spyOn(os, 'platform').mockReturnValueOnce('darwin');++expect(os.platform()).toBe('darwin');+expect(spy).toHaveBeenCalledTimes(1);++spy.mockReturnValueOnce('linux');++expect(os.platform()).toBe('linux');+expect(spy).toHaveBeenCalledTimes(2);+```++## Changing test settings++In jest, we were able to do the following to adjust timeouts at runtime:++```ts+if (os.platform() === 'win32') {+ jest.setTimeout(100_000);+}+```++In vitest, you need to call the `vitest.setConfig` function instead (and specify what to change):++```ts+if (os.platform() === 'win32') {+ vitest.setConfig({+ testTimeout: 100_000,+ });+}+```++## Hook callbacks++In jest, we were able to call the callback provided in the hooks to signal the hook has executed successfully:++```ts+beforeAll((done) => {+ // Do something+ done();+});+```++In vitest, this is no longer provided, but _can_ be substituted with a promise:++```ts+beforeAll(async () => {+ await new Promise((resolve) => {+ // Do something+ resolve();+ });+});+```++## `const enums`++> [!IMPORTANT]+> Certain projects, like `puppeteer` declare `const enum`s in their typings. These are enums that do not actually exist at runtime, but enums that `tsc` (which is what we're currently using to compile Crawlee) can inline the values of+> directly into the compiled code. You should avoid importing `const enums` as `vitest` will not inline them like `tsc` does and will throw an error, unless the enum is also present at runtime (check by importing the module and seeing if it's exported anywhere).++## Testing for class names in stack traces++Some tests may want to check for error stack traces and the presence of class names (a prime example is our tests for logging the stack traces for certain logger levels). In `jest`, you were able to do this:++```ts+expect(/at BasicCrawler\.requestHandler/.test(stackTrace)).toBe(true);+```++In `vitest`, at the time of writing this (2023/10/12), class names get an `_` prepended to them. In order to solve this, just add `_?` to your regular expression test (this will match both with and without the `_`).++```ts+expect(/at _?BasicCrawler\.requestHandler/.test(stackTrace)).toBe(true);+```+## Code of Conduct### Our Pledge@@ -52,22 +276,22 @@ orientation.Examples of behavior that contributes to creating a positive environmentinclude:-* Using welcoming and inclusive language-* Being respectful of differing viewpoints and experiences-* Gracefully accepting constructive criticism-* Focusing on what is best for the community-* Showing empathy towards other community members+- Using welcoming and inclusive language+- Being respectful of differing viewpoints and experiences+- Gracefully accepting constructive criticism+- Focusing on what is best for the community+- Showing empathy towards other community membersExamples of unacceptable behavior by participants include:-* The use of sexualized language or imagery and unwelcome sexual attention or-advances-* Trolling, insulting/derogatory comments, and personal or political attacks-* Public or private harassment-* Publishing others' private information, such as a physical or electronic- address, without explicit permission-* Other conduct which could reasonably be considered inappropriate in a- professional setting+- The use of sexualized language or imagery and unwelcome sexual attention or+ advances+- Trolling, insulting/derogatory comments, and personal or political attacks+- Public or private harassment+- Publishing others' private information, such as a physical or electronic+ address, without explicit permission+- Other conduct which could reasonably be considered inappropriate in a+ professional setting### Our Responsibilities@@ -93,7 +317,7 @@ further defined and clarified by project maintainers.### EnforcementInstances of abusive, harassing, or otherwise unacceptable behavior may be-reported by contacting the project team at [email protected]. All+reported by contacting the project team at <[email protected]>. Allcomplaints will be reviewed and investigated and will result in a response thatis deemed necessary and appropriate to the circumstances. The project team isobligated to maintain confidentiality with regard to the reporter of an incident.diff --git a/jest.config.js b/jest.config.jsdeleted file mode 100644index e47047973..000000000--- a/jest.config.js+++ /dev/null@@ -1,33 +0,0 @@-module.exports = {- testTimeout: 60e3,- maxWorkers: 3,- testEnvironment: 'node',- collectCoverage: false,- testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],- transform: {- '^.+\\.ts$': ['ts-jest', {- tsconfig: 'test/tsconfig.json',- }],- },- collectCoverageFrom: [- '<rootDir>/packages/*/src/**/*.[jt]s',- ],- moduleNameMapper: {- '^crawlee$': '<rootDir>/packages/crawlee/src',- '^@crawlee/basic$': '<rootDir>/packages/basic-crawler/src',- '^@crawlee/browser$': '<rootDir>/packages/browser-crawler/src',- '^@crawlee/http$': '<rootDir>/packages/http-crawler/src',- '^@crawlee/linkedom$': '<rootDir>/packages/linkedom-crawler/src',- '^@crawlee/jsdom$': '<rootDir>/packages/jsdom-crawler/src',- '^@crawlee/cheerio$': '<rootDir>/packages/cheerio-crawler/src',- '^@crawlee/playwright$': '<rootDir>/packages/playwright-crawler/src',- '^@crawlee/puppeteer$': '<rootDir>/packages/puppeteer-crawler/src',- '^@crawlee/(.*)/(.*)$': '<rootDir>/packages/$1/$2',- '^@crawlee/(.*)$': '<rootDir>/packages/$1/src',- '^test/(.*)$': '<rootDir>/test/$1',- },- modulePathIgnorePatterns: [- '<rootDir>/(.*)/dist',- '<rootDir>/package.json',- ],-};diff --git a/package.json b/package.jsonindex eb4163e39..ab039f469 100644--- a/package.json+++ b/package.json@@ -38,10 +38,10 @@"clean": "turbo run clean","build": "turbo run build && node ./scripts/typescript_fixes.mjs","ci:build": "turbo run build --cache-dir=\".turbo\" && node ./scripts/typescript_fixes.mjs",- "test": "jest --silent",+ "test": "vitest run --silent","test:e2e": "node test/e2e/run.mjs",- "test:full": "cross-env CRAWLEE_DIFFICULT_TESTS=1 jest --silent",- "coverage": "jest --coverage",+ "test:full": "cross-env CRAWLEE_DIFFICULT_TESTS=1 vitest run --silent",+ "coverage": "vitest --coverage","publish:next": "lerna publish from-package --contents dist --dist-tag next --force-publish","release:next": "yarn build && yarn publish:next","publish:prod": "lerna publish from-package --contents dist --force-publish",@@ -65,7 +65,7 @@"@types/fs-extra": "^11.0.0","@types/htmlparser2": "^3.10.3","@types/inquirer": "^8.2.1",- "@types/jest": "^29.1.1",+ "@types/is-ci": "^3.0.1","@types/lodash.merge": "^4.6.7","@types/mime-types": "^2.1.1","@types/node": "^18.7.13",@@ -75,8 +75,10 @@"@types/semver": "^7.3.12","@types/stream-json": "^1.7.2","@types/tough-cookie": "^4.0.2",+ "@types/yargs": "^17.0.26","@typescript-eslint/eslint-plugin": "6.7.5","@typescript-eslint/parser": "6.7.5",+ "@vitest/coverage-v8": "^0.34.6","apify": "*","basic-auth-parser": "^0.0.2","body-parser": "^1.20.0",@@ -90,7 +92,7 @@"globby": "^13.1.2","got": "^13.0.0","husky": "^8.0.1",- "jest": "^29.1.2",+ "is-ci": "^3.0.1","lerna": "^7.0.0","lint-staged": "^14.0.0","node-gyp": "^9.1.0",@@ -99,10 +101,11 @@"proxy": "^1.0.2","puppeteer": "21.3.8","rimraf": "^5.0.0",- "ts-jest": "^29.0.3","ts-node": "^10.9.1","turbo": "1.10.15",- "typescript": "^5.0.0"+ "typescript": "^5.0.0",+ "vite-tsconfig-paths": "^4.2.1",+ "vitest": "^0.34.6"},"packageManager": "[email protected]","volta": {diff --git a/packages/basic-crawler/test/migration.test.ts b/packages/basic-crawler/test/migration.test.tsindex 263bc0e20..8f365192e 100644--- a/packages/basic-crawler/test/migration.test.ts+++ b/packages/basic-crawler/test/migration.test.ts@@ -27,7 +27,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handleRequestFunction and requestHandler', () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -48,7 +48,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handleRequestFunction', () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -67,7 +67,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only requestHandler', () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -86,7 +86,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handleFailedRequestFunction and failedRequestHandler', () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -108,7 +108,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handleFailedRequestFunction', () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -128,7 +128,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only failedRequestHandler', () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -146,7 +146,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {describe('handleRequestTimeoutSecs -> requestHandlerTimeoutSecs', () => {it('should log when providing both handleRequestTimeoutSecs and requestHandlerTimeoutSecs', () => {- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -167,7 +167,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {});it('should log when providing only the deprecated handleRequestTimeoutSecs', () => {- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,@@ -186,7 +186,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {});it('should not log when providing some or no number to requestHandlerTimeoutSecs', () => {- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new BasicCrawler({requestList,diff --git a/packages/basic-crawler/test/tsconfig.json b/packages/basic-crawler/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/basic-crawler/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/packages/browser-crawler/test/migration.test.ts b/packages/browser-crawler/test/migration.test.tsindex 0a8fb6bbc..f8810d231 100644--- a/packages/browser-crawler/test/migration.test.ts+++ b/packages/browser-crawler/test/migration.test.ts@@ -31,7 +31,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handlePageFunction and requestHandler', async () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- Protected constructorconst crawler = new BrowserCrawler({@@ -58,7 +58,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handlePageFunction', async () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- We are verifying the deprecation warningconst crawler = new BrowserCrawler({@@ -83,7 +83,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only requestHandler', async () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- Protected constructorconst crawler = new BrowserCrawler({@@ -108,7 +108,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handleFailedRequestFunction and failedRequestHandler', async () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- Protected constructorconst crawler = new BrowserCrawler({@@ -136,7 +136,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handleFailedRequestFunction', async () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- Protected constructorconst crawler = new BrowserCrawler({@@ -162,7 +162,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only failedRequestHandler', async () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');// @ts-expect-error -- Protected constructorconst crawler = new BrowserCrawler({diff --git a/packages/browser-crawler/test/tsconfig.json b/packages/browser-crawler/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/browser-crawler/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/packages/browser-pool/test/multiple-plugins.test.ts b/packages/browser-pool/test/multiple-plugins.test.tsindex 4324828dd..a9c96760c 100644--- a/packages/browser-pool/test/multiple-plugins.test.ts+++ b/packages/browser-pool/test/multiple-plugins.test.ts@@ -7,7 +7,7 @@ describe('BrowserPool - Using multiple plugins', () => {const firefoxPlugin = new PlaywrightPlugin(playwright.firefox);beforeEach(async () => {- jest.clearAllMocks();+ vitest.clearAllMocks();browserPool = new BrowserPool({browserPlugins: [chromePlugin,@@ -60,8 +60,8 @@ describe('BrowserPool - Using multiple plugins', () => {});test('newPageWithEachPlugin should open in existing browsers', async () => {- jest.spyOn(chromePlugin, 'launch');- jest.spyOn(firefoxPlugin, 'launch');+ vitest.spyOn(chromePlugin, 'launch');+ vitest.spyOn(firefoxPlugin, 'launch');// launch 2 browsersawait browserPool.newPage();diff --git a/packages/browser-pool/test/tsconfig.json b/packages/browser-pool/test/tsconfig.jsonnew file mode 100644index 000000000..52d7cd5d4--- /dev/null+++ b/packages/browser-pool/test/tsconfig.json@@ -0,0 +1,9 @@+{+ "extends": "../tsconfig.json",+ "compilerOptions": {+ "noEmit": true,+ "incremental": false,+ "types": ["vitest/globals"]+ },+ "include": ["./"]+}diff --git a/packages/cheerio-crawler/test/migration.test.ts b/packages/cheerio-crawler/test/migration.test.tsindex 3c3436bf5..215b1e619 100644--- a/packages/cheerio-crawler/test/migration.test.ts+++ b/packages/cheerio-crawler/test/migration.test.ts@@ -27,7 +27,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handlePageFunction and requestHandler', () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,@@ -48,7 +48,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handlePageFunction', () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,@@ -67,7 +67,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only requestHandler', () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,@@ -86,7 +86,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing both handleFailedRequestFunction and failedRequestHandler', () => {const oldHandler = () => {};const newHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,@@ -108,7 +108,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should log when providing only the deprecated handleFailedRequestFunction', () => {const oldHandler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,@@ -128,7 +128,7 @@ describe('Moving from handleRequest* to requestHandler*', () => {it('should not log when providing only failedRequestHandler', () => {const handler = () => {};- const warningSpy = jest.spyOn(testLogger, 'warning');+ const warningSpy = vitest.spyOn(testLogger, 'warning');const crawler = new CheerioCrawler({requestList,diff --git a/packages/cheerio-crawler/test/tsconfig.json b/packages/cheerio-crawler/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/cheerio-crawler/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/packages/core/test/request-queue/adding-the-same-request-should-not-call-the-api.test.ts b/packages/core/test/request-queue/adding-the-same-request-should-not-call-the-api.test.tsindex 0f237d0e0..5e8e0ebd8 100644--- a/packages/core/test/request-queue/adding-the-same-request-should-not-call-the-api.test.ts+++ b/packages/core/test/request-queue/adding-the-same-request-should-not-call-the-api.test.ts@@ -19,7 +19,7 @@ describe('RequestQueue#addRequest should not call the API if the request is alretest('should not call the API if the request is already in the queue', async () => {const requestQueue = new RequestQueue({ id: requestQueueInfo.id, client: Configuration.getStorageClient() });- const clientSpy = jest.spyOn(requestQueue.client, 'addRequest');+ const clientSpy = vitest.spyOn(requestQueue.client, 'addRequest');const requestData = await requestQueue.addRequest({ url: 'https://example.com' });@@ -37,7 +37,7 @@ describe('RequestQueue#addRequests should not call the API if the request is alrtest('should not call the API if the request is already in the queue', async () => {const requestQueue = new RequestQueue({ id: requestQueueInfo.id, client: Configuration.getStorageClient() });- const clientSpy = jest.spyOn(requestQueue.client, 'batchAddRequests');+ const clientSpy = vitest.spyOn(requestQueue.client, 'batchAddRequests');const requestData = await requestQueue.addRequests([{ url: 'https://example2.com' }]);diff --git a/packages/core/test/request-queue/request-queue-v2.test.ts b/packages/core/test/request-queue/request-queue-v2.test.tsindex d8fe8de68..db138122a 100644--- a/packages/core/test/request-queue/request-queue-v2.test.ts+++ b/packages/core/test/request-queue/request-queue-v2.test.ts@@ -2,6 +2,7 @@import { MemoryStorage } from '@crawlee/memory-storage';import type { ListAndLockHeadResult, ListAndLockOptions, ListOptions, ProlongRequestLockOptions, ProlongRequestLockResult, QueueHead } from '@crawlee/types';import { RequestQueueV2 } from 'crawlee';+import type { SpyInstance } from 'vitest';const storage = new MemoryStorage({ persistStorage: false, writeMetadata: false });@@ -22,18 +23,20 @@ async function makeQueue(name: string, numOfRequestsToAdd = 0) {return queue;}+vitest.setConfig({ restoreMocks: false });+describe('RequestQueueV2#isFinished should use listHead instead of listAndLock', () => {let queue: RequestQueueV2;- let clientListHeadSpy: jest.SpyInstance<Promise<QueueHead>, [options?: ListOptions | undefined], any>;+ let clientListHeadSpy: SpyInstance<[options?: ListOptions | undefined], Promise<QueueHead>>;let listHeadCallCount = 0;- let clientListAndLockHeadSpy: jest.SpyInstance<Promise<ListAndLockHeadResult>, [options: ListAndLockOptions], any>;+ let clientListAndLockHeadSpy: SpyInstance<[options: ListAndLockOptions], Promise<ListAndLockHeadResult>>;let listAndLockHeadCallCount = 0;let lockResult: ListAndLockHeadResult;beforeAll(async () => {queue = await makeQueue('is-finished', 2);- clientListHeadSpy = jest.spyOn(queue.client, 'listHead');- clientListAndLockHeadSpy = jest.spyOn(queue.client, 'listAndLockHead');+ clientListHeadSpy = vitest.spyOn(queue.client, 'listHead');+ clientListAndLockHeadSpy = vitest.spyOn(queue.client, 'listAndLockHead');});test('should return false if there are still requests in the queue', async () => {@@ -55,15 +58,15 @@ describe('RequestQueueV2#isFinished should use listHead instead of listAndLock',describe('RequestQueueV2#isFinished should return true once locked requests are handled', () => {let queue: RequestQueueV2;- let clientListHeadSpy: jest.SpyInstance<Promise<QueueHead>, [options?: ListOptions | undefined], any>;+ let clientListHeadSpy: SpyInstance<[options?: ListOptions | undefined], Promise<QueueHead>>;let listHeadCallCount = 0;- let clientListAndLockHeadSpy: jest.SpyInstance<Promise<ListAndLockHeadResult>, [options: ListAndLockOptions], any>;+ let clientListAndLockHeadSpy: SpyInstance<[options: ListAndLockOptions], Promise<ListAndLockHeadResult>>;let lockResult: ListAndLockHeadResult;beforeAll(async () => {queue = await makeQueue('is-finished-locked', 1);- clientListHeadSpy = jest.spyOn(queue.client, 'listHead');- clientListAndLockHeadSpy = jest.spyOn(queue.client, 'listAndLockHead');+ clientListHeadSpy = vitest.spyOn(queue.client, 'listHead');+ clientListAndLockHeadSpy = vitest.spyOn(queue.client, 'listAndLockHead');lockResult = await queue.client.listAndLockHead({ lockSecs: 60 });queue['inProgress'].add(lockResult.items[0].id);@@ -87,16 +90,16 @@ describe('RequestQueueV2#isFinished should return true once locked requests aredescribe('RequestQueueV2#fetchNextRequest should use locking API', () => {let queue: RequestQueueV2;- let clientListHeadSpy: jest.SpyInstance<Promise<QueueHead>, [options?: ListOptions | undefined], any>;- let clientListAndLockHeadSpy: jest.SpyInstance<Promise<ListAndLockHeadResult>, [options: ListAndLockOptions], any>;- let clientProlongLockSpy: jest.SpyInstance<Promise<ProlongRequestLockResult>, [id: string, options: ProlongRequestLockOptions], any>;+ let clientListHeadSpy: SpyInstance<[options?: ListOptions | undefined], Promise<QueueHead>>;+ let clientListAndLockHeadSpy: SpyInstance<[options: ListAndLockOptions], Promise<ListAndLockHeadResult>>;+ let clientProlongLockSpy: SpyInstance<[id: string, options: ProlongRequestLockOptions], Promise<ProlongRequestLockResult>>;let listAndLockHeadCallCount = 0;beforeAll(async () => {queue = await makeQueue('fetch-next-request', 1);- clientListHeadSpy = jest.spyOn(queue.client, 'listHead');- clientListAndLockHeadSpy = jest.spyOn(queue.client, 'listAndLockHead');- clientProlongLockSpy = jest.spyOn(queue.client, 'prolongRequestLock');+ clientListHeadSpy = vitest.spyOn(queue.client, 'listHead');+ clientListAndLockHeadSpy = vitest.spyOn(queue.client, 'listAndLockHead');+ clientProlongLockSpy = vitest.spyOn(queue.client, 'prolongRequestLock');});test('should return the first request', async () => {@@ -120,15 +123,10 @@ describe('RequestQueueV2#fetchNextRequest should use locking API', () => {describe('RequestQueueV2#isEmpty should return true even if isFinished returns false due to locked requests', () => {let queue: RequestQueueV2;- let clientListHeadSpy: jest.SpyInstance<Promise<QueueHead>, [options?: ListOptions | undefined], any>;- let clientListAndLockHeadSpy: jest.SpyInstance<Promise<ListAndLockHeadResult>, [options: ListAndLockOptions], any>;let lockResult: ListAndLockHeadResult;beforeAll(async () => {queue = await makeQueue('is-empty-vs-is-finished', 1);- clientListHeadSpy = jest.spyOn(queue.client, 'listHead');- clientListAndLockHeadSpy = jest.spyOn(queue.client, 'listAndLockHead');-lockResult = await queue.client.listAndLockHead({ lockSecs: 60 });queue['inProgress'].add(lockResult.items[0].id);});diff --git a/packages/core/test/tsconfig.json b/packages/core/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/core/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/packages/memory-storage/test/tsconfig.json b/packages/memory-storage/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/memory-storage/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/packages/puppeteer-crawler/src/internals/enqueue-links/click-elements.ts b/packages/puppeteer-crawler/src/internals/enqueue-links/click-elements.tsindex 79a676495..3a0d47923 100644--- a/packages/puppeteer-crawler/src/internals/enqueue-links/click-elements.ts+++ b/packages/puppeteer-crawler/src/internals/enqueue-links/click-elements.ts@@ -26,11 +26,6 @@ import type {Page,Target,} from 'puppeteer';-import {- BrowserContextEmittedEvents,- BrowserEmittedEvents,- PageEmittedEvents,-} from 'puppeteer';import { addInterceptRequestHandler, removeInterceptRequestHandler } from '../utils/puppeteer_request_interception';@@ -324,8 +319,8 @@ export async function clickElementsAndInterceptNavigationRequests(options: Clickconst onFrameNavigated = createFrameNavigatedHandler(page, uniqueRequests);await addInterceptRequestHandler(page, onInterceptedRequest);- browser.on(BrowserEmittedEvents.TargetCreated, onTargetCreated);- page.on(PageEmittedEvents.FrameNavigated, onFrameNavigated);+ browser.on('targetcreated', onTargetCreated);+ page.on('framenavigated', onFrameNavigated);await preventHistoryNavigation(page);@@ -334,8 +329,8 @@ export async function clickElementsAndInterceptNavigationRequests(options: Clickawait restoreHistoryNavigationAndSaveCapturedUrls(page, uniqueRequests);- browser.off(BrowserEmittedEvents.TargetCreated, onTargetCreated);- page.off(PageEmittedEvents.FrameNavigated, onFrameNavigated);+ browser.off('targetcreated', onTargetCreated);+ page.off('framenavigated', onFrameNavigated);await removeInterceptRequestHandler(page, onInterceptedRequest);const serializedRequests = Array.from(uniqueRequests);@@ -537,17 +532,17 @@ async function waitForPageIdle({ page, waitForPageIdleMillis, maxWaitForPageIdle}function finish() {- page.off(PageEmittedEvents.Request, activityHandler);- page.off(PageEmittedEvents.FrameNavigated, activityHandler);- context.off(BrowserContextEmittedEvents.TargetCreated, newTabTracker);+ page.off('request', activityHandler);+ page.off('framenavigated', activityHandler);+ context.off('targetcreated', newTabTracker);resolve();}maxTimeout = setTimeout(maxTimeoutHandler, maxWaitForPageIdleMillis);activityHandler(); // We call this once manually in case there would be no requests at all.- page.on(PageEmittedEvents.Request, activityHandler);- page.on(PageEmittedEvents.FrameNavigated, activityHandler);- context.on(BrowserContextEmittedEvents.TargetCreated, newTabTracker);+ page.on('request', activityHandler);+ page.on('framenavigated', activityHandler);+ context.on('targetcreated', newTabTracker);});}diff --git a/packages/utils/src/internals/memory-info.ts b/packages/utils/src/internals/memory-info.tsindex e6e196852..f3a98d028 100644--- a/packages/utils/src/internals/memory-info.ts+++ b/packages/utils/src/internals/memory-info.ts@@ -1,6 +1,6 @@import { execSync } from 'node:child_process';-import fs from 'node:fs/promises';-import os from 'node:os';+import { access, readFile } from 'node:fs/promises';+import { freemem, totalmem } from 'node:os';import util from 'node:util';import log from '@apify/log';@@ -110,15 +110,15 @@ export async function getMemoryInfo(): Promise<MemoryInfo> {let cgroupsVersion: keyof typeof MEMORY_FILE_PATHS.TOTAL = 'V1';try {// If this directory does not exists, assume docker is using cgroups V2- await fs.access('/sys/fs/cgroup/memory/');+ await access('/sys/fs/cgroup/memory/');} catch {cgroupsVersion = 'V2';}try {let [totalBytesStr, usedBytesStr] = await Promise.all([- fs.readFile(MEMORY_FILE_PATHS.TOTAL[cgroupsVersion], 'utf8'),- fs.readFile(MEMORY_FILE_PATHS.USED[cgroupsVersion], 'utf8'),+ readFile(MEMORY_FILE_PATHS.TOTAL[cgroupsVersion], 'utf8'),+ readFile(MEMORY_FILE_PATHS.USED[cgroupsVersion], 'utf8'),]);// Cgroups V2 files contains newline character. Getting rid of it for better handling in later part of the code.@@ -128,13 +128,13 @@ export async function getMemoryInfo(): Promise<MemoryInfo> {// Cgroups V2 contains 'max' string if memory is not limited// See https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git/tree/Documentation/admin-guide/cgroup-v2.rst (see "memory.max")if (totalBytesStr === 'max') {- totalBytes = os.totalmem();+ totalBytes = totalmem();// Cgroups V1 is set to number related to platform and page size if memory is not limited// See https://unix.stackexchange.com/q/420906} else {totalBytes = parseInt(totalBytesStr, 10);const containerRunsWithUnlimitedMemory = totalBytes > Number.MAX_SAFE_INTEGER;- if (containerRunsWithUnlimitedMemory) totalBytes = os.totalmem();+ if (containerRunsWithUnlimitedMemory) totalBytes = totalmem();}usedBytes = parseInt(usedBytesStr, 10);freeBytes = totalBytes - usedBytes;@@ -143,13 +143,13 @@ export async function getMemoryInfo(): Promise<MemoryInfo> {log.deprecated('Your environment is Docker, but your system does not support memory cgroups. '+ 'If you\'re running containers with limited memory, memory auto-scaling will not work properly.\n\n'+ `Cause: ${(err as Error).message}`);- totalBytes = os.totalmem();- freeBytes = os.freemem();+ totalBytes = totalmem();+ freeBytes = freemem();usedBytes = totalBytes - freeBytes;}} else {- totalBytes = os.totalmem();- freeBytes = os.freemem();+ totalBytes = totalmem();+ freeBytes = freemem();usedBytes = totalBytes - freeBytes;}diff --git a/packages/utils/test/tsconfig.json b/packages/utils/test/tsconfig.jsonnew file mode 100644index 000000000..b603acdc1--- /dev/null+++ b/packages/utils/test/tsconfig.json@@ -0,0 +1,10 @@+{+ "extends": "../../../tsconfig.json",+ "include": [+ "**/*",+ "../../**/*"+ ],+ "compilerOptions": {+ "types": ["vitest/globals"]+ }+}diff --git a/test/browser-pool/browser-plugins/plugins.test.ts b/test/browser-pool/browser-plugins/plugins.test.tsindex e82801224..e47c61319 100644--- a/test/browser-pool/browser-plugins/plugins.test.ts+++ b/test/browser-pool/browser-plugins/plugins.test.ts@@ -13,7 +13,7 @@ import { runExampleComServer } from 'test/shared/_helper';import { createProxyServer } from './create-proxy-server';-jest.setTimeout(120000);+vitest.setConfig({ testTimeout: 120_000 });let port: number;let server: Server;diff --git a/test/browser-pool/browser-pool.test.ts b/test/browser-pool/browser-pool.test.tsindex dc3e80701..ef268ee67 100644--- a/test/browser-pool/browser-pool.test.ts+++ b/test/browser-pool/browser-pool.test.ts@@ -63,7 +63,7 @@ describe.each([let browserPool: BrowserPool<{ browserPlugins: [typeof plugin]; closeInactiveBrowserAfterSecs: 2 }>;beforeEach(async () => {- jest.clearAllMocks();+ vitest.clearAllMocks();browserPool = new BrowserPool({browserPlugins: [plugin],closeInactiveBrowserAfterSecs: 2,@@ -110,7 +110,7 @@ describe.each([test('should destroy pool', async () => {const page = await browserPool.newPage();const browserController = browserPool.getBrowserControllerByPage(page)!;- jest.spyOn(browserController, 'close');+ vitest.spyOn(browserController, 'close');await browserPool.destroy();@@ -135,7 +135,7 @@ describe.each([const timeout = browserPool.operationTimeoutMillis;browserPool.operationTimeoutMillis = 500;// @ts-expect-error mocking private method- const spy = jest.spyOn(BrowserPool.prototype, '_executeHooks');+ const spy = vitest.spyOn(BrowserPool.prototype, '_executeHooks');await browserPool.newPage();expect(spy).toBeCalledTimes(4);@@ -153,7 +153,6 @@ describe.each([// 4 calls instead of just one.expect(spy).toBeCalledTimes(1);- spy.mockRestore();browserPool.operationTimeoutMillis = timeout;browserPool.retireAllBrowsers();});@@ -172,7 +171,7 @@ describe.each([});test('should open new page in new browser', async () => {- jest.spyOn(plugin, 'launch');+ vitest.spyOn(plugin, 'launch');await browserPool.newPage();await browserPool.newPageInNewBrowser();@@ -184,7 +183,7 @@ describe.each([test('should correctly override page close', async () => {// @ts-expect-error Private function- jest.spyOn(browserPool!, '_overridePageClose');+ vitest.spyOn(browserPool!, '_overridePageClose');const page = await browserPool.newPage();@@ -204,7 +203,7 @@ describe.each([test('should retire browser after page count', async () => {browserPool.retireBrowserAfterPageCount = 2;- jest.spyOn(browserPool, 'retireBrowserController');+ vitest.spyOn(browserPool, 'retireBrowserController');expect(browserPool.activeBrowserControllers.size).toBe(0);await browserPool.newPage();@@ -220,7 +219,7 @@ describe.each([test('should allow max pages per browser', async () => {browserPool.maxOpenPagesPerBrowser = 1;// @ts-expect-error Private function- jest.spyOn(browserPool!, '_launchBrowser');+ vitest.spyOn(browserPool!, '_launchBrowser');await browserPool.newPage();expect(browserPool.activeBrowserControllers.size).toBe(1);@@ -235,7 +234,7 @@ describe.each([test('should allow max pages per browser - no race condition', async () => {browserPool.maxOpenPagesPerBrowser = 1;// @ts-expect-error Private function- jest.spyOn(browserPool, '_launchBrowser');+ vitest.spyOn(browserPool, '_launchBrowser');const usePlugin = {browserPlugin: plugin,@@ -262,12 +261,12 @@ describe.each([);// @ts-expect-error Private function- jest.spyOn(browserPool!, '_closeRetiredBrowserWithNoPages');+ vitest.spyOn(browserPool!, '_closeRetiredBrowserWithNoPages');expect(browserPool.retiredBrowserControllers.size).toBe(0);const page = await browserPool.newPage();const controller = browserPool.getBrowserControllerByPage(page)!;- jest.spyOn(controller, 'close');+ vitest.spyOn(controller, 'close');expect(browserPool.retiredBrowserControllers.size).toBe(1);await page.close();@@ -305,7 +304,7 @@ describe.each([browserPool.preLaunchHooks.push(myAsyncHook);// @ts-expect-error Private function- jest.spyOn(browserPool!, '_executeHooks');+ vitest.spyOn(browserPool!, '_executeHooks');const page = await browserPool.newPage();const pageId = browserPool.getPageId(page)!;@@ -342,7 +341,7 @@ describe.each([browserPool.postLaunchHooks = [myAsyncHook];// @ts-expect-error Private function- jest.spyOn(browserPool, '_executeHooks');+ vitest.spyOn(browserPool, '_executeHooks');const page = await browserPool.newPage();const pageId = browserPool.getPageId(page)!;@@ -397,7 +396,7 @@ describe.each([browserPool.prePageCreateHooks = [myAsyncHook];// @ts-expect-error Private function- jest.spyOn(browserPool, '_executeHooks');+ vitest.spyOn(browserPool, '_executeHooks');const page = await browserPool.newPage();const pageId = browserPool.getPageId(page)!;@@ -419,7 +418,7 @@ describe.each([browserPool.postPageCreateHooks = [myAsyncHook];// @ts-expect-error Private function- jest.spyOn(browserPool, '_executeHooks');+ vitest.spyOn(browserPool, '_executeHooks');const page = await browserPool.newPage();const browserController = browserPool.getBrowserControllerByPage(page);@@ -434,7 +433,7 @@ describe.each([browserPool.prePageCloseHooks = [myAsyncHook];// @ts-expect-error Private function- jest.spyOn(browserPool, '_executeHooks');+ vitest.spyOn(browserPool, '_executeHooks');const page = await browserPool.newPage();await page.close();@@ -450,7 +449,7 @@ describe.each([browserPool.postPageCloseHooks = [myAsyncHook];// @ts-expect-error Private function- jest.spyOn(browserPool, '_executeHooks');+ vitest.spyOn(browserPool, '_executeHooks');const page = await browserPool.newPage();const pageId = browserPool.getPageId(page);@@ -598,7 +597,7 @@ describe.each([},],});- const mock = jest.fn();+ const mock = vitest.fn();browserPoolCache.fingerprintInjector!.attachFingerprintToPlaywright = mock;const page: Page = await browserPoolCache.newPageInNewBrowser();expect(mock.mock.calls[0][1]).toBeDefined();@@ -629,7 +628,7 @@ describe.each([useFingerprints: true,});const oldGet = browserPoolConfig.fingerprintGenerator.getFingerprint;- const mock = jest.fn((options) => {+ const mock = vitest.fn((options) => {return oldGet.bind(browserPoolConfig.fingerprintGenerator)(options);});browserPoolConfig.fingerprintGenerator.getFingerprint = mock;@@ -666,7 +665,7 @@ describe.each([},});const oldGet = browserPoolConfig.fingerprintGenerator.getFingerprint;- const mock = jest.fn((options) => {+ const mock = vitest.fn((options) => {return oldGet.bind(browserPoolConfig.fingerprintGenerator)(options);});browserPoolConfig.fingerprintGenerator.getFingerprint = mock;diff --git a/test/core/autoscaling/snapshotter.test.ts b/test/core/autoscaling/snapshotter.test.tsindex a13c7f98f..ddaf29418 100644--- a/test/core/autoscaling/snapshotter.test.ts+++ b/test/core/autoscaling/snapshotter.test.ts@@ -124,7 +124,7 @@ describe('Snapshotter', () => {});test('correctly marks CPU overloaded using OS metrics', async () => {- const cpusMock = jest.spyOn(os, 'cpus');+ const cpusMock = vitest.spyOn(os, 'cpus');const fakeCpu = [{times: {idle: 0,@@ -139,7 +139,7 @@ describe('Snapshotter', () => {const config = new Configuration({ maxUsedCpuRatio: 0.5 });const snapshotter = new Snapshotter({ config });// do not initialize the event intervals as we will fire them manually- const spy = jest.spyOn(LocalEventManager.prototype, 'init').mockImplementation();+ const spy = vitest.spyOn(LocalEventManager.prototype, 'init').mockImplementation(async () => {});const events = config.getEventManager() as LocalEventManager;await snapshotter.start();@@ -168,13 +168,11 @@ describe('Snapshotter', () => {expect(loopSnapshots[4].isOverloaded).toBe(true);expect(cpusMock).toBeCalledTimes(5);- cpusMock.mockRestore();- spy.mockRestore();await snapshotter.stop();});test('correctly marks eventLoopOverloaded', () => {- const clock = jest.useFakeTimers();+ const clock = vitest.useFakeTimers();try {const noop = () => {};const snapshotter = new Snapshotter({ maxBlockedMillis: 5, eventLoopSnapshotIntervalSecs: 0 });@@ -201,7 +199,7 @@ describe('Snapshotter', () => {expect(loopSnapshots[3].isOverloaded).toBe(true);expect(loopSnapshots[4].isOverloaded).toBe(false);} finally {- jest.useRealTimers();+ vitest.useRealTimers();}});@@ -212,13 +210,13 @@ describe('Snapshotter', () => {childProcessesBytes: toBytes(1000),} as MemoryInfo;const getMemoryInfo = async () => ({ ...memoryData });- jest.spyOn(LocalEventManager.prototype as any, '_getMemoryInfo').mockImplementation(getMemoryInfo);- jest.spyOn(Snapshotter.prototype as any, '_getMemoryInfo').mockResolvedValueOnce({ totalBytes: toBytes(10000) });+ vitest.spyOn(LocalEventManager.prototype as any, '_getMemoryInfo').mockImplementation(getMemoryInfo);+ vitest.spyOn(Snapshotter.prototype as any, '_getMemoryInfo').mockResolvedValueOnce({ totalBytes: toBytes(10000) });const config = new Configuration({ availableMemoryRatio: 1 });const snapshotter = new Snapshotter({ config, maxUsedMemoryRatio: 0.5 });// do not initialize the event intervals as we will fire them manually- jest.spyOn(LocalEventManager.prototype, 'init').mockImplementation();+ vitest.spyOn(LocalEventManager.prototype, 'init').mockImplementation(async () => {});const events = config.getEventManager() as LocalEventManager;await snapshotter.start();@@ -241,15 +239,15 @@ describe('Snapshotter', () => {expect(memorySnapshots[4].isOverloaded).toBe(false);await snapshotter.stop();- jest.restoreAllMocks();+ vitest.restoreAllMocks();});test('correctly logs critical memory overload', async () => {- jest.spyOn(Snapshotter.prototype as any, '_getMemoryInfo').mockResolvedValueOnce({ totalBytes: toBytes(10000) });+ vitest.spyOn(Snapshotter.prototype as any, '_getMemoryInfo').mockResolvedValueOnce({ totalBytes: toBytes(10000) });const config = new Configuration({ availableMemoryRatio: 1 });const snapshotter = new Snapshotter({ config, maxUsedMemoryRatio: 0.5 });await snapshotter.start();- const warningSpy = jest.spyOn(snapshotter.log, 'warning').mockImplementation();+ const warningSpy = vitest.spyOn(snapshotter.log, 'warning').mockImplementation(() => {});// @ts-expect-error Calling private methodsnapshotter._memoryOverloadWarning({@@ -264,7 +262,7 @@ describe('Snapshotter', () => {});expect(warningSpy).not.toBeCalled();- jest.restoreAllMocks();+ vitest.restoreAllMocks();await snapshotter.stop();});diff --git a/test/core/browser_launchers/playwright_launcher.test.ts b/test/core/browser_launchers/playwright_launcher.test.tsindex 91803d268..0c73e58a6 100644--- a/test/core/browser_launchers/playwright_launcher.test.ts+++ b/test/core/browser_launchers/playwright_launcher.test.ts@@ -151,7 +151,7 @@ describe('launchPlaywright()', () => {});test('supports useChrome option', async () => {- const spy = jest.spyOn(BrowserLauncher.prototype as any, '_getTypicalChromeExecutablePath');+ const spy = vitest.spyOn(BrowserLauncher.prototype as any, '_getTypicalChromeExecutablePath');let browser;const opts = {useChrome: true,@@ -172,7 +172,6 @@ describe('launchPlaywright()', () => {expect(version).not.toMatch('Chromium');expect(spy).toBeCalledTimes(1);} finally {- spy.mockRestore();if (browser) await browser.close();}}, 60e3);diff --git a/test/core/browser_launchers/puppeteer_launcher.test.ts b/test/core/browser_launchers/puppeteer_launcher.test.tsindex dc4a22dd4..4528c1d71 100644--- a/test/core/browser_launchers/puppeteer_launcher.test.ts+++ b/test/core/browser_launchers/puppeteer_launcher.test.ts@@ -198,7 +198,7 @@ describe('launchPuppeteer()', () => {});test('supports useChrome option', async () => {- const spy = jest.spyOn(BrowserLauncher.prototype as any, '_getTypicalChromeExecutablePath');+ const spy = vitest.spyOn(BrowserLauncher.prototype as any, '_getTypicalChromeExecutablePath');let browser;const opts = {@@ -223,7 +223,6 @@ describe('launchPuppeteer()', () => {expect(version).not.toMatch('Chromium');expect(spy).toBeCalledTimes(1);} finally {- spy.mockRestore();if (browser) await browser.close();}});diff --git a/test/core/crawlers/basic_crawler.test.ts b/test/core/crawlers/basic_crawler.test.tsindex cb13ff2d7..b382753be 100644--- a/test/core/crawlers/basic_crawler.test.ts+++ b/test/core/crawlers/basic_crawler.test.ts@@ -52,7 +52,7 @@ describe('BasicCrawler', () => {});beforeEach(async () => {- jest.clearAllMocks();+ vitest.clearAllMocks();await localStorageEmulator.init();});@@ -228,8 +228,8 @@ describe('BasicCrawler', () => {const persistPromise = new Promise((res) => { persistResolve = res; });// Mock the calls to persist sources.- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');getValueSpy.mockResolvedValue(null);const processed: { url: string }[] = [];@@ -268,8 +268,6 @@ describe('BasicCrawler', () => {// clean up// @ts-expect-error Accessing private methodawait basicCrawler.autoscaledPool._destroy();- getValueSpy.mockRestore();- setValueSpy.mockRestore();});test('should retry failed requests', async () => {@@ -591,7 +589,7 @@ describe('BasicCrawler', () => {throw new CriticalError('some-error');};- const failedRequestHandler = jest.fn() as ErrorHandler;+ const failedRequestHandler = vitest.fn() as ErrorHandler;const basicCrawler = new BasicCrawler({requestList,@@ -613,13 +611,13 @@ describe('BasicCrawler', () => {];const requestList = await RequestList.open(null, sources);- const failedRequestHandler = jest.fn() as ErrorHandler;+ const failedRequestHandler = vitest.fn() as ErrorHandler;const basicCrawler = new BasicCrawler({requestList,failedRequestHandler,});- const testRoute = jest.fn();+ const testRoute = vitest.fn();basicCrawler.router.addHandler('TEST', testRoute);await expect(basicCrawler.run()).rejects.toThrow(MissingRouteError);@@ -659,9 +657,9 @@ describe('BasicCrawler', () => {requestHandler,});- jest.spyOn(requestQueue, 'handledCount').mockResolvedValueOnce(0);+ vitest.spyOn(requestQueue, 'handledCount').mockResolvedValueOnce(0);- jest.spyOn(requestQueue, 'addRequest')+ vitest.spyOn(requestQueue, 'addRequest').mockResolvedValueOnce({ requestId: 'id-0' } as any).mockResolvedValueOnce({ requestId: 'id-1' } as any).mockResolvedValueOnce({ requestId: 'id-2' } as any);@@ -670,7 +668,7 @@ describe('BasicCrawler', () => {const request1 = new Request({ id: 'id-1', ...sources[1] });const request2 = new Request({ id: 'id-2', ...sources[2] });- jest.spyOn(requestQueue, 'fetchNextRequest')+ vitest.spyOn(requestQueue, 'fetchNextRequest').mockResolvedValueOnce(request0).mockResolvedValueOnce(request1).mockResolvedValueOnce(request2)@@ -678,16 +676,16 @@ describe('BasicCrawler', () => {.mockResolvedValueOnce(request1).mockResolvedValueOnce(request1);- const markReqHandled = jest.spyOn(requestQueue, 'markRequestHandled').mockReturnValue(Promise.resolve() as any);- const reclaimReq = jest.spyOn(requestQueue, 'reclaimRequest').mockReturnValue(Promise.resolve() as any);+ const markReqHandled = vitest.spyOn(requestQueue, 'markRequestHandled').mockReturnValue(Promise.resolve() as any);+ const reclaimReq = vitest.spyOn(requestQueue, 'reclaimRequest').mockReturnValue(Promise.resolve() as any);- jest.spyOn(requestQueue, 'isEmpty')+ vitest.spyOn(requestQueue, 'isEmpty').mockResolvedValueOnce(false).mockResolvedValueOnce(false).mockResolvedValueOnce(false).mockResolvedValueOnce(true);- jest.spyOn(requestQueue, 'isFinished')+ vitest.spyOn(requestQueue, 'isFinished').mockResolvedValueOnce(true);await basicCrawler.run();@@ -711,7 +709,7 @@ describe('BasicCrawler', () => {expect(await requestList.isFinished()).toBe(true);expect(await requestList.isEmpty()).toBe(true);- jest.restoreAllMocks();+ vitest.restoreAllMocks();});test('should say that task is not ready requestList is not set and requestQueue is empty', async () => {@@ -755,11 +753,11 @@ describe('BasicCrawler', () => {const request0 = new Request({ url: 'http://example.com/0' });const request1 = new Request({ url: 'http://example.com/1' });- jest.spyOn(requestQueue, 'handledCount').mockReturnValue(Promise.resolve() as any);- const markRequestHandled = jest.spyOn(requestQueue, 'markRequestHandled')+ vitest.spyOn(requestQueue, 'handledCount').mockReturnValue(Promise.resolve() as any);+ const markRequestHandled = vitest.spyOn(requestQueue, 'markRequestHandled').mockReturnValue(Promise.resolve() as any);- const isFinishedOrig = jest.spyOn(requestQueue, 'isFinished').mockImplementation();+ const isFinishedOrig = vitest.spyOn(requestQueue, 'isFinished');requestQueue.fetchNextRequest = () => Promise.resolve(queue.pop());requestQueue.isEmpty = () => Promise.resolve(!queue.length);@@ -777,7 +775,7 @@ describe('BasicCrawler', () => {// TODO: see why the request1 was passed as a second parameter to includesexpect(processed.includes(request0)).toBe(true);- jest.restoreAllMocks();+ vitest.restoreAllMocks();});test('keepAlive', async () => {@@ -801,11 +799,11 @@ describe('BasicCrawler', () => {const request0 = new Request({ url: 'http://example.com/0' });const request1 = new Request({ url: 'http://example.com/1' });- jest.spyOn(requestQueue, 'handledCount').mockReturnValue(Promise.resolve() as any);- const markRequestHandled = jest.spyOn(requestQueue, 'markRequestHandled')+ vitest.spyOn(requestQueue, 'handledCount').mockReturnValue(Promise.resolve() as any);+ const markRequestHandled = vitest.spyOn(requestQueue, 'markRequestHandled').mockReturnValue(Promise.resolve() as any);- const isFinishedOrig = jest.spyOn(requestQueue, 'isFinished').mockImplementation();+ const isFinishedOrig = vitest.spyOn(requestQueue, 'isFinished');requestQueue.fetchNextRequest = () => Promise.resolve(queue.pop());requestQueue.isEmpty = () => Promise.resolve(!queue.length);@@ -823,7 +821,7 @@ describe('BasicCrawler', () => {// TODO: see why the request1 was passed as a second parameter to includesexpect(processed.includes(request0)).toBe(true);- jest.restoreAllMocks();+ vitest.restoreAllMocks();});test('should support maxRequestsPerCrawl parameter', async () => {@@ -886,7 +884,7 @@ describe('BasicCrawler', () => {// @ts-expect-error Overriding the method for testing purposesrequestQueue.markRequestHandled = async () => {};- const requestQueueStub = jest.spyOn(requestQueue, 'handledCount').mockResolvedValue(33);+ const requestQueueStub = vitest.spyOn(requestQueue, 'handledCount').mockResolvedValue(33);let count = 0;let crawler = new BasicCrawler({@@ -902,12 +900,12 @@ describe('BasicCrawler', () => {await crawler.run();expect(requestQueueStub).toBeCalled();expect(count).toBe(7);- jest.restoreAllMocks();+ vitest.restoreAllMocks();const sources = Array.from(Array(10).keys(), (x) => x + 1).map((i) => ({ url: `http://example.com/${i}` }));const sourcesCopy = JSON.parse(JSON.stringify(sources));let requestList = await RequestList.open({ sources });- const requestListStub = jest.spyOn(requestList, 'handledCount').mockReturnValue(33);+ const requestListStub = vitest.spyOn(requestList, 'handledCount').mockReturnValue(33);count = 0;crawler = new BasicCrawler({@@ -923,12 +921,12 @@ describe('BasicCrawler', () => {await crawler.run();expect(requestListStub).toBeCalled();expect(count).toBe(7);- jest.restoreAllMocks();+ vitest.restoreAllMocks();requestList = await RequestList.open({ sources: sourcesCopy });- const listStub = jest.spyOn(requestList, 'handledCount').mockReturnValue(20);- const queueStub = jest.spyOn(requestQueue, 'handledCount').mockResolvedValue(33);- const addRequestStub = jest.spyOn(requestQueue, 'addRequest').mockReturnValue(Promise.resolve() as any);+ const listStub = vitest.spyOn(requestList, 'handledCount').mockReturnValue(20);+ const queueStub = vitest.spyOn(requestQueue, 'handledCount').mockResolvedValue(33);+ const addRequestStub = vitest.spyOn(requestQueue, 'addRequest').mockReturnValue(Promise.resolve() as any);count = 0;crawler = new BasicCrawler({@@ -949,7 +947,7 @@ describe('BasicCrawler', () => {expect(addRequestStub).toBeCalledTimes(7);expect(count).toBe(7);- jest.restoreAllMocks();+ vitest.restoreAllMocks();});test('should timeout after handleRequestTimeoutSecs', async () => {@@ -1007,9 +1005,9 @@ describe('BasicCrawler', () => {});// @ts-expect-error Overriding protected method- const warningSpy = jest.spyOn(crawler.log, 'warning');+ const warningSpy = vitest.spyOn(crawler.log, 'warning');// @ts-expect-error Overriding protected method- const errorSpy = jest.spyOn(crawler.log, 'error');+ const errorSpy = vitest.spyOn(crawler.log, 'error');await crawler.run();@@ -1047,9 +1045,9 @@ describe('BasicCrawler', () => {});// @ts-expect-error Overriding protected method- const warningSpy = jest.spyOn(crawler.log, 'warning');+ const warningSpy = vitest.spyOn(crawler.log, 'warning');// @ts-expect-error Overriding protected method- const errorSpy = jest.spyOn(crawler.log, 'error');+ const errorSpy = vitest.spyOn(crawler.log, 'error');await crawler.run();@@ -1069,7 +1067,7 @@ describe('BasicCrawler', () => {expect(typeof args[0]).toBe('string');expect(/Request failed and reached maximum retries/.test(args[0])).toBe(true);expect(/Other non-timeout error/.test(args[0])).toBe(true);- expect(/at BasicCrawler\.requestHandler/.test(args[0])).toBe(true);+ expect(/at _?BasicCrawler\.requestHandler/.test(args[0])).toBe(true);expect(args[1]).toBeDefined();}});@@ -1088,9 +1086,9 @@ describe('BasicCrawler', () => {});// @ts-expect-error Overriding protected method- const warningSpy = jest.spyOn(crawler.log, 'warning');+ const warningSpy = vitest.spyOn(crawler.log, 'warning');// @ts-expect-error Overriding protected method- const errorSpy = jest.spyOn(crawler.log, 'error');+ const errorSpy = vitest.spyOn(crawler.log, 'error');await crawler.run();@@ -1133,9 +1131,9 @@ describe('BasicCrawler', () => {});// @ts-expect-error Overriding protected method- const warningSpy = jest.spyOn(crawler.log, 'warning');+ const warningSpy = vitest.spyOn(crawler.log, 'warning');// @ts-expect-error Overriding protected method- const errorSpy = jest.spyOn(crawler.log, 'error');+ const errorSpy = vitest.spyOn(crawler.log, 'error');await crawler.run();@@ -1145,7 +1143,7 @@ describe('BasicCrawler', () => {expect(typeof args[0]).toBe('string');expect(/Reclaiming failed request back to the list or queue/.test(args[0])).toBe(true);expect(/Other non-timeout error/.test(args[0])).toBe(true);- expect(/at BasicCrawler\.requestHandler/.test(args[0])).toBe(true);+ expect(/at _?BasicCrawler\.requestHandler/.test(args[0])).toBe(true);expect(args[1]).toBeDefined();}@@ -1155,7 +1153,7 @@ describe('BasicCrawler', () => {expect(typeof args[0]).toBe('string');expect(/Request failed and reached maximum retries/.test(args[0])).toBe(true);expect(/Other non-timeout error/.test(args[0])).toBe(true);- expect(/at BasicCrawler\.requestHandler/.test(args[0])).toBe(true);+ expect(/at _?BasicCrawler\.requestHandler/.test(args[0])).toBe(true);expect(args[1]).toBeDefined();}@@ -1300,16 +1298,18 @@ describe('BasicCrawler', () => {let url: string;- beforeAll((callback) => {- httpServer.listen(0, () => {- url = `http://127.0.0.1:${(httpServer.address() as AddressInfo).port}/`;+ beforeAll(async () => {+ await new Promise<void>((resolve) => {+ httpServer.listen(0, () => {+ url = `http://127.0.0.1:${(httpServer.address() as AddressInfo).port}/`;- callback();+ resolve();+ });});});- afterAll((callback) => {- httpServer.close(callback);+ afterAll(async () => {+ await new Promise((resolve) => httpServer.close(resolve));});test('works', async () => {diff --git a/test/core/crawlers/browser_crawler.test.ts b/test/core/crawlers/browser_crawler.test.tsindex 7684d57b9..e70cdb236 100644--- a/test/core/crawlers/browser_crawler.test.ts+++ b/test/core/crawlers/browser_crawler.test.ts@@ -25,20 +25,14 @@ import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';import { BrowserCrawlerTest } from './basic_browser_crawler';-jest.mock('got-scraping', () => {- const original: typeof import('got-scraping') = jest.requireActual('got-scraping');+vitest.mock('got-scraping', async () => {+ const original: typeof import('got-scraping') = await vitest.importActual('got-scraping');return {...original,- gotScraping: jest.fn(),+ gotScraping: vitest.fn(),};});-const gotScrapingSpy = gotScraping as jest.MockedFunction<typeof gotScraping>;--afterAll(() => {- jest.unmock('got-scraping');-});-describe('BrowserCrawler', () => {let prevEnvHeadless: string;let logLevel: number;@@ -135,7 +129,7 @@ describe('BrowserCrawler', () => {requestHandler: async () => {},maxRequestRetries: 1,});- jest.spyOn(browserCrawler.browserPool, 'destroy');+ vitest.spyOn(browserCrawler.browserPool, 'destroy');await browserCrawler.run();expect(browserCrawler.browserPool.destroy).toBeCalled();@@ -151,7 +145,7 @@ describe('BrowserCrawler', () => {let sessionGoto: Session;const browserCrawler = new class extends BrowserCrawlerTest {protected override _navigationHandler(ctx: PuppeteerCrawlingContext): Promise<HTTPResponse | null | undefined> {- jest.spyOn(ctx.session, 'markBad');+ vitest.spyOn(ctx.session, 'markBad');sessionGoto = ctx.session;throw new TimeoutError();}@@ -380,7 +374,7 @@ describe('BrowserCrawler', () => {],});- const callSpy = jest.fn();+ const callSpy = vitest.fn();const browserCrawler = new BrowserCrawlerTest({browserPoolOptions: {@@ -790,7 +784,7 @@ describe('BrowserCrawler', () => {test('proxy rotation on error works as expected', async () => {const goodProxyUrl = 'http://good.proxy';const proxyConfiguration = new ProxyConfiguration({ proxyUrls: ['http://localhost', 'http://localhost:1234', goodProxyUrl] });- const requestHandler = jest.fn();+ const requestHandler = vitest.fn();const browserCrawler = new class extends BrowserCrawlerTest {protected override async _navigationHandler(ctx: PuppeteerCrawlingContext): Promise<HTTPResponse | null | undefined> {@@ -821,7 +815,7 @@ describe('BrowserCrawler', () => {test('proxy rotation on error respects maxSessionRotations, calls failedRequestHandler', async () => {const proxyConfiguration = new ProxyConfiguration({ proxyUrls: ['http://localhost', 'http://localhost:1234'] });- const failedRequestHandler = jest.fn();+ const failedRequestHandler = vitest.fn();/*** The first increment is the base case when the proxy is retrieved for the first time.@@ -884,7 +878,7 @@ describe('BrowserCrawler', () => {requestHandler: async () => {},});- const spy = jest.spyOn((crawler as any).log, 'warning' as any).mockImplementation(() => {});+ const spy = vitest.spyOn((crawler as any).log, 'warning' as any).mockImplementation(() => {});await crawler.run([serverAddress]);diff --git a/test/core/crawlers/cheerio_crawler.test.ts b/test/core/crawlers/cheerio_crawler.test.tsindex fde284516..b76c5ae6e 100644--- a/test/core/crawlers/cheerio_crawler.test.ts+++ b/test/core/crawlers/cheerio_crawler.test.ts@@ -36,7 +36,6 @@ beforeAll(async () => {});afterAll(() => {- jest.unmock('got-scraping');server.close();});@@ -680,8 +679,8 @@ describe('CheerioCrawler', () => {describe('proxy', () => {beforeEach(async () => {- // Do not use clearAllMocks: https://github.com/facebook/jest/issues/7136- jest.restoreAllMocks();+ // Do not use clearAllMocks: https://github.com/facebook/vitest/issues/7136+ vitest.restoreAllMocks();});test('should work with Apify Proxy configuration', async () => {@@ -746,7 +745,7 @@ describe('CheerioCrawler', () => {test('proxy rotation on error works as expected', async () => {const goodProxyUrl = 'http://good.proxy';const proxyConfiguration = new ProxyConfiguration({ proxyUrls: ['http://localhost', 'http://localhost:1234', goodProxyUrl] });- const check = jest.fn();+ const check = vitest.fn();const crawler = new class extends CheerioCrawler {protected override async _requestFunction(...args: any[]): Promise<any> {@@ -777,7 +776,7 @@ describe('CheerioCrawler', () => {* The first increment is the base case when the proxy is retrieved for the first time.*/let numberOfRotations = -1;- const failedRequestHandler = jest.fn();+ const failedRequestHandler = vitest.fn();const crawler = new CheerioCrawler({proxyConfiguration,maxSessionRotations: 5,@@ -785,7 +784,7 @@ describe('CheerioCrawler', () => {failedRequestHandler,});- jest.spyOn(crawler, '_requestAsBrowser' as any).mockImplementation(async ({ proxyUrl }: any) => {+ vitest.spyOn(crawler, '_requestAsBrowser' as any).mockImplementation(async ({ proxyUrl }: any) => {if (proxyUrl.includes('localhost')) {numberOfRotations++;throw new Error('Proxy responded with 400 - Bad request');@@ -810,7 +809,7 @@ describe('CheerioCrawler', () => {requestHandler: async () => {},});- jest.spyOn(crawler, '_requestAsBrowser' as any).mockImplementation(async ({ proxyUrl }: any) => {+ vitest.spyOn(crawler, '_requestAsBrowser' as any).mockImplementation(async ({ proxyUrl }: any) => {if (proxyUrl.includes('localhost')) {throw new Error(proxyError);}@@ -818,7 +817,7 @@ describe('CheerioCrawler', () => {return null;});- const spy = jest.spyOn((crawler as any).log, 'warning' as any).mockImplementation(() => {});+ const spy = vitest.spyOn((crawler as any).log, 'warning' as any).mockImplementation(() => {});await crawler.run([serverAddress]);@@ -929,14 +928,14 @@ describe('CheerioCrawler', () => {// @ts-expect-error private symbolexpect(crawler.sessionPool.sessions.length).toBe(4);// @ts-expect-error private symbol- // eslint-disable-next-line no-loop-func+crawler.sessionPool.sessions.forEach((session) => {// @ts-expect-error Accessing private propexpect(session.errorScore).toBeGreaterThanOrEqual(session.maxErrorScore);});expect(failed.length).toBe(4);- // eslint-disable-next-line no-loop-func+failed.forEach((request) => {expect(request.errorMessages[0].includes(`Request blocked - received ${code} status code`)).toBeTruthy();});@@ -1011,7 +1010,7 @@ describe('CheerioCrawler', () => {}],});- const sessSpy = jest.spyOn(Session.prototype, 'getCookieString');+ const sessSpy = vitest.spyOn(Session.prototype, 'getCookieString');sessSpy.mockReturnValueOnce('foo=bar1; other=cookie1; coo=kie');await crawler.run();expect(responses).toHaveLength(1);@@ -1086,7 +1085,7 @@ describe('CheerioCrawler', () => {});test('mergeCookies()', async () => {- const deprecatedSpy = jest.spyOn(Log.prototype, 'deprecated');+ const deprecatedSpy = vitest.spyOn(Log.prototype, 'deprecated');const cookie1 = mergeCookies('https://example.com', ['foo=bar1; other=cookie1 ; coo=kie','foo=bar2; baz=123',@@ -1125,7 +1124,7 @@ describe('CheerioCrawler', () => {let usedSession: Session;const proxyConfiguration = new ProxyConfiguration({ proxyUrls: ['http://localhost:8080'] });- const newUrlSpy = jest.spyOn(proxyConfiguration, 'newUrl');+ const newUrlSpy = vitest.spyOn(proxyConfiguration, 'newUrl');const cheerioCrawler = new CheerioCrawler({requestList: requestListNew,maxRequestRetries: 0,diff --git a/test/core/crawlers/dom_crawler.test.ts b/test/core/crawlers/dom_crawler.test.tsindex 8804dde37..2b7e665c1 100644--- a/test/core/crawlers/dom_crawler.test.ts+++ b/test/core/crawlers/dom_crawler.test.ts@@ -13,7 +13,7 @@ router.set('/', (req, res) => {let server: http.Server;let url: string;-beforeAll((cb) => {+beforeAll(async () => {server = http.createServer((request, response) => {try {const requestUrl = new URL(request.url, 'http://localhost');@@ -23,14 +23,14 @@ beforeAll((cb) => {}});- server.listen(() => {+ await new Promise<void>((resolve) => server.listen(() => {url = `http://127.0.0.1:${(server.address() as AddressInfo).port}`;- cb();- });+ resolve();+ }));});-afterAll((cb) => {- server.close(cb);+afterAll(async (cb) => {+ await new Promise((resolve) => server.close(resolve));});const localStorageEmulator = new MemoryStorageEmulator();diff --git a/test/core/crawlers/http_crawler.test.ts b/test/core/crawlers/http_crawler.test.tsindex c95f63e8a..aeb4e2169 100644--- a/test/core/crawlers/http_crawler.test.ts+++ b/test/core/crawlers/http_crawler.test.ts@@ -55,7 +55,7 @@ router.set('/500Error', (req, res) => {let server: http.Server;let url: string;-beforeAll((cb) => {+beforeAll(async () => {server = http.createServer((request, response) => {try {const requestUrl = new URL(request.url, 'http://localhost');@@ -65,14 +65,14 @@ beforeAll((cb) => {}});- server.listen(() => {+ await new Promise<void>((resolve) => server.listen(() => {url = `http://127.0.0.1:${(server.address() as AddressInfo).port}`;- cb();- });+ resolve();+ }));});-afterAll((cb) => {- server.close(cb);+afterAll(async () => {+ await new Promise((resolve) => server.close(resolve));});const localStorageEmulator = new MemoryStorageEmulator();diff --git a/test/core/crawlers/playwright_crawler.test.ts b/test/core/crawlers/playwright_crawler.test.tsindex 4d1289198..5d2c5282b 100644--- a/test/core/crawlers/playwright_crawler.test.ts+++ b/test/core/crawlers/playwright_crawler.test.ts@@ -18,7 +18,7 @@ import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';import { startExpressAppPromise } from '../../shared/_helper';-if (os.platform() === 'win32') jest.setTimeout(2 * 60 * 1e3);+if (os.platform() === 'win32') vitest.setConfig({ testTimeout: 2 * 60 * 1e3 });describe('PlaywrightCrawler', () => {let prevEnvHeadless: string;@@ -66,7 +66,7 @@ describe('PlaywrightCrawler', () => {server.close();});- jest.setTimeout(2 * 60 * 1e3);+ vitest.setConfig({ testTimeout: 2 * 60 * 1e3 });describe('should work', () => {// @TODO: add webkittest.each(['chromium', 'firefox'] as const)('with %s', async (browser) => {diff --git a/test/core/crawlers/puppeteer_crawler.test.ts b/test/core/crawlers/puppeteer_crawler.test.tsindex 014c5eee1..ddd21aa73 100644--- a/test/core/crawlers/puppeteer_crawler.test.ts+++ b/test/core/crawlers/puppeteer_crawler.test.ts@@ -221,7 +221,7 @@ describe('PuppeteerCrawler', () => {test('timeout via preNavigationHooks will abort the page function as early as possible (gh #1216)', async () => {const requestQueue = await RequestQueue.open();await requestQueue.addRequest({ url: serverUrl });- const requestHandler = jest.fn();+ const requestHandler = vitest.fn();const crawler = new PuppeteerCrawler({requestQueue,@@ -236,11 +236,11 @@ describe('PuppeteerCrawler', () => {});// @ts-expect-error Overriding protected method- const logWarningSpy = jest.spyOn(crawler.log, 'warning');+ const logWarningSpy = vitest.spyOn(crawler.log, 'warning');logWarningSpy.mockImplementation(() => {});// @ts-expect-error Overriding protected method- const logErrorSpy = jest.spyOn(crawler.log, 'error');+ const logErrorSpy = vitest.spyOn(crawler.log, 'error');logErrorSpy.mockImplementation(() => {});await crawler.run();@@ -263,7 +263,6 @@ describe('PuppeteerCrawler', () => {3,],]);- logWarningSpy.mockRestore();const errors = logErrorSpy.mock.calls.map((call) => [call[0], call[1].retryCount]);expect(errors).toEqual([@@ -272,13 +271,12 @@ describe('PuppeteerCrawler', () => {undefined,],]);- logErrorSpy.mockRestore();});test('timeout in preLaunchHooks will abort the page function as early as possible (gh #1216)', async () => {const requestQueue = await RequestQueue.open();await requestQueue.addRequest({ url: serverUrl });- const requestHandler = jest.fn();+ const requestHandler = vitest.fn();const crawler = new PuppeteerCrawler({requestQueue,@@ -295,11 +293,11 @@ describe('PuppeteerCrawler', () => {});// @ts-expect-error Overriding protected method- const logWarningSpy = jest.spyOn(crawler.log, 'warning');+ const logWarningSpy = vitest.spyOn(crawler.log, 'warning');logWarningSpy.mockImplementation(() => {});// @ts-expect-error Overriding protected method- const logErrorSpy = jest.spyOn(crawler.log, 'error');+ const logErrorSpy = vitest.spyOn(crawler.log, 'error');logErrorSpy.mockImplementation(() => {});await crawler.run();@@ -322,7 +320,6 @@ describe('PuppeteerCrawler', () => {3,],]);- logWarningSpy.mockRestore();const errors = logErrorSpy.mock.calls.map((call) => [call[0], call[1].retryCount]);expect(errors).toEqual([@@ -331,7 +328,6 @@ describe('PuppeteerCrawler', () => {undefined,],]);- logErrorSpy.mockRestore();});test('should set cookies assigned to session to page', async () => {diff --git a/test/core/crawlers/statistics.test.ts b/test/core/crawlers/statistics.test.tsindex 97570b367..94a919ac8 100644--- a/test/core/crawlers/statistics.test.ts+++ b/test/core/crawlers/statistics.test.ts@@ -12,7 +12,7 @@ describe('Statistics', () => {const events = Configuration.getEventManager();beforeAll(async () => {- jest.useFakeTimers();+ vitest.useFakeTimers();});beforeEach(async () => {@@ -48,9 +48,9 @@ describe('Statistics', () => {test('should persist the state to KV and load again', async () => {const startedAt = 1000;- jest.advanceTimersByTime(startedAt);+ vitest.advanceTimersByTime(startedAt);stats.startJob(0);- jest.advanceTimersByTime(100);+ vitest.advanceTimersByTime(100);stats.finishJob(0);await stats.startCapturing();@@ -113,10 +113,10 @@ describe('Statistics', () => {await stats.startCapturing();stats.startJob(1);- jest.advanceTimersByTime(100);+ vitest.advanceTimersByTime(100);stats.finishJob(1);- jest.advanceTimersByTime(1000);+ vitest.advanceTimersByTime(1000);expect(stats.toJSON()).toEqual({crawlerRuntimeMillis: 2200,@@ -141,7 +141,7 @@ describe('Statistics', () => {statsPersistedAt: toISOString(startedAt + 1200),});- jest.advanceTimersByTime(10000);+ vitest.advanceTimersByTime(10000);expect(stats.calculate()).toEqual({crawlerRuntimeMillis: 12200,@@ -171,14 +171,14 @@ describe('Statistics', () => {test('on persistState event', async () => {stats.startJob(0);- jest.advanceTimersByTime(100);+ vitest.advanceTimersByTime(100);stats.finishJob(0);await stats.startCapturing(); // keyValueStore is initialized hereconst state = stats.toJSON();// @ts-expect-error Accessing private prop- const setValueSpy = jest.spyOn(stats.keyValueStore, 'setValue');+ const setValueSpy = vitest.spyOn(stats.keyValueStore, 'setValue');events.emit(EventType.PERSIST_STATE);@@ -188,15 +188,14 @@ describe('Statistics', () => {// @ts-expect-error Accessing private propexpect(setValueSpy).toBeCalledWith(stats.persistStateKey, { ...state, ...rest });- setValueSpy.mockRestore();}, 2000);});test('should finish a job', () => {stats.startJob(0);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);stats.finishJob(0);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);const current = stats.calculate();expect(current).toEqual({crawlerRuntimeMillis: 2,@@ -211,9 +210,9 @@ describe('Statistics', () => {test('should fail a job', () => {stats.startJob(0);- jest.advanceTimersByTime(0);+ vitest.advanceTimersByTime(0);stats.failJob(0);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);const current = stats.calculate();expect(current).toEqual({crawlerRuntimeMillis: 1,@@ -252,17 +251,17 @@ describe('Statistics', () => {test('should return correct stats for multiple parallel jobs', () => {stats.startJob(0);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);stats.startJob(1);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);stats.startJob(2);- jest.advanceTimersByTime(2);+ vitest.advanceTimersByTime(2);stats.finishJob(1); // runtime: 3ms- jest.advanceTimersByTime(1); // since startedAt: 5ms+ vitest.advanceTimersByTime(1); // since startedAt: 5msstats.failJob(0); // runtime: irrelevant- jest.advanceTimersByTime(10);+ vitest.advanceTimersByTime(10);stats.finishJob(2); // runtime: 13ms- jest.advanceTimersByTime(10); // since startedAt: 25ms+ vitest.advanceTimersByTime(10); // since startedAt: 25msconst current = stats.calculate();expect(current).toEqual({@@ -284,18 +283,18 @@ describe('Statistics', () => {test('should regularly log stats', async () => {const logged: [string, Dictionary?][] = [];// @ts-expect-error Accessing private prop- const infoSpy = jest.spyOn(stats.log, 'info');- infoSpy.mockImplementation((...args) => {+ const infoSpy = vitest.spyOn(stats.log, 'info');+ infoSpy.mockImplementation((...args: [message: string, data?: Record<string, any>]) => {logged.push(args);});stats.startJob(0);- jest.advanceTimersByTime(1);+ vitest.advanceTimersByTime(1);stats.finishJob(0);await stats.startCapturing();- jest.advanceTimersByTime(50000);+ vitest.advanceTimersByTime(50000);expect(logged).toHaveLength(0);- jest.advanceTimersByTime(10001);+ vitest.advanceTimersByTime(10001);expect(logged).toHaveLength(1);expect(logged[0][0]).toBe('Statistics');expect(logged[0][1]).toEqual({@@ -309,7 +308,7 @@ describe('Statistics', () => {retryHistogram: [1],});await stats.stopCapturing();- jest.advanceTimersByTime(60001);+ vitest.advanceTimersByTime(60001);expect(logged).toHaveLength(1);expect(logged[0][0]).toBe('Statistics');expect(logged[0][1]).toEqual({@@ -322,13 +321,12 @@ describe('Statistics', () => {requestsTotal: 1,retryHistogram: [1],});- infoSpy.mockRestore();});test('should reset stats', async () => {await stats.startCapturing();stats.startJob(1);- jest.advanceTimersByTime(3);+ vitest.advanceTimersByTime(3);stats.finishJob(1);expect(stats.state.requestsFinished).toEqual(1);expect(stats.requestRetryHistogram).toEqual([1]);diff --git a/test/core/playwright_utils.test.ts b/test/core/playwright_utils.test.tsindex 7d9c8919a..ca29ff875 100644--- a/test/core/playwright_utils.test.ts+++ b/test/core/playwright_utils.test.ts@@ -299,7 +299,7 @@ describe('playwrightUtils', () => {});test('saveSnapshot() works', async () => {- const openKVSSpy = jest.spyOn(KeyValueStore, 'open');+ const openKVSSpy = vitest.spyOn(KeyValueStore, 'open');const browser = await chromium.launch({ headless: true });try {@@ -310,7 +310,7 @@ describe('playwrightUtils', () => {const screenshot = await page.screenshot({ fullPage: true, type: 'jpeg', quality: 60 });// Test saving both image and html- const object = { setValue: jest.fn() };+ const object = { setValue: vitest.fn() };openKVSSpy.mockResolvedValue(object as any);await playwrightUtils.saveSnapshot(page, { key: 'TEST', keyValueStoreName: 'TEST-STORE', screenshotQuality: 60 });@@ -325,7 +325,6 @@ describe('playwrightUtils', () => {const screenshot2 = await page.screenshot({ fullPage: true, type: 'jpeg', quality: 50 });expect(object.setValue).toBeCalledWith('SNAPSHOT.jpg', screenshot2, { contentType: 'image/jpeg' });} finally {- openKVSSpy.mockRestore();await browser.close();}});diff --git a/test/core/puppeteer_utils.test.ts b/test/core/puppeteer_utils.test.tsindex 9f52bdb1b..07f6cc104 100644--- a/test/core/puppeteer_utils.test.ts+++ b/test/core/puppeteer_utils.test.ts@@ -425,7 +425,7 @@ describe('puppeteerUtils', () => {});it('saveSnapshot() works', async () => {- const openKVSSpy = jest.spyOn(KeyValueStore, 'open');+ const openKVSSpy = vitest.spyOn(KeyValueStore, 'open');const browser = await method(launchContext);try {@@ -436,7 +436,7 @@ describe('puppeteerUtils', () => {const screenshot = await page.screenshot({ fullPage: true, type: 'jpeg', quality: 60 });// Test saving both image and html- const object = { setValue: jest.fn() };+ const object = { setValue: vitest.fn() };openKVSSpy.mockResolvedValue(object as any);await puppeteerUtils.saveSnapshot(page, { key: 'TEST', keyValueStoreName: 'TEST-STORE', screenshotQuality: 60 });@@ -451,7 +451,6 @@ describe('puppeteerUtils', () => {const screenshot2 = await page.screenshot({ fullPage: true, type: 'jpeg', quality: 50 });expect(object.setValue).toBeCalledWith('SNAPSHOT.jpg', screenshot2, { contentType: 'image/jpeg' });} finally {- openKVSSpy.mockRestore();await browser.close();}});diff --git a/test/core/request_list.test.ts b/test/core/request_list.test.tsindex e98a2c93a..ab39db0d5 100644--- a/test/core/request_list.test.ts+++ b/test/core/request_list.test.ts@@ -16,25 +16,15 @@ function shuffle(array: unknown[]) : unknown[] {return out;}-jest.mock('got-scraping', () => {- const original: typeof import('got-scraping') = jest.requireActual('got-scraping');+vitest.mock('got-scraping', async () => {+ const original: typeof import('got-scraping') = await vitest.importActual('got-scraping');return {...original,- gotScraping: jest.fn(original.gotScraping),+ gotScraping: vitest.fn(original.gotScraping),};});-const gotScrapingSpy = gotScraping as jest.MockedFunction<typeof gotScraping>;-const originalGotScraping = gotScrapingSpy.getMockImplementation()!;--afterEach(() => {- gotScrapingSpy.mockReset();- gotScrapingSpy.mockImplementation(originalGotScraping);-});--afterAll(() => {- jest.unmock('got-scraping');-});+const gotScrapingSpy = vitest.mocked(gotScraping);describe('RequestList', () => {let ll: number;@@ -48,7 +38,7 @@ describe('RequestList', () => {beforeEach(async () => {await emulator.init();- jest.restoreAllMocks();+ vitest.restoreAllMocks();});afterAll(async () => {@@ -142,7 +132,7 @@ describe('RequestList', () => {});test('should correctly load list from hosted files in correct order', async () => {- const spy = jest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');const list1 = ['https://example.com','https://google.com',@@ -171,7 +161,6 @@ describe('RequestList', () => {expect(spy).toBeCalledTimes(2);expect(spy).toBeCalledWith({ url: 'http://example.com/list-1', urlRegExp: undefined });expect(spy).toBeCalledWith({ url: 'http://example.com/list-2', urlRegExp: undefined });- spy.mockRestore();});test('should use regex parameter to parse urls', async () => {@@ -194,7 +183,6 @@ describe('RequestList', () => {expect(await requestList.fetchNextRequest()).toMatchObject({ method: 'GET', url: listArr[1] });expect(gotScrapingSpy).toBeCalledWith({ url: 'http://example.com/list-1', encoding: 'utf8' });- gotScrapingSpy.mockRestore();});test('should fix gdoc sharing url in `requestsFromUrl` automatically (GH issue #639)', async () => {@@ -224,11 +212,10 @@ describe('RequestList', () => {expect(await requestList.fetchNextRequest()).toMatchObject({ method: 'GET', url: list[2] });expect(gotScrapingSpy).toBeCalledWith({ url: correctUrl, encoding: 'utf8' });- gotScrapingSpy.mockRestore();});test('should handle requestsFromUrl with no URLs', async () => {- const spy = jest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');spy.mockResolvedValueOnce([]);const requestList = await RequestList.open({@@ -244,7 +231,6 @@ describe('RequestList', () => {expect(spy).toBeCalledTimes(1);expect(spy).toBeCalledWith({ url: 'http://example.com/list-1', urlRegExp: undefined });- spy.mockRestore();});test('should use the defined proxy server when using `requestsFromUrl`', async () => {@@ -253,7 +239,7 @@ describe('RequestList', () => {'http://another.proxy.url',];- const spy = jest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');spy.mockResolvedValue([]);const proxyConfiguration = new ProxyConfiguration({@@ -270,8 +256,6 @@ describe('RequestList', () => {});expect(spy).not.toBeCalledWith(expect.not.objectContaining({ proxyUrl: expect.any(String) }));-- spy.mockRestore();});test('should correctly handle reclaimed pages', async () => {@@ -467,8 +451,8 @@ describe('RequestList', () => {test('should correctly persist its state when persistStateKey is set', async () => {const PERSIST_STATE_KEY = 'some-key';- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');getValueSpy.mockResolvedValueOnce(null);@@ -518,8 +502,8 @@ describe('RequestList', () => {test('should correctly persist its sources when persistRequestsKey is set', async () => {const PERSIST_REQUESTS_KEY = 'some-key';- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');let persistedRequests;@@ -561,9 +545,9 @@ describe('RequestList', () => {test('should correctly persist sources from requestsFromUrl if persistRequestsKey is set', async () => {const PERSIST_REQUESTS_KEY = 'some-key';- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');- const spy = jest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');+ const spy = vitest.spyOn(RequestList.prototype as any, '_downloadListOfUrls');let persistedRequests;const opts = {@@ -592,7 +576,6 @@ describe('RequestList', () => {expect(spy).toBeCalledTimes(1);expect(spy).toBeCalledWith({ url: 'http://example.com/list-urls.txt', urlRegExp: undefined });- spy.mockRestore();});test('handles correctly inconsistent inProgress fields in state', async () => {@@ -696,7 +679,7 @@ describe('RequestList', () => {expect(requestList.length()).toBe(4);log.setLevel(log.LEVELS.INFO);- const warnSpy = jest.spyOn(console, 'warn').mockImplementation();+ const warnSpy = vitest.spyOn(console, 'warn').mockImplementation(() => {});requestList = await RequestList.open({sources: sourcesCopy.concat([@@ -712,14 +695,13 @@ describe('RequestList', () => {expect(warnSpy).toBeCalled();expect(warnSpy.mock.calls[0][0]).toMatch(`Check your sources' unique keys.`);- warnSpy.mockRestore();log.setLevel(log.LEVELS.ERROR);});describe('Apify.RequestList.open()', () => {test('should work', async () => {- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');const name = 'xxx';const SDK_KEY = `SDK_${name}`;@@ -741,8 +723,8 @@ describe('RequestList', () => {});test('should work with string sources', async () => {- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');const name = 'xxx';const SDK_KEY = `SDK_${name}`;@@ -764,8 +746,8 @@ describe('RequestList', () => {});test('should correctly pass options', async () => {- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');const name = 'xxx';const SDK_KEY = `SDK_${name}`;@@ -794,8 +776,8 @@ describe('RequestList', () => {});test('should work with null name', async () => {- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');- const setValueSpy = jest.spyOn(KeyValueStore.prototype, 'setValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');+ const setValueSpy = vitest.spyOn(KeyValueStore.prototype, 'setValue');const name: string = null;const sources = [{ url: 'https://example.com' }];diff --git a/test/core/router.test.ts b/test/core/router.test.tsindex bd089f124..0bf817515 100644--- a/test/core/router.test.ts+++ b/test/core/router.test.ts@@ -23,7 +23,7 @@ describe('Router', () => {router.use(({ request }) => void logs.push(`middleware 2: ${request.loadedUrl}`));router.use(({ request }) => void logs.push(`middleware 3: ${request.loadedUrl}`));- const log = { info: jest.fn(), warn: jest.fn(), debug: jest.fn() };+ const log = { info: vitest.fn(), warn: vitest.fn(), debug: vitest.fn() };await router({ request: { loadedUrl: 'https://example.com/A', label: 'A' }, log } as any);await router({ request: { loadedUrl: 'https://example.com/A', label: 'A' }, log } as any);await router({ request: { loadedUrl: 'https://example.com/C', label: 'C' }, log } as any);@@ -107,7 +107,7 @@ describe('Router', () => {router.addDefaultHandler(async (ctx) => {logs.push(`default handled with url ${ctx.request.loadedUrl}`);});- const log = { info: jest.fn(), warn: jest.fn(), debug: jest.fn() };+ const log = { info: vitest.fn(), warn: vitest.fn(), debug: vitest.fn() };await router({ request: { loadedUrl: 'https://example.com/A', label: 'A' }, log } as any);await router({ request: { loadedUrl: 'https://example.com/B', label: 'B' }, log } as any);await router({ request: { loadedUrl: 'https://example.com/C', label: 'C' }, log } as any);@@ -125,7 +125,7 @@ describe('Router', () => {const router = Router.create();router.addHandler('A', async (ctx) => {});expect(() => router.addHandler('A', async (ctx) => {})).toThrow();- const log = { info: jest.fn(), warn: jest.fn(), debug: jest.fn() };+ const log = { info: vitest.fn(), warn: vitest.fn(), debug: vitest.fn() };await expect(router({ request: { loadedUrl: 'https://example.com/C', label: 'C' }, log } as any)).rejects.toThrow(MissingRouteError);router.addDefaultHandler(async (ctx) => {});expect(() => router.addDefaultHandler(async (ctx) => {})).toThrow();diff --git a/test/core/session_pool/session.test.ts b/test/core/session_pool/session.test.tsindex e2be4069b..f36a0bf57 100644--- a/test/core/session_pool/session.test.ts+++ b/test/core/session_pool/session.test.ts@@ -96,8 +96,8 @@ describe('Session - testing session behaviour ', () => {test('should retire session after marking bad', () => {// @ts-expect-error Private property- jest.spyOn(session, '_maybeSelfRetire');- jest.spyOn(session, 'retire');+ vitest.spyOn(session, '_maybeSelfRetire');+ vitest.spyOn(session, 'retire');session.markBad();expect(session.retire).toBeCalledTimes(0);session.isUsable = () => false;@@ -107,8 +107,8 @@ describe('Session - testing session behaviour ', () => {test('should retire session after marking good', () => {// @ts-expect-error Private property- jest.spyOn(session, '_maybeSelfRetire');- jest.spyOn(session, 'retire');+ vitest.spyOn(session, '_maybeSelfRetire');+ vitest.spyOn(session, 'retire');session.markGood();expect(session.retire).toBeCalledTimes(0);@@ -120,7 +120,7 @@ describe('Session - testing session behaviour ', () => {test('should reevaluate usability of session after marking the session', () => {// @ts-expect-error Private property- jest.spyOn(session, '_maybeSelfRetire');+ vitest.spyOn(session, '_maybeSelfRetire');session.markGood();// @ts-expect-error Private propertyexpect(session._maybeSelfRetire).toBeCalledTimes(1);diff --git a/test/core/storages/dataset.test.ts b/test/core/storages/dataset.test.tsindex 6ec53e43a..88ce25ac7 100644--- a/test/core/storages/dataset.test.ts+++ b/test/core/storages/dataset.test.ts@@ -17,7 +17,7 @@ describe('dataset', () => {const storageClient = Configuration.getStorageClient();beforeEach(async () => {- jest.clearAllMocks();+ vitest.clearAllMocks();});describe('remote', () => {@@ -29,9 +29,10 @@ describe('dataset', () => {client: storageClient,});- const mockPushItems = jest- .spyOn(dataset.client, 'pushItems')- .mockResolvedValueOnce(null);+ const pushItemSpy = vitest+ .spyOn(dataset.client, 'pushItems');++ const mockPushItems = pushItemSpy.mockResolvedValueOnce(null);await dataset.pushData({ foo: 'bar' });@@ -40,9 +41,7 @@ describe('dataset', () => {JSON.stringify({ foo: 'bar' }),);- const mockPushItems2 = jest- .spyOn(dataset.client, 'pushItems')- .mockResolvedValueOnce(null);+ const mockPushItems2 = pushItemSpy.mockResolvedValueOnce(null);await dataset.pushData([{ foo: 'hotel;' },@@ -54,7 +53,7 @@ describe('dataset', () => {JSON.stringify([{ foo: 'hotel;' }, { foo: 'restaurant' }]),);- const mockDelete = jest+ const mockDelete = vitest.spyOn(dataset.client, 'delete').mockResolvedValueOnce(undefined);@@ -72,7 +71,7 @@ describe('dataset', () => {client: storageClient,});- const mockPushItems = jest.spyOn(dataset.client, 'pushItems');+ const mockPushItems = vitest.spyOn(dataset.client, 'pushItems');mockPushItems.mockResolvedValueOnce(null);mockPushItems.mockResolvedValueOnce(null);@@ -99,7 +98,7 @@ describe('dataset', () => {client: storageClient,});- const mockPushItems = jest.spyOn(dataset.client, 'pushItems');+ const mockPushItems = vitest.spyOn(dataset.client, 'pushItems');mockPushItems.mockResolvedValueOnce(null);mockPushItems.mockResolvedValueOnce(null);@@ -157,7 +156,7 @@ describe('dataset', () => {desc: false,};- const mockListItems = jest.spyOn(dataset.client, 'listItems');+ const mockListItems = vitest.spyOn(dataset.client, 'listItems');mockListItems.mockResolvedValueOnce(expected);const result = await dataset.getData({ limit: 2, offset: 3 });@@ -169,7 +168,7 @@ describe('dataset', () => {expect(result).toEqual(expected);let e;- const spy = jest.spyOn(dataset.client, 'listItems')+ const spy = vitest.spyOn(dataset.client, 'listItems').mockImplementation(() => { throw new Error('Cannot create a string longer than 0x3fffffe7 characters'); });try {await dataset.getData();@@ -177,7 +176,6 @@ describe('dataset', () => {e = err;}expect((e as Error).message).toEqual('dataset.getData(): The response is too large for parsing. You can fix this by lowering the "limit" option.');- spy.mockRestore();});test('getInfo() should work', async () => {@@ -192,7 +190,7 @@ describe('dataset', () => {itemCount: 14,};- const mockGetDataset = jest.spyOn(dataset.client, 'get');+ const mockGetDataset = vitest.spyOn(dataset.client, 'get');mockGetDataset.mockResolvedValueOnce(expected);const result = await dataset.getInfo();@@ -230,7 +228,7 @@ describe('dataset', () => {desc: false,};- const mockListItems = jest.spyOn(dataset.client, 'listItems');+ const mockListItems = vitest.spyOn(dataset.client, 'listItems');mockListItems.mockResolvedValueOnce(firstResolve);mockListItems.mockResolvedValueOnce(secondResolve);@@ -361,7 +359,7 @@ describe('dataset', () => {name: 'some-name',client: storageClient,});- const mockListItems = jest.spyOn(dataset.client, 'listItems');+ const mockListItems = vitest.spyOn(dataset.client, 'listItems');mockListItems.mockResolvedValueOnce({items: [{ foo: 4 },diff --git a/test/core/storages/key_value_store.test.ts b/test/core/storages/key_value_store.test.tsindex 1dd362188..99c7c37f4 100644--- a/test/core/storages/key_value_store.test.ts+++ b/test/core/storages/key_value_store.test.ts@@ -18,7 +18,7 @@ describe('KeyValueStore', () => {const client = Configuration.getStorageClient();beforeEach(async () => {- jest.clearAllMocks();+ vitest.clearAllMocks();});test('should work', async () => {@@ -32,7 +32,7 @@ describe('KeyValueStore', () => {const recordStr = JSON.stringify(record, null, 2);// Set record- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -47,7 +47,7 @@ describe('KeyValueStore', () => {});// Get Record- const mockGetRecord = jest+ const mockGetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'getRecord').mockResolvedValueOnce({@@ -63,7 +63,7 @@ describe('KeyValueStore', () => {expect(response).toEqual(record);// Delete Record- const mockDeleteRecord = jest+ const mockDeleteRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'deleteRecord').mockResolvedValueOnce(null);@@ -74,7 +74,7 @@ describe('KeyValueStore', () => {expect(mockDeleteRecord).toBeCalledWith('key-1');// Drop store- const mockDelete = jest+ const mockDelete = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'delete').mockResolvedValueOnce(undefined);@@ -101,7 +101,7 @@ describe('KeyValueStore', () => {});test('KeyValueStore.getValue()', async () => {- const getValueSpy = jest.spyOn(KeyValueStore.prototype, 'getValue');+ const getValueSpy = vitest.spyOn(KeyValueStore.prototype, 'getValue');getValueSpy.mockImplementationOnce(async () => 123);const val = await KeyValueStore.getValue('key-1');@@ -215,7 +215,7 @@ describe('KeyValueStore', () => {client,});- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -239,7 +239,7 @@ describe('KeyValueStore', () => {const record = { foo: 'bar' };const recordStr = JSON.stringify(record, null, 2);- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -260,7 +260,7 @@ describe('KeyValueStore', () => {client,});- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -281,7 +281,7 @@ describe('KeyValueStore', () => {client,});- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -303,7 +303,7 @@ describe('KeyValueStore', () => {client,});- const mockSetRecord = jest+ const mockSetRecord = vitest// @ts-expect-error Accessing private property.spyOn(store.client, 'setRecord').mockResolvedValueOnce(null);@@ -389,7 +389,7 @@ describe('KeyValueStore', () => {});// @ts-expect-error Accessing private property- const mockListKeys = jest.spyOn(store.client, 'listKeys');+ const mockListKeys = vitest.spyOn(store.client, 'listKeys');mockListKeys.mockResolvedValueOnce({isTruncated: true,exclusiveStartKey: 'key0',diff --git a/test/core/storages/request_queue.test.ts b/test/core/storages/request_queue.test.tsindex c7b538724..9fb39b825 100644--- a/test/core/storages/request_queue.test.ts+++ b/test/core/storages/request_queue.test.ts@@ -14,31 +14,21 @@ import { gotScraping } from 'got-scraping';import { MemoryStorageEmulator } from '../../shared/MemoryStorageEmulator';-jest.mock('got-scraping', () => {- const original: typeof import('got-scraping') = jest.requireActual('got-scraping');+vitest.mock('got-scraping', async () => {+ const original: typeof import('got-scraping') = await vitest.importActual('got-scraping');return {...original,- gotScraping: jest.fn(original.gotScraping),+ gotScraping: vitest.fn(original.gotScraping),};});-const gotScrapingSpy = gotScraping as jest.MockedFunction<typeof gotScraping>;-const originalGotScraping = gotScrapingSpy.getMockImplementation()!;--afterEach(() => {- gotScrapingSpy.mockReset();- gotScrapingSpy.mockImplementation(originalGotScraping);-});--afterAll(() => {- jest.unmock('got-scraping');-});+const gotScrapingSpy = vitest.mocked(gotScraping);describe('RequestQueue remote', () => {const storageClient = Configuration.getStorageClient();beforeEach(() => {- jest.clearAllMocks();+ vitest.clearAllMocks();});test('should work', async () => {@@ -48,7 +38,7 @@ describe('RequestQueue remote', () => {wasAlreadyHandled: false,wasAlreadyPresent: false,};- const mockAddRequest = jest+ const mockAddRequest = vitest.spyOn(queue.client, 'addRequest').mockResolvedValueOnce(firstResolveValue);@@ -89,7 +79,7 @@ describe('RequestQueue remote', () => {expect(queue.inProgressCount()).toBe(0);// Forefronted request was added to the queue.- const mockGetRequest = jest.spyOn(queue.client, 'getRequest');+ const mockGetRequest = vitest.spyOn(queue.client, 'getRequest');mockGetRequest.mockResolvedValueOnce({ ...requestB, id: 'b' });const requestBFromQueue = await queue.fetchNextRequest();@@ -119,7 +109,7 @@ describe('RequestQueue remote', () => {expect(requestXFromQueue).toBe(null);// Reclaim it.- const mockUpdateRequest = jest.spyOn(queue.client, 'updateRequest');+ const mockUpdateRequest = vitest.spyOn(queue.client, 'updateRequest');mockUpdateRequest.mockResolvedValueOnce({requestId: 'b',wasAlreadyHandled: false,@@ -173,7 +163,7 @@ describe('RequestQueue remote', () => {queue['queueHeadIds'].clear();// Query queue head.- const mockListHead = jest.spyOn(queue.client, 'listHead');+ const mockListHead = vitest.spyOn(queue.client, 'listHead');mockListHead.mockResolvedValueOnce({items: [{ id: 'a', uniqueKey: 'aaa' },@@ -193,7 +183,7 @@ describe('RequestQueue remote', () => {expect(queue.inProgressCount()).toBe(1);// Drop queue.- const mockDelete = jest.spyOn(queue.client, 'delete');+ const mockDelete = vitest.spyOn(queue.client, 'delete');mockDelete.mockResolvedValueOnce(undefined);await queue.drop();@@ -203,7 +193,7 @@ describe('RequestQueue remote', () => {test('addRequests', async () => {const queue = new RequestQueue({ id: 'batch-requests', client: storageClient });- const mockAddRequests = jest.spyOn(queue.client, 'batchAddRequests');+ const mockAddRequests = vitest.spyOn(queue.client, 'batchAddRequests');const requestOptions = { url: 'http://example.com/a' };const requestA = new Request(requestOptions);@@ -292,7 +282,7 @@ describe('RequestQueue remote', () => {const requestB = new Request({ url: 'http://example.com/a' }); // Has same uniqueKey as A// Add request A- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({requestId: 'a',wasAlreadyHandled: false,@@ -322,7 +312,7 @@ describe('RequestQueue remote', () => {const requestY = new Request({ url: 'http://example.com/x' }); // Has same uniqueKey as X// Add request X.- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({requestId: 'x',wasAlreadyHandled: true,@@ -349,7 +339,7 @@ describe('RequestQueue remote', () => {const queue = new RequestQueue({ id: 'some-id', client: storageClient });// Query queue head with request A- const listHeadMock = jest.spyOn(queue.client, 'listHead');+ const listHeadMock = vitest.spyOn(queue.client, 'listHead');listHeadMock.mockResolvedValueOnce({items: [{ id: 'a', uniqueKey: 'aaa' },@@ -362,7 +352,7 @@ describe('RequestQueue remote', () => {// Add request A and addRequest is not called because was already cached.const requestA = new Request({ url: 'http://example.com/a', uniqueKey: 'aaa' });- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');const queueOperationInfo = await queue.addRequest(requestA);expect(addRequestMock).toBeCalledTimes(0);@@ -376,12 +366,12 @@ describe('RequestQueue remote', () => {test('should handle situation when newly created request is not available yet', async () => {const queue = new RequestQueue({ id: 'some-id', name: 'some-queue', client: storageClient });- const listHeadMock = jest.spyOn(queue.client, 'listHead');+ const listHeadMock = vitest.spyOn(queue.client, 'listHead');const requestA = new Request({ url: 'http://example.com/a' });// Add request A- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({requestId: 'a',wasAlreadyHandled: false,@@ -395,7 +385,7 @@ describe('RequestQueue remote', () => {expect(queue['queueHeadIds'].length()).toBe(1);// Try to get requestA which is not available yet.- const getRequestMock = jest.spyOn(queue.client, 'getRequest');+ const getRequestMock = vitest.spyOn(queue.client, 'getRequest');getRequestMock.mockResolvedValueOnce(undefined);const fetchedRequest = await queue.fetchNextRequest();@@ -432,16 +422,16 @@ describe('RequestQueue remote', () => {const requestA = new Request({ url: 'http://example.com/a' });- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({requestId: 'a',wasAlreadyHandled: true,wasAlreadyPresent: true,});- const getRequestMock = jest.spyOn(queue.client, 'getRequest');+ const getRequestMock = vitest.spyOn(queue.client, 'getRequest');- const listHeadMock = jest.spyOn(queue.client, 'listHead');+ const listHeadMock = vitest.spyOn(queue.client, 'listHead');listHeadMock.mockResolvedValueOnce({items: [],} as never);@@ -459,7 +449,7 @@ describe('RequestQueue remote', () => {test('should accept plain object in addRequest()', async () => {const queue = new RequestQueue({ id: 'some-id', client: storageClient });- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({requestId: 'xxx',wasAlreadyHandled: false,@@ -474,7 +464,7 @@ describe('RequestQueue remote', () => {test('should return correct handledCount', async () => {const queue = new RequestQueue({ id: 'id', client: storageClient });- const getMock = jest.spyOn(queue.client, 'get');+ const getMock = vitest.spyOn(queue.client, 'get');getMock.mockResolvedValueOnce({handledRequestCount: 33,} as never);@@ -488,7 +478,7 @@ describe('RequestQueue remote', () => {const queue = new RequestQueue({ id: 'some-id', name: 'some-name', client: storageClient });// Return head with modifiedAt = now so it will retry the call.- const listHeadMock = jest.spyOn(queue.client, 'listHead');+ const listHeadMock = vitest.spyOn(queue.client, 'listHead');listHeadMock.mockResolvedValueOnce({limit: 5,queueModifiedAt: new Date(Date.now() - API_PROCESSED_REQUESTS_DELAY_MILLIS * 0.75),@@ -521,7 +511,7 @@ describe('RequestQueue remote', () => {const requestAWithId = { ...requestA, id: 'a' } as Request;const requestB = new Request({ url: 'http://example.com/b' });const requestBWithId = { ...requestB, id: 'b' } as Request;- const addRequestMock = jest.spyOn(queue.client, 'addRequest');+ const addRequestMock = vitest.spyOn(queue.client, 'addRequest');addRequestMock.mockResolvedValueOnce({ requestId: 'a', wasAlreadyHandled: false, wasAlreadyPresent: false });addRequestMock.mockResolvedValueOnce({ requestId: 'b', wasAlreadyHandled: false, wasAlreadyPresent: false });@@ -537,14 +527,14 @@ describe('RequestQueue remote', () => {expect(addRequestMock).toHaveBeenNthCalledWith(2, requestB, { forefront: true });// It won't query the head as there is something in progress or pending.- const listHeadMock = jest.spyOn(queue.client, 'listHead');+ const listHeadMock = vitest.spyOn(queue.client, 'listHead');const isFinished = await queue.isFinished();expect(isFinished).toBe(false);expect(listHeadMock).not.toBeCalled();// Fetch them from queue.- const getRequestMock = jest.spyOn(queue.client, 'getRequest');+ const getRequestMock = vitest.spyOn(queue.client, 'getRequest');getRequestMock.mockResolvedValueOnce({ ...requestB, id: 'b' });getRequestMock.mockResolvedValueOnce({ ...requestA, id: 'a' });@@ -567,7 +557,7 @@ describe('RequestQueue remote', () => {expect(listHeadMock).not.toBeCalled();// Reclaim one and mark another one handled.- const updateRequestMock = jest.spyOn(queue.client, 'updateRequest');+ const updateRequestMock = vitest.spyOn(queue.client, 'updateRequest');updateRequestMock.mockResolvedValueOnce({ requestId: 'b', wasAlreadyHandled: false, wasAlreadyPresent: true });await queue.markRequestHandled(requestBWithId);@@ -657,7 +647,7 @@ describe('RequestQueue remote', () => {hadMultipleClients: false,};- const getMock = jest+ const getMock = vitest.spyOn(queue.client, 'get').mockResolvedValueOnce(expected);@@ -669,7 +659,7 @@ describe('RequestQueue remote', () => {test('drop() works', async () => {const queue = new RequestQueue({ id: 'some-id', name: 'some-name', client: storageClient });- const deleteMock = jest+ const deleteMock = vitest.spyOn(queue.client, 'delete').mockResolvedValueOnce(undefined);@@ -719,7 +709,7 @@ describe('RequestQueue with requestsFromUrl', () => {beforeEach(async () => {await emulator.init();- jest.restoreAllMocks();+ vitest.restoreAllMocks();});afterAll(async () => {@@ -727,7 +717,7 @@ describe('RequestQueue with requestsFromUrl', () => {});test('should correctly load list from hosted files in correct order', async () => {- const spy = jest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');const list1 = ['https://example.com','https://google.com',@@ -755,7 +745,6 @@ describe('RequestQueue with requestsFromUrl', () => {expect(spy).toBeCalledTimes(2);expect(spy).toBeCalledWith({ url: 'http://example.com/list-1', urlRegExp: undefined });expect(spy).toBeCalledWith({ url: 'http://example.com/list-2', urlRegExp: undefined });- spy.mockRestore();});test('should use regex parameter to parse urls', async () => {@@ -776,7 +765,6 @@ describe('RequestQueue with requestsFromUrl', () => {await queue.drop();expect(gotScrapingSpy).toBeCalledWith({ url: 'http://example.com/list-1', encoding: 'utf8' });- gotScrapingSpy.mockRestore();});test('should fix gdoc sharing url in `requestsFromUrl` automatically (GH issue #639)', async () => {@@ -805,12 +793,11 @@ describe('RequestQueue with requestsFromUrl', () => {expect(await queue.fetchNextRequest()).toMatchObject({ method: 'GET', url: list[2] });expect(gotScrapingSpy).toBeCalledWith({ url: correctUrl, encoding: 'utf8' });- gotScrapingSpy.mockRestore();await queue.drop();});test('should handle requestsFromUrl with no URLs', async () => {- const spy = jest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');spy.mockResolvedValueOnce([]);const queue = await RequestQueue.open();@@ -823,7 +810,6 @@ describe('RequestQueue with requestsFromUrl', () => {expect(spy).toBeCalledTimes(1);expect(spy).toBeCalledWith({ url: 'http://example.com/list-1', urlRegExp: undefined });- spy.mockRestore();});test('should use the defined proxy server when using `requestsFromUrl`', async () => {@@ -832,7 +818,7 @@ describe('RequestQueue with requestsFromUrl', () => {'http://another.proxy.url',];- const spy = jest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');+ const spy = vitest.spyOn(RequestQueue.prototype as any, '_downloadListOfUrls');spy.mockResolvedValue([]);const proxyConfiguration = new ProxyConfiguration({@@ -847,8 +833,6 @@ describe('RequestQueue with requestsFromUrl', () => {]);expect(spy).not.toBeCalledWith(expect.not.objectContaining({ proxyUrl: expect.any(String) }));-- spy.mockRestore();});});@@ -890,23 +874,23 @@ describe('RequestQueue v2', () => {});test('lock timers work as expected (timeout unlocks)', async () => {- jest.useFakeTimers();+ vitest.useFakeTimers();const queue = await getEmptyQueue('lock-timers');await queue.addRequests(getUniqueRequests(totalRequestsPerTest));const { items: firstFetch } = await queue.client.listAndLockHead({ limit: totalRequestsPerTest / 2, lockSecs: 60 });- jest.advanceTimersByTime(65000);+ vitest.advanceTimersByTime(65000);const { items: secondFetch } = await queue.client.listAndLockHead({ limit: totalRequestsPerTest / 2, lockSecs: 60 });const histogram = calculateHistogram([...firstFetch, ...secondFetch]);expect(histogram).toEqual(Array(totalRequestsPerTest / 2).fill(2));- jest.useRealTimers();+ vitest.useRealTimers();});test('prolongRequestLock works as expected ', async () => {- jest.useFakeTimers();+ vitest.useFakeTimers();const queue = await getEmptyQueue('prolong-request-lock');await queue.addRequests(getUniqueRequests(1));@@ -914,15 +898,15 @@ describe('RequestQueue v2', () => {await queue.client.prolongRequestLock(firstFetch[0].id, { lockSecs: 60 });expect(firstFetch).toHaveLength(1);- jest.advanceTimersByTime(65000);+ vitest.advanceTimersByTime(65000);const { items: secondFetch } = await queue.client.listAndLockHead({ limit: 1, lockSecs: 60 });expect(secondFetch).toHaveLength(0);- jest.advanceTimersByTime(65000);+ vitest.advanceTimersByTime(65000);const { items: thirdFetch } = await queue.client.listAndLockHead({ limit: 1, lockSecs: 60 });expect(thirdFetch).toHaveLength(1);- jest.useRealTimers();+ vitest.useRealTimers();});test('deleteRequestLock works as expected', async () => {diff --git a/test/core/storages/utils.test.ts b/test/core/storages/utils.test.tsindex 2927922dd..a103098af 100644--- a/test/core/storages/utils.test.ts+++ b/test/core/storages/utils.test.ts@@ -1,6 +1,5 @@-import { useState, KeyValueStore } from '@crawlee/core';+import { useState, KeyValueStore, Configuration } from '@crawlee/core';import type { Dictionary } from '@crawlee/core';-import { Configuration } from 'apify';import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';describe('useState', () => {diff --git a/test/tsconfig.json b/test/tsconfig.jsonindex 78cc0e888..8316ed8f2 100644--- a/test/tsconfig.json+++ b/test/tsconfig.json@@ -8,6 +8,7 @@"sourceMap": true,"noUnusedLocals": false,"noUnusedParameters": false,- "strictNullChecks": false+ "strictNullChecks": false,+ "types": ["vitest/globals"]}}diff --git a/test/utils/extract-urls.test.ts b/test/utils/extract-urls.test.tsindex e42f72af6..3e1aafcb6 100644--- a/test/utils/extract-urls.test.ts+++ b/test/utils/extract-urls.test.ts@@ -10,18 +10,18 @@ import { gotScraping } from 'got-scraping';const baseDataPath = path.join(__dirname, '..', 'shared', 'data');-jest.mock('got-scraping', () => {- const original: typeof import('got-scraping') = jest.requireActual('got-scraping');+vitest.mock('got-scraping', async () => {+ const original: typeof import('got-scraping') = await vitest.importActual('got-scraping');return {...original,- gotScraping: jest.fn(),+ gotScraping: vitest.fn(),};});-const gotScrapingSpy = gotScraping as jest.MockedFunction<typeof gotScraping>;+const gotScrapingSpy = vitest.mocked(gotScraping);afterAll(() => {- jest.unmock('got-scraping');+ vitest.doUnmock('got-scraping');});describe('downloadListOfUrls()', () => {diff --git a/test/utils/general.test.ts b/test/utils/general.test.tsindex 39b6b4f87..1cf3f81ea 100644--- a/test/utils/general.test.ts+++ b/test/utils/general.test.ts@@ -5,47 +5,39 @@ import { isDocker, weightedAvg, sleep, snakeCaseToCamelCase } from '@crawlee/utidescribe('isDocker()', () => {test('works for dockerenv && cgroup', async () => {- const statMock = jest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.resolve(null));- const readMock = jest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... docker ... something'));+ const statMock = vitest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.resolve(null));+ const readMock = vitest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... docker ... something'));const is = await isDocker(true);expect(is).toBe(true);- statMock.mockRestore();- readMock.mockRestore();});test('works for dockerenv', async () => {- const statMock = jest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.resolve(null));- const readMock = jest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... ... something'));+ const statMock = vitest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.resolve(null));+ const readMock = vitest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... ... something'));const is = await isDocker(true);expect(is).toBe(true);- statMock.mockRestore();- readMock.mockRestore();});test('works for cgroup', async () => {- const statMock = jest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.reject(new Error('no.')));- const readMock = jest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... docker ... something'));+ const statMock = vitest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.reject(new Error('no.')));+ const readMock = vitest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... docker ... something'));const is = await isDocker(true);expect(is).toBe(true);- statMock.mockRestore();- readMock.mockRestore();});test('works for nothing', async () => {- const statMock = jest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.reject(new Error('no.')));- const readMock = jest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... ... something'));+ const statMock = vitest.spyOn(asyncFs, 'stat').mockImplementationOnce(() => Promise.reject(new Error('no.')));+ const readMock = vitest.spyOn(asyncFs, 'readFile').mockImplementationOnce(() => Promise.resolve('something ... ... something'));const is = await isDocker(true);expect(is).toBe(false);- statMock.mockRestore();- readMock.mockRestore();});});diff --git a/test/utils/memory-info.test.ts b/test/utils/memory-info.test.tsindex e129c5773..8708018da 100644--- a/test/utils/memory-info.test.ts+++ b/test/utils/memory-info.test.ts@@ -1,52 +1,43 @@import { readFile, access } from 'node:fs/promises';import { freemem, totalmem } from 'node:os';-import { ENV_VARS } from '@apify/consts';import { launchPuppeteer } from '@crawlee/puppeteer';-import { isDocker, getMemoryInfo } from '@crawlee/utils';+import { getMemoryInfo } from '@crawlee/utils';+import { isDocker } from '@crawlee/utils/src/internals/general';-jest.mock('node:os', () => {- const originalOs = jest.requireActual('node:os');+vitest.mock('node:os', async (importActual) => {+ const originalOs: typeof import('node:os') = await importActual();return {...originalOs,- freemem: jest.fn(),- totalmem: jest.fn(),+ freemem: vitest.fn(),+ totalmem: vitest.fn(),};});-jest.mock('@crawlee/utils/src/internals/general', () => {- const original = jest.requireActual('@crawlee/utils/src/internals/general');+vitest.mock('@crawlee/utils/src/internals/general', async (importActual) => {+ const original: typeof import('@crawlee/utils/src/internals/general') = await importActual();+return {...original,- isDocker: jest.fn(),+ isDocker: vitest.fn(),};});-jest.mock('node:fs/promises', () => {- const originalFs: typeof import('node:fs/promises') = jest.requireActual('node:fs/promises');+vitest.mock('node:fs/promises', async (importActual) => {+ const originalFs: typeof import('node:fs/promises') = await importActual();return {...originalFs,- readFile: jest.fn(originalFs.readFile),- access: jest.fn(originalFs.access),+ readFile: vitest.fn(originalFs.readFile),+ access: vitest.fn(originalFs.access),};});-afterAll(() => {- jest.unmock('node:os');- jest.unmock('node:fs/promises');- jest.unmock('@crawlee/utils/src/internals/general');-});--function castToMock<T extends (...args: any[]) => any>(mock: T): jest.MockedFunction<T> {- return mock as jest.MockedFunction<T>;-}--const isDockerSpy = castToMock(isDocker);-const freememSpy = castToMock(freemem);-const totalmemSpy = castToMock(totalmem);-const accessSpy = castToMock(access);+const isDockerSpy = vitest.mocked(isDocker);+const freememSpy = vitest.mocked(freemem);+const totalmemSpy = vitest.mocked(totalmem);+const accessSpy = vitest.mocked(access);// If you use this spy, make sure to reset it to the original implementation at the end of the test.-const readFileSpy = castToMock(readFile);+const readFileSpy = vitest.mocked(readFile);describe('getMemoryInfo()', () => {test('works WITHOUT child process outside the container', async () => {@@ -56,8 +47,8 @@ describe('getMemoryInfo()', () => {const data = await getMemoryInfo();- expect(freemem).toHaveBeenCalled();- expect(totalmem).toHaveBeenCalled();+ expect(freememSpy).toHaveBeenCalled();+ expect(totalmemSpy).toHaveBeenCalled();expect(data).toMatchObject({totalBytes: 333,@@ -72,7 +63,6 @@ describe('getMemoryInfo()', () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockResolvedValueOnce();- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory/memory.limit_in_bytes') {return Promise.resolve('333');@@ -85,19 +75,15 @@ describe('getMemoryInfo()', () => {throw new Error(`Unexpected path ${path}`);});- try {- const data = await getMemoryInfo();+ const data = await getMemoryInfo();- expect(data).toMatchObject({- totalBytes: 333,- freeBytes: 222,- usedBytes: 111,- });+ expect(data).toMatchObject({+ totalBytes: 333,+ freeBytes: 222,+ usedBytes: 111,+ });- expect(data.mainProcessBytes).toBeGreaterThanOrEqual(20_000_000);- } finally {- readFileSpy.mockImplementation(originalSpyImplementation);- }+ expect(data.mainProcessBytes).toBeGreaterThanOrEqual(20_000_000);});// TODO: check if this comment is still accurate@@ -113,8 +99,8 @@ describe('getMemoryInfo()', () => {browser = await launchPuppeteer();const data = await getMemoryInfo();- expect(freemem).toHaveBeenCalled();- expect(totalmem).toHaveBeenCalled();+ expect(freememSpy).toHaveBeenCalled();+ expect(totalmemSpy).toHaveBeenCalled();expect(data).toMatchObject({totalBytes: 333,freeBytes: 222,@@ -135,7 +121,6 @@ describe('getMemoryInfo()', () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockResolvedValueOnce();- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory/memory.limit_in_bytes') {return Promise.resolve('333');@@ -161,7 +146,6 @@ describe('getMemoryInfo()', () => {expect(data.mainProcessBytes).toBeGreaterThanOrEqual(20_000_000);expect(data.childProcessesBytes).toBeGreaterThanOrEqual(20_000_000);} finally {- readFileSpy.mockImplementation(originalSpyImplementation);delete process.env.CRAWLEE_HEADLESS;await browser?.close();}@@ -171,7 +155,6 @@ describe('getMemoryInfo()', () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockResolvedValueOnce();- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory/memory.limit_in_bytes') {return Promise.resolve('333');@@ -184,23 +167,18 @@ describe('getMemoryInfo()', () => {throw new Error(`Unexpected path ${path}`);});- try {- const data = await getMemoryInfo();- expect(data).toMatchObject({- totalBytes: 333,- freeBytes: 222,- usedBytes: 111,- });- } finally {- readFileSpy.mockImplementation(originalSpyImplementation);- }+ const data = await getMemoryInfo();+ expect(data).toMatchObject({+ totalBytes: 333,+ freeBytes: 222,+ usedBytes: 111,+ });});test('works with cgroup V1 with UNLIMITED memory', async () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockResolvedValueOnce();- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory/memory.limit_in_bytes') {return Promise.resolve('9223372036854771712');@@ -215,23 +193,18 @@ describe('getMemoryInfo()', () => {totalmemSpy.mockReturnValueOnce(333);- try {- const data = await getMemoryInfo();- expect(data).toMatchObject({- totalBytes: 333,- freeBytes: 222,- usedBytes: 111,- });- } finally {- readFileSpy.mockImplementation(originalSpyImplementation);- }+ const data = await getMemoryInfo();+ expect(data).toMatchObject({+ totalBytes: 333,+ freeBytes: 222,+ usedBytes: 111,+ });});test('works with cgroup V2 with LIMITED memory', async () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockRejectedValueOnce(new Error('ENOENT'));- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory.max') {return Promise.resolve('333\n');@@ -244,23 +217,18 @@ describe('getMemoryInfo()', () => {throw new Error(`Unexpected path ${path}`);});- try {- const data = await getMemoryInfo();- expect(data).toMatchObject({- totalBytes: 333,- freeBytes: 222,- usedBytes: 111,- });- } finally {- readFileSpy.mockImplementation(originalSpyImplementation);- }+ const data = await getMemoryInfo();+ expect(data).toMatchObject({+ totalBytes: 333,+ freeBytes: 222,+ usedBytes: 111,+ });});test('works with cgroup V2 with UNLIMITED memory', async () => {isDockerSpy.mockResolvedValueOnce(true);accessSpy.mockRejectedValueOnce(new Error('ENOENT'));- const originalSpyImplementation = readFileSpy.getMockImplementation()!;readFileSpy.mockImplementation((path) => {if (path === '/sys/fs/cgroup/memory.max') {return Promise.resolve('max\n');@@ -275,15 +243,11 @@ describe('getMemoryInfo()', () => {totalmemSpy.mockReturnValueOnce(333);- try {- const data = await getMemoryInfo();- expect(data).toMatchObject({- totalBytes: 333,- freeBytes: 222,- usedBytes: 111,- });- } finally {- readFileSpy.mockImplementation(originalSpyImplementation);- }+ const data = await getMemoryInfo();+ expect(data).toMatchObject({+ totalBytes: 333,+ freeBytes: 222,+ usedBytes: 111,+ });});});diff --git a/tsconfig.eslint.json b/tsconfig.eslint.jsonindex 01f0f9c8f..9e4475fda 100644--- a/tsconfig.eslint.json+++ b/tsconfig.eslint.json@@ -10,6 +10,7 @@"test/**/*.ts","packages/**/test/**/*.js","packages/**/test/**/*.ts",- "docs/**/*.ts"+ "docs/**/*.ts",+ "vitest.config.ts"]}diff --git a/vitest.config.ts b/vitest.config.tsnew file mode 100644index 000000000..048b66616--- /dev/null+++ b/vitest.config.ts@@ -0,0 +1,53 @@+import { cpus } from 'node:os';+import { resolve } from 'node:path';++import isCI from 'is-ci';+import tsconfigPaths from 'vite-tsconfig-paths';+import { defineConfig } from 'vitest/config';++let threads: { minThreads: number; maxThreads: number } | undefined;++if (isCI) {+ // eslint-disable-next-line no-console+ console.log(`Running in CI, throttling threads to 2-${cpus().length}`);+ threads = { minThreads: 2, maxThreads: Math.max(cpus().length, 2) };+}++export default defineConfig({+ plugins: [tsconfigPaths()],+ esbuild: {+ target: 'es2021',+ keepNames: true,+ },+ test: {+ globals: true,+ coverage: {+ provider: 'v8',+ reporter: ['text', 'lcov', 'cobertura'],+ exclude: [+ '**/node_modules/**',+ '**/dist/**',+ '**/test/**',+ ],+ },+ restoreMocks: true,+ ...threads,+ testTimeout: 60_000,+ hookTimeout: 60_000,+ alias: [+ { find: 'crawlee', replacement: resolve(__dirname, './packages/crawlee/src') },+ { find: '@crawlee/basic', replacement: resolve(__dirname, './packages/basic-crawler/src') },+ { find: '@crawlee/browser', replacement: resolve(__dirname, './packages/browser-crawler/src') },+ { find: '@crawlee/http', replacement: resolve(__dirname, './packages/http-crawler/src') },+ { find: '@crawlee/linkedom', replacement: resolve(__dirname, './packages/linkedom-crawler/src') },+ { find: '@crawlee/jsdom', replacement: resolve(__dirname, './packages/jsdom-crawler/src') },+ { find: '@crawlee/cheerio', replacement: resolve(__dirname, './packages/cheerio-crawler/src') },+ { find: '@crawlee/playwright', replacement: resolve(__dirname, './packages/playwright-crawler/src') },+ { find: '@crawlee/puppeteer', replacement: resolve(__dirname, './packages/puppeteer-crawler/src') },+ { find: /^@crawlee\/(.*)\/(.*)$/, replacement: resolve(__dirname, './packages/$1/$2') },+ { find: /^@crawlee\/(.*)$/, replacement: resolve(__dirname, './packages/$1/src') },+ { find: /^test\/(.*)$/, replacement: resolve(__dirname, './test/$1') },+ ],+ retry: 3,+ },+});diff --git a/yarn.lock b/yarn.lockindex 9bab79241..640a1d7e6 100644--- a/yarn.lock+++ b/yarn.lock@@ -12,7 +12,7 @@ __metadata:languageName: nodelinkType: hard-"@ampproject/remapping@npm:^2.2.0":+"@ampproject/remapping@npm:^2.2.1":version: 2.2.1resolution: "@ampproject/remapping@npm:2.2.1"dependencies:@@ -138,7 +138,7 @@ __metadata:languageName: nodelinkType: hard-"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.22.13":+"@babel/code-frame@npm:^7.0.0":version: 7.22.13resolution: "@babel/code-frame@npm:7.22.13"dependencies:@@ -148,143 +148,6 @@ __metadata:languageName: nodelinkType: hard-"@babel/compat-data@npm:^7.22.9":- version: 7.22.20- resolution: "@babel/compat-data@npm:7.22.20"- checksum: efedd1d18878c10fde95e4d82b1236a9aba41395ef798cbb651f58dbf5632dbff475736c507b8d13d4c8f44809d41c0eb2ef0d694283af9ba5dd8339b6dab451- languageName: node- linkType: hard--"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3":- version: 7.23.0- resolution: "@babel/core@npm:7.23.0"- dependencies:- "@ampproject/remapping": ^2.2.0- "@babel/code-frame": ^7.22.13- "@babel/generator": ^7.23.0- "@babel/helper-compilation-targets": ^7.22.15- "@babel/helper-module-transforms": ^7.23.0- "@babel/helpers": ^7.23.0- "@babel/parser": ^7.23.0- "@babel/template": ^7.22.15- "@babel/traverse": ^7.23.0- "@babel/types": ^7.23.0- convert-source-map: ^2.0.0- debug: ^4.1.0- gensync: ^1.0.0-beta.2- json5: ^2.2.3- semver: ^6.3.1- checksum: cebd9b48dbc970a7548522f207f245c69567e5ea17ebb1a4e4de563823cf20a01177fe8d2fe19b6e1461361f92fa169fd0b29f8ee9d44eeec84842be1feee5f2- languageName: node- linkType: hard--"@babel/generator@npm:^7.23.0, @babel/generator@npm:^7.7.2":- version: 7.23.0- resolution: "@babel/generator@npm:7.23.0"- dependencies:- "@babel/types": ^7.23.0- "@jridgewell/gen-mapping": ^0.3.2- "@jridgewell/trace-mapping": ^0.3.17- jsesc: ^2.5.1- checksum: 8efe24adad34300f1f8ea2add420b28171a646edc70f2a1b3e1683842f23b8b7ffa7e35ef0119294e1901f45bfea5b3dc70abe1f10a1917ccdfb41bed69be5f1- languageName: node- linkType: hard--"@babel/helper-compilation-targets@npm:^7.22.15":- version: 7.22.15- resolution: "@babel/helper-compilation-targets@npm:7.22.15"- dependencies:- "@babel/compat-data": ^7.22.9- "@babel/helper-validator-option": ^7.22.15- browserslist: ^4.21.9- lru-cache: ^5.1.1- semver: ^6.3.1- checksum: ce85196769e091ae54dd39e4a80c2a9df1793da8588e335c383d536d54f06baf648d0a08fc873044f226398c4ded15c4ae9120ee18e7dfd7c639a68e3cdc9980- languageName: node- linkType: hard--"@babel/helper-environment-visitor@npm:^7.22.20":- version: 7.22.20- resolution: "@babel/helper-environment-visitor@npm:7.22.20"- checksum: d80ee98ff66f41e233f36ca1921774c37e88a803b2f7dca3db7c057a5fea0473804db9fb6729e5dbfd07f4bed722d60f7852035c2c739382e84c335661590b69- languageName: node- linkType: hard--"@babel/helper-function-name@npm:^7.23.0":- version: 7.23.0- resolution: "@babel/helper-function-name@npm:7.23.0"- dependencies:- "@babel/template": ^7.22.15- "@babel/types": ^7.23.0- checksum: e44542257b2d4634a1f979244eb2a4ad8e6d75eb6761b4cfceb56b562f7db150d134bc538c8e6adca3783e3bc31be949071527aa8e3aab7867d1ad2d84a26e10- languageName: node- linkType: hard--"@babel/helper-hoist-variables@npm:^7.22.5":- version: 7.22.5- resolution: "@babel/helper-hoist-variables@npm:7.22.5"- dependencies:- "@babel/types": ^7.22.5- checksum: 394ca191b4ac908a76e7c50ab52102669efe3a1c277033e49467913c7ed6f7c64d7eacbeabf3bed39ea1f41731e22993f763b1edce0f74ff8563fd1f380d92cc- languageName: node- linkType: hard--"@babel/helper-module-imports@npm:^7.22.15":- version: 7.22.15- resolution: "@babel/helper-module-imports@npm:7.22.15"- dependencies:- "@babel/types": ^7.22.15- checksum: ecd7e457df0a46f889228f943ef9b4a47d485d82e030676767e6a2fdcbdaa63594d8124d4b55fd160b41c201025aec01fc27580352b1c87a37c9c6f33d116702- languageName: node- linkType: hard--"@babel/helper-module-transforms@npm:^7.23.0":- version: 7.23.0- resolution: "@babel/helper-module-transforms@npm:7.23.0"- dependencies:- "@babel/helper-environment-visitor": ^7.22.20- "@babel/helper-module-imports": ^7.22.15- "@babel/helper-simple-access": ^7.22.5- "@babel/helper-split-export-declaration": ^7.22.6- "@babel/helper-validator-identifier": ^7.22.20- peerDependencies:- "@babel/core": ^7.0.0- checksum: 6e2afffb058cf3f8ce92f5116f710dda4341c81cfcd872f9a0197ea594f7ce0ab3cb940b0590af2fe99e60d2e5448bfba6bca8156ed70a2ed4be2adc8586c891- languageName: node- linkType: hard--"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.10.4, @babel/helper-plugin-utils@npm:^7.12.13, @babel/helper-plugin-utils@npm:^7.14.5, @babel/helper-plugin-utils@npm:^7.22.5, @babel/helper-plugin-utils@npm:^7.8.0":- version: 7.22.5- resolution: "@babel/helper-plugin-utils@npm:7.22.5"- checksum: c0fc7227076b6041acd2f0e818145d2e8c41968cc52fb5ca70eed48e21b8fe6dd88a0a91cbddf4951e33647336eb5ae184747ca706817ca3bef5e9e905151ff5- languageName: node- linkType: hard--"@babel/helper-simple-access@npm:^7.22.5":- version: 7.22.5- resolution: "@babel/helper-simple-access@npm:7.22.5"- dependencies:- "@babel/types": ^7.22.5- checksum: fe9686714caf7d70aedb46c3cce090f8b915b206e09225f1e4dbc416786c2fdbbee40b38b23c268b7ccef749dd2db35f255338fb4f2444429874d900dede5ad2- languageName: node- linkType: hard--"@babel/helper-split-export-declaration@npm:^7.22.6":- version: 7.22.6- resolution: "@babel/helper-split-export-declaration@npm:7.22.6"- dependencies:- "@babel/types": ^7.22.5- checksum: e141cace583b19d9195f9c2b8e17a3ae913b7ee9b8120246d0f9ca349ca6f03cb2c001fd5ec57488c544347c0bb584afec66c936511e447fd20a360e591ac921- languageName: node- linkType: hard--"@babel/helper-string-parser@npm:^7.22.5":- version: 7.22.5- resolution: "@babel/helper-string-parser@npm:7.22.5"- checksum: 836851ca5ec813077bbb303acc992d75a360267aa3b5de7134d220411c852a6f17de7c0d0b8c8dcc0f567f67874c00f4528672b2a4f1bc978a3ada64c8c78467- languageName: node- linkType: hard-"@babel/helper-validator-identifier@npm:^7.22.20":version: 7.22.20resolution: "@babel/helper-validator-identifier@npm:7.22.20"@@ -292,24 +155,6 @@ __metadata:languageName: nodelinkType: hard-"@babel/helper-validator-option@npm:^7.22.15":- version: 7.22.15- resolution: "@babel/helper-validator-option@npm:7.22.15"- checksum: 68da52b1e10002a543161494c4bc0f4d0398c8fdf361d5f7f4272e95c45d5b32d974896d44f6a0ea7378c9204988879d73613ca683e13bd1304e46d25ff67a8d- languageName: node- linkType: hard--"@babel/helpers@npm:^7.23.0":- version: 7.23.1- resolution: "@babel/helpers@npm:7.23.1"- dependencies:- "@babel/template": ^7.22.15- "@babel/traverse": ^7.23.0- "@babel/types": ^7.23.0- checksum: acfc345102045c24ea2a4d60e00dcf8220e215af3add4520e2167700661338e6a80bd56baf44bb764af05ec6621101c9afc315dc107e18c61fa6da8acbdbb893- languageName: node- linkType: hard-"@babel/highlight@npm:^7.22.13":version: 7.22.20resolution: "@babel/highlight@npm:7.22.20"@@ -321,169 +166,6 @@ __metadata:languageName: nodelinkType: hard-"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.0":- version: 7.23.0- resolution: "@babel/parser@npm:7.23.0"- bin:- parser: ./bin/babel-parser.js- checksum: 453fdf8b9e2c2b7d7b02139e0ce003d1af21947bbc03eb350fb248ee335c9b85e4ab41697ddbdd97079698de825a265e45a0846bb2ed47a2c7c1df833f42a354- languageName: node- linkType: hard--"@babel/plugin-syntax-async-generators@npm:^7.8.4":- version: 7.8.4- resolution: "@babel/plugin-syntax-async-generators@npm:7.8.4"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 7ed1c1d9b9e5b64ef028ea5e755c0be2d4e5e4e3d6cf7df757b9a8c4cfa4193d268176d0f1f7fbecdda6fe722885c7fda681f480f3741d8a2d26854736f05367- languageName: node- linkType: hard--"@babel/plugin-syntax-bigint@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-bigint@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 3a10849d83e47aec50f367a9e56a6b22d662ddce643334b087f9828f4c3dd73bdc5909aaeabe123fed78515767f9ca43498a0e621c438d1cd2802d7fae3c9648- languageName: node- linkType: hard--"@babel/plugin-syntax-class-properties@npm:^7.8.3":- version: 7.12.13- resolution: "@babel/plugin-syntax-class-properties@npm:7.12.13"- dependencies:- "@babel/helper-plugin-utils": ^7.12.13- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 24f34b196d6342f28d4bad303612d7ff566ab0a013ce89e775d98d6f832969462e7235f3e7eaf17678a533d4be0ba45d3ae34ab4e5a9dcbda5d98d49e5efa2fc- languageName: node- linkType: hard--"@babel/plugin-syntax-import-meta@npm:^7.8.3":- version: 7.10.4- resolution: "@babel/plugin-syntax-import-meta@npm:7.10.4"- dependencies:- "@babel/helper-plugin-utils": ^7.10.4- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 166ac1125d10b9c0c430e4156249a13858c0366d38844883d75d27389621ebe651115cb2ceb6dc011534d5055719fa1727b59f39e1ab3ca97820eef3dcab5b9b- languageName: node- linkType: hard--"@babel/plugin-syntax-json-strings@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-json-strings@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: bf5aea1f3188c9a507e16efe030efb996853ca3cadd6512c51db7233cc58f3ac89ff8c6bdfb01d30843b161cfe7d321e1bf28da82f7ab8d7e6bc5464666f354a- languageName: node- linkType: hard--"@babel/plugin-syntax-jsx@npm:^7.7.2":- version: 7.22.5- resolution: "@babel/plugin-syntax-jsx@npm:7.22.5"- dependencies:- "@babel/helper-plugin-utils": ^7.22.5- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 8829d30c2617ab31393d99cec2978e41f014f4ac6f01a1cecf4c4dd8320c3ec12fdc3ce121126b2d8d32f6887e99ca1a0bad53dedb1e6ad165640b92b24980ce- languageName: node- linkType: hard--"@babel/plugin-syntax-logical-assignment-operators@npm:^7.8.3":- version: 7.10.4- resolution: "@babel/plugin-syntax-logical-assignment-operators@npm:7.10.4"- dependencies:- "@babel/helper-plugin-utils": ^7.10.4- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: aff33577037e34e515911255cdbb1fd39efee33658aa00b8a5fd3a4b903585112d037cce1cc9e4632f0487dc554486106b79ccd5ea63a2e00df4363f6d4ff886- languageName: node- linkType: hard--"@babel/plugin-syntax-nullish-coalescing-operator@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-nullish-coalescing-operator@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 87aca4918916020d1fedba54c0e232de408df2644a425d153be368313fdde40d96088feed6c4e5ab72aac89be5d07fef2ddf329a15109c5eb65df006bf2580d1- languageName: node- linkType: hard--"@babel/plugin-syntax-numeric-separator@npm:^7.8.3":- version: 7.10.4- resolution: "@babel/plugin-syntax-numeric-separator@npm:7.10.4"- dependencies:- "@babel/helper-plugin-utils": ^7.10.4- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 01ec5547bd0497f76cc903ff4d6b02abc8c05f301c88d2622b6d834e33a5651aa7c7a3d80d8d57656a4588f7276eba357f6b7e006482f5b564b7a6488de493a1- languageName: node- linkType: hard--"@babel/plugin-syntax-object-rest-spread@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-object-rest-spread@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: fddcf581a57f77e80eb6b981b10658421bc321ba5f0a5b754118c6a92a5448f12a0c336f77b8abf734841e102e5126d69110a306eadb03ca3e1547cab31f5cbf- languageName: node- linkType: hard--"@babel/plugin-syntax-optional-catch-binding@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-optional-catch-binding@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 910d90e72bc90ea1ce698e89c1027fed8845212d5ab588e35ef91f13b93143845f94e2539d831dc8d8ededc14ec02f04f7bd6a8179edd43a326c784e7ed7f0b9- languageName: node- linkType: hard--"@babel/plugin-syntax-optional-chaining@npm:^7.8.3":- version: 7.8.3- resolution: "@babel/plugin-syntax-optional-chaining@npm:7.8.3"- dependencies:- "@babel/helper-plugin-utils": ^7.8.0- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: eef94d53a1453361553c1f98b68d17782861a04a392840341bc91780838dd4e695209c783631cf0de14c635758beafb6a3a65399846ffa4386bff90639347f30- languageName: node- linkType: hard--"@babel/plugin-syntax-top-level-await@npm:^7.8.3":- version: 7.14.5- resolution: "@babel/plugin-syntax-top-level-await@npm:7.14.5"- dependencies:- "@babel/helper-plugin-utils": ^7.14.5- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: bbd1a56b095be7820029b209677b194db9b1d26691fe999856462e66b25b281f031f3dfd91b1619e9dcf95bebe336211833b854d0fb8780d618e35667c2d0d7e- languageName: node- linkType: hard--"@babel/plugin-syntax-typescript@npm:^7.7.2":- version: 7.22.5- resolution: "@babel/plugin-syntax-typescript@npm:7.22.5"- dependencies:- "@babel/helper-plugin-utils": ^7.22.5- peerDependencies:- "@babel/core": ^7.0.0-0- checksum: 8ab7718fbb026d64da93681a57797d60326097fd7cb930380c8bffd9eb101689e90142c760a14b51e8e69c88a73ba3da956cb4520a3b0c65743aee5c71ef360a- languageName: node- linkType: hard-"@babel/runtime@npm:^7.20.7":version: 7.23.1resolution: "@babel/runtime@npm:7.23.1"@@ -493,46 +175,6 @@ __metadata:languageName: nodelinkType: hard-"@babel/template@npm:^7.22.15, @babel/template@npm:^7.3.3":- version: 7.22.15- resolution: "@babel/template@npm:7.22.15"- dependencies:- "@babel/code-frame": ^7.22.13- "@babel/parser": ^7.22.15- "@babel/types": ^7.22.15- checksum: 1f3e7dcd6c44f5904c184b3f7fe280394b191f2fed819919ffa1e529c259d5b197da8981b6ca491c235aee8dbad4a50b7e31304aa531271cb823a4a24a0dd8fd- languageName: node- linkType: hard--"@babel/traverse@npm:^7.23.0":- version: 7.23.0- resolution: "@babel/traverse@npm:7.23.0"- dependencies:- "@babel/code-frame": ^7.22.13- "@babel/generator": ^7.23.0- "@babel/helper-environment-visitor": ^7.22.20- "@babel/helper-function-name": ^7.23.0- "@babel/helper-hoist-variables": ^7.22.5- "@babel/helper-split-export-declaration": ^7.22.6- "@babel/parser": ^7.23.0- "@babel/types": ^7.23.0- debug: ^4.1.0- globals: ^11.1.0- checksum: 0b17fae53269e1af2cd3edba00892bc2975ad5df9eea7b84815dab07dfec2928c451066d51bc65b4be61d8499e77db7e547ce69ef2a7b0eca3f96269cb43a0b0- languageName: node- linkType: hard--"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.8.3":- version: 7.23.0- resolution: "@babel/types@npm:7.23.0"- dependencies:- "@babel/helper-string-parser": ^7.22.5- "@babel/helper-validator-identifier": ^7.22.20- to-fast-properties: ^2.0.0- checksum: 215fe04bd7feef79eeb4d33374b39909ce9cad1611c4135a4f7fdf41fe3280594105af6d7094354751514625ea92d0875aba355f53e86a92600f290e77b0e604- languageName: node- linkType: hard-"@bcoe/v8-coverage@npm:^0.2.3":version: 0.2.3resolution: "@bcoe/v8-coverage@npm:0.2.3"@@ -989,7 +631,7 @@ __metadata:"@types/fs-extra": ^11.0.0"@types/htmlparser2": ^3.10.3"@types/inquirer": ^8.2.1- "@types/jest": ^29.1.1+ "@types/is-ci": ^3.0.1"@types/lodash.merge": ^4.6.7"@types/mime-types": ^2.1.1"@types/node": ^18.7.13@@ -999,8 +641,10 @@ __metadata:"@types/semver": ^7.3.12"@types/stream-json": ^1.7.2"@types/tough-cookie": ^4.0.2+ "@types/yargs": ^17.0.26"@typescript-eslint/eslint-plugin": 6.7.5"@typescript-eslint/parser": 6.7.5+ "@vitest/coverage-v8": ^0.34.6apify: "*"basic-auth-parser: ^0.0.2body-parser: ^1.20.0@@ -1014,7 +658,7 @@ __metadata:globby: ^13.1.2got: ^13.0.0husky: ^8.0.1- jest: ^29.1.2+ is-ci: ^3.0.1lerna: ^7.0.0lint-staged: ^14.0.0node-gyp: ^9.1.0@@ -1023,10 +667,11 @@ __metadata:proxy: ^1.0.2puppeteer: 21.3.8rimraf: ^5.0.0- ts-jest: ^29.0.3ts-node: ^10.9.1turbo: 1.10.15typescript: ^5.0.0+ vite-tsconfig-paths: ^4.2.1+ vitest: ^0.34.6languageName: unknownlinkType: soft@@ -1073,345 +718,265 @@ __metadata:languageName: nodelinkType: hard-"@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0":- version: 4.4.0- resolution: "@eslint-community/eslint-utils@npm:4.4.0"- dependencies:- eslint-visitor-keys: ^3.3.0- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || >=8.0.0- checksum: cdfe3ae42b4f572cbfb46d20edafe6f36fc5fb52bf2d90875c58aefe226892b9677fef60820e2832caf864a326fe4fc225714c46e8389ccca04d5f9288aabd22+"@esbuild/android-arm64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/android-arm64@npm:0.19.4"+ conditions: os=android & cpu=arm64languageName: nodelinkType: hard-"@eslint-community/regexpp@npm:^4.5.1, @eslint-community/regexpp@npm:^4.6.1":- version: 4.9.1- resolution: "@eslint-community/regexpp@npm:4.9.1"- checksum: 06fb839e9c756f6375cc545c2f2e05a0a64576bd6370e8e3c07983fd29a3d6e164ef4aa48a361f7d27e6713ab79c83053ff6a2ccb78748bc955e344279c4a3b6+"@esbuild/android-arm@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/android-arm@npm:0.19.4"+ conditions: os=android & cpu=armlanguageName: nodelinkType: hard-"@eslint/eslintrc@npm:^2.1.2":- version: 2.1.2- resolution: "@eslint/eslintrc@npm:2.1.2"- dependencies:- ajv: ^6.12.4- debug: ^4.3.2- espree: ^9.6.0- globals: ^13.19.0- ignore: ^5.2.0- import-fresh: ^3.2.1- js-yaml: ^4.1.0- minimatch: ^3.1.2- strip-json-comments: ^3.1.1- checksum: bc742a1e3b361f06fedb4afb6bf32cbd27171292ef7924f61c62f2aed73048367bcc7ac68f98c06d4245cd3fabc43270f844e3c1699936d4734b3ac5398814a7+"@esbuild/android-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/android-x64@npm:0.19.4"+ conditions: os=android & cpu=x64languageName: nodelinkType: hard-"@eslint/js@npm:8.51.0":- version: 8.51.0- resolution: "@eslint/js@npm:8.51.0"- checksum: 0228bf1e1e0414843e56d9ff362a2a72d579c078f93174666f29315690e9e30a8633ad72c923297f7fd7182381b5a476805ff04dac8debe638953eb1ded3ac73+"@esbuild/darwin-arm64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/darwin-arm64@npm:0.19.4"+ conditions: os=darwin & cpu=arm64languageName: nodelinkType: hard-"@humanwhocodes/config-array@npm:^0.11.11":- version: 0.11.11- resolution: "@humanwhocodes/config-array@npm:0.11.11"- dependencies:- "@humanwhocodes/object-schema": ^1.2.1- debug: ^4.1.1- minimatch: ^3.0.5- checksum: db84507375ab77b8ffdd24f498a5b49ad6b64391d30dd2ac56885501d03964d29637e05b1ed5aefa09d57ac667e28028bc22d2da872bfcd619652fbdb5f4ca19+"@esbuild/darwin-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/darwin-x64@npm:0.19.4"+ conditions: os=darwin & cpu=x64languageName: nodelinkType: hard-"@humanwhocodes/module-importer@npm:^1.0.1":- version: 1.0.1- resolution: "@humanwhocodes/module-importer@npm:1.0.1"- checksum: 0fd22007db8034a2cdf2c764b140d37d9020bbfce8a49d3ec5c05290e77d4b0263b1b972b752df8c89e5eaa94073408f2b7d977aed131faf6cf396ebb5d7fb61+"@esbuild/freebsd-arm64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/freebsd-arm64@npm:0.19.4"+ conditions: os=freebsd & cpu=arm64languageName: nodelinkType: hard-"@humanwhocodes/object-schema@npm:^1.2.1":- version: 1.2.1- resolution: "@humanwhocodes/object-schema@npm:1.2.1"- checksum: a824a1ec31591231e4bad5787641f59e9633827d0a2eaae131a288d33c9ef0290bd16fda8da6f7c0fcb014147865d12118df10db57f27f41e20da92369fcb3f1+"@esbuild/freebsd-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/freebsd-x64@npm:0.19.4"+ conditions: os=freebsd & cpu=x64languageName: nodelinkType: hard-"@hutson/parse-repository-url@npm:^3.0.0":- version: 3.0.2- resolution: "@hutson/parse-repository-url@npm:3.0.2"- checksum: 39992c5f183c5ca3d761d6ed9dfabcb79b5f3750bf1b7f3532e1dc439ca370138bbd426ee250fdaba460bc948e6761fbefd484b8f4f36885d71ded96138340d1+"@esbuild/linux-arm64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-arm64@npm:0.19.4"+ conditions: os=linux & cpu=arm64languageName: nodelinkType: hard-"@isaacs/cliui@npm:^8.0.2":- version: 8.0.2- resolution: "@isaacs/cliui@npm:8.0.2"- dependencies:- string-width: ^5.1.2- string-width-cjs: "npm:string-width@^4.2.0"- strip-ansi: ^7.0.1- strip-ansi-cjs: "npm:strip-ansi@^6.0.1"- wrap-ansi: ^8.1.0- wrap-ansi-cjs: "npm:wrap-ansi@^7.0.0"- checksum: 4a473b9b32a7d4d3cfb7a614226e555091ff0c5a29a1734c28c72a182c2f6699b26fc6b5c2131dfd841e86b185aea714c72201d7c98c2fba5f17709333a67aeb+"@esbuild/linux-arm@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-arm@npm:0.19.4"+ conditions: os=linux & cpu=armlanguageName: nodelinkType: hard-"@istanbuljs/load-nyc-config@npm:^1.0.0":- version: 1.1.0- resolution: "@istanbuljs/load-nyc-config@npm:1.1.0"- dependencies:- camelcase: ^5.3.1- find-up: ^4.1.0- get-package-type: ^0.1.0- js-yaml: ^3.13.1- resolve-from: ^5.0.0- checksum: d578da5e2e804d5c93228450a1380e1a3c691de4953acc162f387b717258512a3e07b83510a936d9fab03eac90817473917e24f5d16297af3867f59328d58568+"@esbuild/linux-ia32@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-ia32@npm:0.19.4"+ conditions: os=linux & cpu=ia32languageName: nodelinkType: hard-"@istanbuljs/schema@npm:^0.1.2":- version: 0.1.3- resolution: "@istanbuljs/schema@npm:0.1.3"- checksum: 5282759d961d61350f33d9118d16bcaed914ebf8061a52f4fa474b2cb08720c9c81d165e13b82f2e5a8a212cc5af482f0c6fc1ac27b9e067e5394c9a6ed186c9+"@esbuild/linux-loong64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-loong64@npm:0.19.4"+ conditions: os=linux & cpu=loong64languageName: nodelinkType: hard-"@jest/console@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/console@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- "@types/node": "*"- chalk: ^4.0.0- jest-message-util: ^29.7.0- jest-util: ^29.7.0- slash: ^3.0.0- checksum: 0e3624e32c5a8e7361e889db70b170876401b7d70f509a2538c31d5cd50deb0c1ae4b92dc63fe18a0902e0a48c590c21d53787a0df41a52b34fa7cab96c384d6+"@esbuild/linux-mips64el@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-mips64el@npm:0.19.4"+ conditions: os=linux & cpu=mips64ellanguageName: nodelinkType: hard-"@jest/core@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/core@npm:29.7.0"- dependencies:- "@jest/console": ^29.7.0- "@jest/reporters": ^29.7.0- "@jest/test-result": ^29.7.0- "@jest/transform": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- ansi-escapes: ^4.2.1- chalk: ^4.0.0- ci-info: ^3.2.0- exit: ^0.1.2- graceful-fs: ^4.2.9- jest-changed-files: ^29.7.0- jest-config: ^29.7.0- jest-haste-map: ^29.7.0- jest-message-util: ^29.7.0- jest-regex-util: ^29.6.3- jest-resolve: ^29.7.0- jest-resolve-dependencies: ^29.7.0- jest-runner: ^29.7.0- jest-runtime: ^29.7.0- jest-snapshot: ^29.7.0- jest-util: ^29.7.0- jest-validate: ^29.7.0- jest-watcher: ^29.7.0- micromatch: ^4.0.4- pretty-format: ^29.7.0- slash: ^3.0.0- strip-ansi: ^6.0.0- peerDependencies:- node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0- peerDependenciesMeta:- node-notifier:- optional: true- checksum: af759c9781cfc914553320446ce4e47775ae42779e73621c438feb1e4231a5d4862f84b1d8565926f2d1aab29b3ec3dcfdc84db28608bdf5f29867124ebcfc0d+"@esbuild/linux-ppc64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-ppc64@npm:0.19.4"+ conditions: os=linux & cpu=ppc64languageName: nodelinkType: hard-"@jest/environment@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/environment@npm:29.7.0"- dependencies:- "@jest/fake-timers": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- jest-mock: ^29.7.0- checksum: 6fb398143b2543d4b9b8d1c6dbce83fa5247f84f550330604be744e24c2bd2178bb893657d62d1b97cf2f24baf85c450223f8237cccb71192c36a38ea2272934+"@esbuild/linux-riscv64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-riscv64@npm:0.19.4"+ conditions: os=linux & cpu=riscv64languageName: nodelinkType: hard-"@jest/expect-utils@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/expect-utils@npm:29.7.0"- dependencies:- jest-get-type: ^29.6.3- checksum: 75eb177f3d00b6331bcaa057e07c0ccb0733a1d0a1943e1d8db346779039cb7f103789f16e502f888a3096fb58c2300c38d1f3748b36a7fa762eb6f6d1b160ed+"@esbuild/linux-s390x@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-s390x@npm:0.19.4"+ conditions: os=linux & cpu=s390xlanguageName: nodelinkType: hard-"@jest/expect@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/expect@npm:29.7.0"- dependencies:- expect: ^29.7.0- jest-snapshot: ^29.7.0- checksum: a01cb85fd9401bab3370618f4b9013b90c93536562222d920e702a0b575d239d74cecfe98010aaec7ad464f67cf534a353d92d181646a4b792acaa7e912ae55e+"@esbuild/linux-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/linux-x64@npm:0.19.4"+ conditions: os=linux & cpu=x64languageName: nodelinkType: hard-"@jest/fake-timers@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/fake-timers@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- "@sinonjs/fake-timers": ^10.0.2- "@types/node": "*"- jest-message-util: ^29.7.0- jest-mock: ^29.7.0- jest-util: ^29.7.0- checksum: caf2bbd11f71c9241b458d1b5a66cbe95debc5a15d96442444b5d5c7ba774f523c76627c6931cca5e10e76f0d08761f6f1f01a608898f4751a0eee54fc3d8d00+"@esbuild/netbsd-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/netbsd-x64@npm:0.19.4"+ conditions: os=netbsd & cpu=x64languageName: nodelinkType: hard-"@jest/globals@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/globals@npm:29.7.0"- dependencies:- "@jest/environment": ^29.7.0- "@jest/expect": ^29.7.0- "@jest/types": ^29.6.3- jest-mock: ^29.7.0- checksum: 97dbb9459135693ad3a422e65ca1c250f03d82b2a77f6207e7fa0edd2c9d2015fbe4346f3dc9ebff1678b9d8da74754d4d440b7837497f8927059c0642a22123+"@esbuild/openbsd-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/openbsd-x64@npm:0.19.4"+ conditions: os=openbsd & cpu=x64languageName: nodelinkType: hard-"@jest/reporters@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/reporters@npm:29.7.0"+"@esbuild/sunos-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/sunos-x64@npm:0.19.4"+ conditions: os=sunos & cpu=x64+ languageName: node+ linkType: hard++"@esbuild/win32-arm64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/win32-arm64@npm:0.19.4"+ conditions: os=win32 & cpu=arm64+ languageName: node+ linkType: hard++"@esbuild/win32-ia32@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/win32-ia32@npm:0.19.4"+ conditions: os=win32 & cpu=ia32+ languageName: node+ linkType: hard++"@esbuild/win32-x64@npm:0.19.4":+ version: 0.19.4+ resolution: "@esbuild/win32-x64@npm:0.19.4"+ conditions: os=win32 & cpu=x64+ languageName: node+ linkType: hard++"@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0":+ version: 4.4.0+ resolution: "@eslint-community/eslint-utils@npm:4.4.0"dependencies:- "@bcoe/v8-coverage": ^0.2.3- "@jest/console": ^29.7.0- "@jest/test-result": ^29.7.0- "@jest/transform": ^29.7.0- "@jest/types": ^29.6.3- "@jridgewell/trace-mapping": ^0.3.18- "@types/node": "*"- chalk: ^4.0.0- collect-v8-coverage: ^1.0.0- exit: ^0.1.2- glob: ^7.1.3- graceful-fs: ^4.2.9- istanbul-lib-coverage: ^3.0.0- istanbul-lib-instrument: ^6.0.0- istanbul-lib-report: ^3.0.0- istanbul-lib-source-maps: ^4.0.0- istanbul-reports: ^3.1.3- jest-message-util: ^29.7.0- jest-util: ^29.7.0- jest-worker: ^29.7.0- slash: ^3.0.0- string-length: ^4.0.1- strip-ansi: ^6.0.0- v8-to-istanbul: ^9.0.1+ eslint-visitor-keys: ^3.3.0peerDependencies:- node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0- peerDependenciesMeta:- node-notifier:- optional: true- checksum: 7eadabd62cc344f629024b8a268ecc8367dba756152b761bdcb7b7e570a3864fc51b2a9810cd310d85e0a0173ef002ba4528d5ea0329fbf66ee2a3ada9c40455+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0+ checksum: cdfe3ae42b4f572cbfb46d20edafe6f36fc5fb52bf2d90875c58aefe226892b9677fef60820e2832caf864a326fe4fc225714c46e8389ccca04d5f9288aabd22languageName: nodelinkType: hard-"@jest/schemas@npm:^29.6.3":- version: 29.6.3- resolution: "@jest/schemas@npm:29.6.3"- dependencies:- "@sinclair/typebox": ^0.27.8- checksum: 910040425f0fc93cd13e68c750b7885590b8839066dfa0cd78e7def07bbb708ad869381f725945d66f2284de5663bbecf63e8fdd856e2ae6e261ba30b1687e93+"@eslint-community/regexpp@npm:^4.5.1, @eslint-community/regexpp@npm:^4.6.1":+ version: 4.9.1+ resolution: "@eslint-community/regexpp@npm:4.9.1"+ checksum: 06fb839e9c756f6375cc545c2f2e05a0a64576bd6370e8e3c07983fd29a3d6e164ef4aa48a361f7d27e6713ab79c83053ff6a2ccb78748bc955e344279c4a3b6languageName: nodelinkType: hard-"@jest/source-map@npm:^29.6.3":- version: 29.6.3- resolution: "@jest/source-map@npm:29.6.3"+"@eslint/eslintrc@npm:^2.1.2":+ version: 2.1.2+ resolution: "@eslint/eslintrc@npm:2.1.2"dependencies:- "@jridgewell/trace-mapping": ^0.3.18- callsites: ^3.0.0- graceful-fs: ^4.2.9- checksum: bcc5a8697d471396c0003b0bfa09722c3cd879ad697eb9c431e6164e2ea7008238a01a07193dfe3cbb48b1d258eb7251f6efcea36f64e1ebc464ea3c03ae2deb+ ajv: ^6.12.4+ debug: ^4.3.2+ espree: ^9.6.0+ globals: ^13.19.0+ ignore: ^5.2.0+ import-fresh: ^3.2.1+ js-yaml: ^4.1.0+ minimatch: ^3.1.2+ strip-json-comments: ^3.1.1+ checksum: bc742a1e3b361f06fedb4afb6bf32cbd27171292ef7924f61c62f2aed73048367bcc7ac68f98c06d4245cd3fabc43270f844e3c1699936d4734b3ac5398814a7languageName: nodelinkType: hard-"@jest/test-result@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/test-result@npm:29.7.0"+"@eslint/js@npm:8.51.0":+ version: 8.51.0+ resolution: "@eslint/js@npm:8.51.0"+ checksum: 0228bf1e1e0414843e56d9ff362a2a72d579c078f93174666f29315690e9e30a8633ad72c923297f7fd7182381b5a476805ff04dac8debe638953eb1ded3ac73+ languageName: node+ linkType: hard++"@humanwhocodes/config-array@npm:^0.11.11":+ version: 0.11.11+ resolution: "@humanwhocodes/config-array@npm:0.11.11"dependencies:- "@jest/console": ^29.7.0- "@jest/types": ^29.6.3- "@types/istanbul-lib-coverage": ^2.0.0- collect-v8-coverage: ^1.0.0- checksum: 67b6317d526e335212e5da0e768e3b8ab8a53df110361b80761353ad23b6aea4432b7c5665bdeb87658ea373b90fb1afe02ed3611ef6c858c7fba377505057fa+ "@humanwhocodes/object-schema": ^1.2.1+ debug: ^4.1.1+ minimatch: ^3.0.5+ checksum: db84507375ab77b8ffdd24f498a5b49ad6b64391d30dd2ac56885501d03964d29637e05b1ed5aefa09d57ac667e28028bc22d2da872bfcd619652fbdb5f4ca19+ languageName: node+ linkType: hard++"@humanwhocodes/module-importer@npm:^1.0.1":+ version: 1.0.1+ resolution: "@humanwhocodes/module-importer@npm:1.0.1"+ checksum: 0fd22007db8034a2cdf2c764b140d37d9020bbfce8a49d3ec5c05290e77d4b0263b1b972b752df8c89e5eaa94073408f2b7d977aed131faf6cf396ebb5d7fb61+ languageName: node+ linkType: hard++"@humanwhocodes/object-schema@npm:^1.2.1":+ version: 1.2.1+ resolution: "@humanwhocodes/object-schema@npm:1.2.1"+ checksum: a824a1ec31591231e4bad5787641f59e9633827d0a2eaae131a288d33c9ef0290bd16fda8da6f7c0fcb014147865d12118df10db57f27f41e20da92369fcb3f1+ languageName: node+ linkType: hard++"@hutson/parse-repository-url@npm:^3.0.0":+ version: 3.0.2+ resolution: "@hutson/parse-repository-url@npm:3.0.2"+ checksum: 39992c5f183c5ca3d761d6ed9dfabcb79b5f3750bf1b7f3532e1dc439ca370138bbd426ee250fdaba460bc948e6761fbefd484b8f4f36885d71ded96138340d1languageName: nodelinkType: hard-"@jest/test-sequencer@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/test-sequencer@npm:29.7.0"+"@isaacs/cliui@npm:^8.0.2":+ version: 8.0.2+ resolution: "@isaacs/cliui@npm:8.0.2"dependencies:- "@jest/test-result": ^29.7.0- graceful-fs: ^4.2.9- jest-haste-map: ^29.7.0- slash: ^3.0.0- checksum: 73f43599017946be85c0b6357993b038f875b796e2f0950487a82f4ebcb115fa12131932dd9904026b4ad8be131fe6e28bd8d0aa93b1563705185f9804bff8bd+ string-width: ^5.1.2+ string-width-cjs: "npm:string-width@^4.2.0"+ strip-ansi: ^7.0.1+ strip-ansi-cjs: "npm:strip-ansi@^6.0.1"+ wrap-ansi: ^8.1.0+ wrap-ansi-cjs: "npm:wrap-ansi@^7.0.0"+ checksum: 4a473b9b32a7d4d3cfb7a614226e555091ff0c5a29a1734c28c72a182c2f6699b26fc6b5c2131dfd841e86b185aea714c72201d7c98c2fba5f17709333a67aeblanguageName: nodelinkType: hard-"@jest/transform@npm:^29.7.0":- version: 29.7.0- resolution: "@jest/transform@npm:29.7.0"- dependencies:- "@babel/core": ^7.11.6- "@jest/types": ^29.6.3- "@jridgewell/trace-mapping": ^0.3.18- babel-plugin-istanbul: ^6.1.1- chalk: ^4.0.0- convert-source-map: ^2.0.0- fast-json-stable-stringify: ^2.1.0- graceful-fs: ^4.2.9- jest-haste-map: ^29.7.0- jest-regex-util: ^29.6.3- jest-util: ^29.7.0- micromatch: ^4.0.4- pirates: ^4.0.4- slash: ^3.0.0- write-file-atomic: ^4.0.2- checksum: 0f8ac9f413903b3cb6d240102db848f2a354f63971ab885833799a9964999dd51c388162106a807f810071f864302cdd8e3f0c241c29ce02d85a36f18f3f40ab+"@istanbuljs/schema@npm:^0.1.2":+ version: 0.1.3+ resolution: "@istanbuljs/schema@npm:0.1.3"+ checksum: 5282759d961d61350f33d9118d16bcaed914ebf8061a52f4fa474b2cb08720c9c81d165e13b82f2e5a8a212cc5af482f0c6fc1ac27b9e067e5394c9a6ed186c9languageName: nodelinkType: hard-"@jest/types@npm:^29.6.3":+"@jest/schemas@npm:^29.6.3":version: 29.6.3- resolution: "@jest/types@npm:29.6.3"+ resolution: "@jest/schemas@npm:29.6.3"dependencies:- "@jest/schemas": ^29.6.3- "@types/istanbul-lib-coverage": ^2.0.0- "@types/istanbul-reports": ^3.0.0- "@types/node": "*"- "@types/yargs": ^17.0.8- chalk: ^4.0.0- checksum: a0bcf15dbb0eca6bdd8ce61a3fb055349d40268622a7670a3b2eb3c3dbafe9eb26af59938366d520b86907b9505b0f9b29b85cec11579a9e580694b87cd90fcc+ "@sinclair/typebox": ^0.27.8+ checksum: 910040425f0fc93cd13e68c750b7885590b8839066dfa0cd78e7def07bbb708ad869381f725945d66f2284de5663bbecf63e8fdd856e2ae6e261ba30b1687e93languageName: nodelinkType: hard-"@jridgewell/gen-mapping@npm:^0.3.0, @jridgewell/gen-mapping@npm:^0.3.2":+"@jridgewell/gen-mapping@npm:^0.3.0":version: 0.3.3resolution: "@jridgewell/gen-mapping@npm:0.3.3"dependencies:@@ -1436,7 +1001,7 @@ __metadata:languageName: nodelinkType: hard-"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14":+"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.4.15":version: 1.4.15resolution: "@jridgewell/sourcemap-codec@npm:1.4.15"checksum: b881c7e503db3fc7f3c1f35a1dd2655a188cc51a3612d76efc8a6eb74728bef5606e6758ee77423e564092b4a518aba569bbb21c9bac5ab7a35b0c6ae7e344c8@@ -1453,7 +1018,7 @@ __metadata:languageName: nodelinkType: hard-"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.18, @jridgewell/trace-mapping@npm:^0.3.9":+"@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.9":version: 0.3.19resolution: "@jridgewell/trace-mapping@npm:0.3.19"dependencies:@@ -2044,24 +1609,6 @@ __metadata:languageName: nodelinkType: hard-"@sinonjs/commons@npm:^3.0.0":- version: 3.0.0- resolution: "@sinonjs/commons@npm:3.0.0"- dependencies:- type-detect: 4.0.8- checksum: b4b5b73d4df4560fb8c0c7b38c7ad4aeabedd362f3373859d804c988c725889cde33550e4bcc7cd316a30f5152a2d1d43db71b6d0c38f5feef71fd8d016763f8- languageName: node- linkType: hard--"@sinonjs/fake-timers@npm:^10.0.2":- version: 10.3.0- resolution: "@sinonjs/fake-timers@npm:10.3.0"- dependencies:- "@sinonjs/commons": ^3.0.0- checksum: 614d30cb4d5201550c940945d44c9e0b6d64a888ff2cd5b357f95ad6721070d6b8839cd10e15b76bf5e14af0bcc1d8f9ec00d49a46318f1f669a4bec1d7f3148- languageName: node- linkType: hard-"@szmarczak/http-timer@npm:4.0.6":version: 4.0.6resolution: "@szmarczak/http-timer@npm:4.0.6"@@ -2139,54 +1686,29 @@ __metadata:languageName: nodelinkType: hard-"@types/babel__core@npm:^7.1.14":- version: 7.20.2- resolution: "@types/babel__core@npm:7.20.2"- dependencies:- "@babel/parser": ^7.20.7- "@babel/types": ^7.20.7- "@types/babel__generator": "*"- "@types/babel__template": "*"- "@types/babel__traverse": "*"- checksum: 564fbaa8ff1305d50807ada0ec227c3e7528bebb2f8fe6b2ed88db0735a31511a74ad18729679c43eeed8025ed29d408f53059289719e95ab1352ed559a100bd- languageName: node- linkType: hard--"@types/babel__generator@npm:*":- version: 7.6.5- resolution: "@types/babel__generator@npm:7.6.5"- dependencies:- "@babel/types": ^7.0.0- checksum: c7459f5025c4c800eaf58f4db3b24e9d736331fe7df40961d9bc49f31b46e2a3be83dc9276e8688f10a5ed752ae153ad5f1bdd45e2245bac95273730b9115ec2- languageName: node- linkType: hard--"@types/babel__template@npm:*":- version: 7.4.2- resolution: "@types/babel__template@npm:7.4.2"+"@types/body-parser@npm:*":+ version: 1.19.3+ resolution: "@types/body-parser@npm:1.19.3"dependencies:- "@babel/parser": ^7.1.0- "@babel/types": ^7.0.0- checksum: 0fe977b45a3269336c77f3ae4641a6c48abf0fa35ab1a23fb571690786af02d6cec08255a43499b0b25c5633800f7ae882ace450cce905e3060fa9e6995047ae+ "@types/connect": "*"+ "@types/node": "*"+ checksum: 932fa71437c275023799123680ef26ffd90efd37f51a1abe405e6ae6e5b4ad9511b7a3a8f5a12877ed1444a02b6286c0a137a98e914b3c61932390c83643cc2clanguageName: nodelinkType: hard-"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6":- version: 7.20.2- resolution: "@types/babel__traverse@npm:7.20.2"+"@types/chai-subset@npm:^1.3.3":+ version: 1.3.3+ resolution: "@types/chai-subset@npm:1.3.3"dependencies:- "@babel/types": ^7.20.7- checksum: 981340286479524436348d32373eaa3bf993c635cbf70307b4b69463eee83406a959ac4844f683911e0db8ab8d9f0025ab630dc7a8c170fee9ee74144c2a528f+ "@types/chai": "*"+ checksum: 4481da7345022995f5a105e6683744f7203d2c3d19cfe88d8e17274d045722948abf55e0adfd97709e0f043dade37a4d4e98cd4c660e2e8a14f23e6ecf79418flanguageName: nodelinkType: hard-"@types/body-parser@npm:*":- version: 1.19.3- resolution: "@types/body-parser@npm:1.19.3"- dependencies:- "@types/connect": "*"- "@types/node": "*"- checksum: 932fa71437c275023799123680ef26ffd90efd37f51a1abe405e6ae6e5b4ad9511b7a3a8f5a12877ed1444a02b6286c0a137a98e914b3c61932390c83643cc2c+"@types/chai@npm:*, @types/chai@npm:^4.3.5":+ version: 4.3.8+ resolution: "@types/chai@npm:4.3.8"+ checksum: 21431e46fa4a5602641726a24c7631bbf7ba8a41b1a290d0c73dcef6b3521c1d973ee605236b83a978cc918e55470fd04a3109d51aa30dcdf93a8b122e6c3e2clanguageName: nodelinkType: hard@@ -2273,15 +1795,6 @@ __metadata:languageName: nodelinkType: hard-"@types/graceful-fs@npm:^4.1.3":- version: 4.1.7- resolution: "@types/graceful-fs@npm:4.1.7"- dependencies:- "@types/node": "*"- checksum: 8b97e208f85c9efd02a6003a582c77646dd87be0af13aec9419a720771560a8a87a979eaca73ae193d7c73127f34d0a958403a9b5d6246e450289fd8c79adf09- languageName: node- linkType: hard-"@types/htmlparser2@npm:^3.10.3":version: 3.10.5resolution: "@types/htmlparser2@npm:3.10.5"@@ -2317,38 +1830,19 @@ __metadata:languageName: nodelinkType: hard-"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1":- version: 2.0.4- resolution: "@types/istanbul-lib-coverage@npm:2.0.4"- checksum: a25d7589ee65c94d31464c16b72a9dc81dfa0bea9d3e105ae03882d616e2a0712a9c101a599ec482d297c3591e16336962878cb3eb1a0a62d5b76d277a890ce7- languageName: node- linkType: hard--"@types/istanbul-lib-report@npm:*":- version: 3.0.1- resolution: "@types/istanbul-lib-report@npm:3.0.1"- dependencies:- "@types/istanbul-lib-coverage": "*"- checksum: cfc66de48577bb7b2636a6afded7056483693c3ea70916276518cdfaa0d4b51bf564ded88fb13e75716665c3af3d4d54e9c2de042c0219dcabad7e81c398688b- languageName: node- linkType: hard--"@types/istanbul-reports@npm:^3.0.0":+"@types/is-ci@npm:^3.0.1":version: 3.0.2- resolution: "@types/istanbul-reports@npm:3.0.2"+ resolution: "@types/is-ci@npm:3.0.2"dependencies:- "@types/istanbul-lib-report": "*"- checksum: f52028d6fe4d28f0085dd7ed66ccfa6af632579e9a4091b90928ffef93d4dbec0bacd49e9caf1b939d05df9eafc5ac1f5939413cdf8ac59fbe4b29602d4d0939+ ci-info: ^3.1.0+ checksum: 38ff40670403ecb90bdfc072aa17d0d8e7461f95613ffe5080b641fed218b93001c53fd8d0283b207d2c6353f08bafda514eaeb9f947759312160a01b95cc597languageName: nodelinkType: hard-"@types/jest@npm:^29.1.1":- version: 29.5.5- resolution: "@types/jest@npm:29.5.5"- dependencies:- expect: ^29.0.0- pretty-format: ^29.0.0- checksum: 56e55cde9949bcc0ee2fa34ce5b7c32c2bfb20e53424aa4ff3a210859eeaaa3fdf6f42f81a3f655238039cdaaaf108b054b7a8602f394e6c52b903659338d8c6+"@types/istanbul-lib-coverage@npm:^2.0.1":+ version: 2.0.4+ resolution: "@types/istanbul-lib-coverage@npm:2.0.4"+ checksum: a25d7589ee65c94d31464c16b72a9dc81dfa0bea9d3e105ae03882d616e2a0712a9c101a599ec482d297c3591e16336962878cb3eb1a0a62d5b76d277a890ce7languageName: nodelinkType: hard@@ -2558,13 +2052,6 @@ __metadata:languageName: nodelinkType: hard-"@types/stack-utils@npm:^2.0.0":- version: 2.0.1- resolution: "@types/stack-utils@npm:2.0.1"- checksum: 205fdbe3326b7046d7eaf5e494d8084f2659086a266f3f9cf00bccc549c8e36e407f88168ad4383c8b07099957ad669f75f2532ed4bc70be2b037330f7bae019- languageName: node- linkType: hard-"@types/stream-chain@npm:*":version: 2.0.2resolution: "@types/stream-chain@npm:2.0.2"@@ -2607,7 +2094,7 @@ __metadata:languageName: nodelinkType: hard-"@types/yargs@npm:^17.0.8":+"@types/yargs@npm:^17.0.26":version: 17.0.28resolution: "@types/yargs@npm:17.0.28"dependencies:@@ -2747,6 +2234,80 @@ __metadata:languageName: nodelinkType: hard+"@vitest/coverage-v8@npm:^0.34.6":+ version: 0.34.6+ resolution: "@vitest/coverage-v8@npm:0.34.6"+ dependencies:+ "@ampproject/remapping": ^2.2.1+ "@bcoe/v8-coverage": ^0.2.3+ istanbul-lib-coverage: ^3.2.0+ istanbul-lib-report: ^3.0.1+ istanbul-lib-source-maps: ^4.0.1+ istanbul-reports: ^3.1.5+ magic-string: ^0.30.1+ picocolors: ^1.0.0+ std-env: ^3.3.3+ test-exclude: ^6.0.0+ v8-to-istanbul: ^9.1.0+ peerDependencies:+ vitest: ">=0.32.0 <1"+ checksum: d5fe7685151bdf500278a42cde3a12afdea77b2de0d7eb069fe89e7a6010efbb9bc7cb86a2b27f00f6689d526abdc99b3fa9d97ac2bb3a0f78cd86d6d954910e+ languageName: node+ linkType: hard++"@vitest/expect@npm:0.34.6":+ version: 0.34.6+ resolution: "@vitest/expect@npm:0.34.6"+ dependencies:+ "@vitest/spy": 0.34.6+ "@vitest/utils": 0.34.6+ chai: ^4.3.10+ checksum: 37a526f4af7e73fc56b71ba1139d6d93ff1972315d0e0691de967179298d2ad086e8803d2b28defe0e97a1326d808cd886e4b802d1691d8894cb234e35ed5185+ languageName: node+ linkType: hard++"@vitest/runner@npm:0.34.6":+ version: 0.34.6+ resolution: "@vitest/runner@npm:0.34.6"+ dependencies:+ "@vitest/utils": 0.34.6+ p-limit: ^4.0.0+ pathe: ^1.1.1+ checksum: 0357f0a11f4e1e170099f9125e379bbe8049a59faa7b34b919b3e5ee8927f30824c2b3ebb814b6a77c75ec35a30bf9adb8ec2b5e051525b4edd0d17be15725cc+ languageName: node+ linkType: hard++"@vitest/snapshot@npm:0.34.6":+ version: 0.34.6+ resolution: "@vitest/snapshot@npm:0.34.6"+ dependencies:+ magic-string: ^0.30.1+ pathe: ^1.1.1+ pretty-format: ^29.5.0+ checksum: c2f164b23741cdf10f449575a0f9996cf385675d0f76d2eb696f53b614743811f2fbefdc5eb0fd3f9544ccfbb566d57a5c50a70595167458579d56429b09151f+ languageName: node+ linkType: hard++"@vitest/spy@npm:0.34.6":+ version: 0.34.6+ resolution: "@vitest/spy@npm:0.34.6"+ dependencies:+ tinyspy: ^2.1.1+ checksum: b05e5906f2f489a3234a0380a21cb48635915aa7f28eac92a595e78e9ceefb95340311635e39684b32fff20f9c58fdc33488eeddee39a660cd94c9c6bc2febf7+ languageName: node+ linkType: hard++"@vitest/utils@npm:0.34.6":+ version: 0.34.6+ resolution: "@vitest/utils@npm:0.34.6"+ dependencies:+ diff-sequences: ^29.4.3+ loupe: ^2.3.6+ pretty-format: ^29.5.0+ checksum: acf716af2bab66037e49bd6d3e8bae40b605b9bff515d4926c46d6f8cc2366decfac5a1756ea55029968e71fba1da1f992764c3a57c9b46eccce3f6db7197bd6+ languageName: node+ linkType: hard+"@vladfrangu/async_event_emitter@npm:^2.2.2":version: 2.2.2resolution: "@vladfrangu/async_event_emitter@npm:2.2.2"@@ -2827,14 +2388,14 @@ __metadata:languageName: nodelinkType: hard-"acorn-walk@npm:^8.1.1":+"acorn-walk@npm:^8.1.1, acorn-walk@npm:^8.2.0":version: 8.2.0resolution: "acorn-walk@npm:8.2.0"checksum: 1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1languageName: nodelinkType: hard-"acorn@npm:^8.4.1, acorn@npm:^8.9.0":+"acorn@npm:^8.10.0, acorn@npm:^8.4.1, acorn@npm:^8.9.0":version: 8.10.0resolution: "acorn@npm:8.10.0"bin:@@ -3003,16 +2564,6 @@ __metadata:languageName: nodelinkType: hard-"anymatch@npm:^3.0.3":- version: 3.1.3- resolution: "anymatch@npm:3.1.3"- dependencies:- normalize-path: ^3.0.0- picomatch: ^2.0.4- checksum: 3e044fd6d1d26545f235a9fe4d7a534e2029d8e59fa7fd9f2a6eb21230f6b5380ea1eaf55136e60cbf8e613544b3b766e7a6fa2102e2a3a117505466e3025dc2- languageName: node- linkType: hard-"apify-client@npm:^2.8.0":version: 2.8.0resolution: "apify-client@npm:2.8.0"@@ -3253,6 +2804,13 @@ __metadata:languageName: nodelinkType: hard+"assertion-error@npm:^1.1.0":+ version: 1.1.0+ resolution: "assertion-error@npm:1.1.0"+ checksum: fd9429d3a3d4fd61782eb3962ae76b6d08aa7383123fca0596020013b3ebd6647891a85b05ce821c47d1471ed1271f00b0545cf6a4326cf2fc91efcc3b0fbecf+ languageName: node+ linkType: hard+"ast-types-flow@npm:^0.0.7":version: 0.0.7resolution: "ast-types-flow@npm:0.0.7"@@ -3351,82 +2909,6 @@ __metadata:languageName: nodelinkType: hard-"babel-jest@npm:^29.7.0":- version: 29.7.0- resolution: "babel-jest@npm:29.7.0"- dependencies:- "@jest/transform": ^29.7.0- "@types/babel__core": ^7.1.14- babel-plugin-istanbul: ^6.1.1- babel-preset-jest: ^29.6.3- chalk: ^4.0.0- graceful-fs: ^4.2.9- slash: ^3.0.0- peerDependencies:- "@babel/core": ^7.8.0- checksum: ee6f8e0495afee07cac5e4ee167be705c711a8cc8a737e05a587a131fdae2b3c8f9aa55dfd4d9c03009ac2d27f2de63d8ba96d3e8460da4d00e8af19ef9a83f7- languageName: node- linkType: hard--"babel-plugin-istanbul@npm:^6.1.1":- version: 6.1.1- resolution: "babel-plugin-istanbul@npm:6.1.1"- dependencies:- "@babel/helper-plugin-utils": ^7.0.0- "@istanbuljs/load-nyc-config": ^1.0.0- "@istanbuljs/schema": ^0.1.2- istanbul-lib-instrument: ^5.0.4- test-exclude: ^6.0.0- checksum: cb4fd95738219f232f0aece1116628cccff16db891713c4ccb501cddbbf9272951a5df81f2f2658dfdf4b3e7b236a9d5cbcf04d5d8c07dd5077297339598061a- languageName: node- linkType: hard--"babel-plugin-jest-hoist@npm:^29.6.3":- version: 29.6.3- resolution: "babel-plugin-jest-hoist@npm:29.6.3"- dependencies:- "@babel/template": ^7.3.3- "@babel/types": ^7.3.3- "@types/babel__core": ^7.1.14- "@types/babel__traverse": ^7.0.6- checksum: 51250f22815a7318f17214a9d44650ba89551e6d4f47a2dc259128428324b52f5a73979d010cefd921fd5a720d8c1d55ad74ff601cd94c7bd44d5f6292fde2d1- languageName: node- linkType: hard--"babel-preset-current-node-syntax@npm:^1.0.0":- version: 1.0.1- resolution: "babel-preset-current-node-syntax@npm:1.0.1"- dependencies:- "@babel/plugin-syntax-async-generators": ^7.8.4- "@babel/plugin-syntax-bigint": ^7.8.3- "@babel/plugin-syntax-class-properties": ^7.8.3- "@babel/plugin-syntax-import-meta": ^7.8.3- "@babel/plugin-syntax-json-strings": ^7.8.3- "@babel/plugin-syntax-logical-assignment-operators": ^7.8.3- "@babel/plugin-syntax-nullish-coalescing-operator": ^7.8.3- "@babel/plugin-syntax-numeric-separator": ^7.8.3- "@babel/plugin-syntax-object-rest-spread": ^7.8.3- "@babel/plugin-syntax-optional-catch-binding": ^7.8.3- "@babel/plugin-syntax-optional-chaining": ^7.8.3- "@babel/plugin-syntax-top-level-await": ^7.8.3- peerDependencies:- "@babel/core": ^7.0.0- checksum: d118c2742498c5492c095bc8541f4076b253e705b5f1ad9a2e7d302d81a84866f0070346662355c8e25fc02caa28dc2da8d69bcd67794a0d60c4d6fab6913cc8- languageName: node- linkType: hard--"babel-preset-jest@npm:^29.6.3":- version: 29.6.3- resolution: "babel-preset-jest@npm:29.6.3"- dependencies:- babel-plugin-jest-hoist: ^29.6.3- babel-preset-current-node-syntax: ^1.0.0- peerDependencies:- "@babel/core": ^7.0.0- checksum: aa4ff2a8a728d9d698ed521e3461a109a1e66202b13d3494e41eea30729a5e7cc03b3a2d56c594423a135429c37bf63a9fa8b0b9ce275298be3095a88c69f6fb- languageName: node- linkType: hard-"balanced-match@npm:^1.0.0":version: 1.0.2resolution: "balanced-match@npm:1.0.2"@@ -3555,7 +3037,7 @@ __metadata:languageName: nodelinkType: hard-"browserslist@npm:^4.21.1, browserslist@npm:^4.21.9":+"browserslist@npm:^4.21.1":version: 4.22.1resolution: "browserslist@npm:4.22.1"dependencies:@@ -3569,24 +3051,6 @@ __metadata:languageName: nodelinkType: hard-"bs-logger@npm:0.x":- version: 0.2.6- resolution: "bs-logger@npm:0.2.6"- dependencies:- fast-json-stable-stringify: 2.x- checksum: d34bdaf68c64bd099ab97c3ea608c9ae7d3f5faa1178b3f3f345acd94e852e608b2d4f9103fb2e503f5e69780e98293df41691b84be909b41cf5045374d54606- languageName: node- linkType: hard--"bser@npm:2.1.1":- version: 2.1.1- resolution: "bser@npm:2.1.1"- dependencies:- node-int64: ^0.4.0- checksum: 9ba4dc58ce86300c862bffc3ae91f00b2a03b01ee07f3564beeeaf82aa243b8b03ba53f123b0b842c190d4399b94697970c8e7cf7b1ea44b61aa28c3526a4449- languageName: node- linkType: hard-"buffer-crc32@npm:~0.2.3":version: 0.2.13resolution: "buffer-crc32@npm:0.2.13"@@ -3641,6 +3105,13 @@ __metadata:languageName: nodelinkType: hard+"cac@npm:^6.7.14":+ version: 6.7.14+ resolution: "cac@npm:6.7.14"+ checksum: 45a2496a9443abbe7f52a49b22fbe51b1905eff46e03fd5e6c98e3f85077be3f8949685a1849b1a9cd2bc3e5567dfebcf64f01ce01847baf918f1b37c839791a+ languageName: node+ linkType: hard+"cacache@npm:^17.0.0":version: 17.1.4resolution: "cacache@npm:17.1.4"@@ -3747,13 +3218,6 @@ __metadata:languageName: nodelinkType: hard-"camelcase@npm:^6.2.0":- version: 6.3.0- resolution: "camelcase@npm:6.3.0"- checksum: 8c96818a9076434998511251dcb2761a94817ea17dbdc37f47ac080bd088fc62c7369429a19e2178b993497132c8cbcf5cc1f44ba963e76782ba469c0474938d- languageName: node- linkType: hard-"caniuse-lite@npm:^1.0.30001541":version: 1.0.30001547resolution: "caniuse-lite@npm:1.0.30001547"@@ -3761,6 +3225,21 @@ __metadata:languageName: nodelinkType: hard+"chai@npm:^4.3.10":+ version: 4.3.10+ resolution: "chai@npm:4.3.10"+ dependencies:+ assertion-error: ^1.1.0+ check-error: ^1.0.3+ deep-eql: ^4.1.3+ get-func-name: ^2.0.2+ loupe: ^2.3.6+ pathval: ^1.1.1+ type-detect: ^4.0.8+ checksum: 536668c60a0d985a0fbd94418028e388d243a925d7c5e858c7443e334753511614a3b6a124bac9ca077dfc4c37acc367d62f8c294960f440749536dc181dfc6d+ languageName: node+ linkType: hard+"chalk@npm:2.4.2, chalk@npm:^2.4.2":version: 2.4.2resolution: "chalk@npm:2.4.2"@@ -3812,13 +3291,6 @@ __metadata:languageName: nodelinkType: hard-"char-regex@npm:^1.0.2":- version: 1.0.2- resolution: "char-regex@npm:1.0.2"- checksum: b563e4b6039b15213114626621e7a3d12f31008bdce20f9c741d69987f62aeaace7ec30f6018890ad77b2e9b4d95324c9f5acfca58a9441e3b1dcdd1e2525d17- languageName: node- linkType: hard-"chardet@npm:^0.7.0":version: 0.7.0resolution: "chardet@npm:0.7.0"@@ -3826,6 +3298,15 @@ __metadata:languageName: nodelinkType: hard+"check-error@npm:^1.0.3":+ version: 1.0.3+ resolution: "check-error@npm:1.0.3"+ dependencies:+ get-func-name: ^2.0.2+ checksum: e2131025cf059b21080f4813e55b3c480419256914601750b0fee3bd9b2b8315b531e551ef12560419b8b6d92a3636511322752b1ce905703239e7cc451b6399+ languageName: node+ linkType: hard+"cheerio-select@npm:^2.1.0":version: 2.1.0resolution: "cheerio-select@npm:2.1.0"@@ -3874,20 +3355,13 @@ __metadata:languageName: nodelinkType: hard-"ci-info@npm:^3.2.0, ci-info@npm:^3.6.1":+"ci-info@npm:^3.1.0, ci-info@npm:^3.2.0, ci-info@npm:^3.6.1":version: 3.9.0resolution: "ci-info@npm:3.9.0"checksum: 6b19dc9b2966d1f8c2041a838217299718f15d6c4b63ae36e4674edd2bee48f780e94761286a56aa59eb305a85fbea4ddffb7630ec063e7ec7e7e5ad42549a87languageName: nodelinkType: hard-"cjs-module-lexer@npm:^1.0.0":- version: 1.2.3- resolution: "cjs-module-lexer@npm:1.2.3"- checksum: 5ea3cb867a9bb609b6d476cd86590d105f3cfd6514db38ff71f63992ab40939c2feb68967faa15a6d2b1f90daa6416b79ea2de486e9e2485a6f8b66a21b4fb0a- languageName: node- linkType: hard-"clean-stack@npm:^2.0.0":version: 2.2.0resolution: "clean-stack@npm:2.2.0"@@ -4007,20 +3481,6 @@ __metadata:languageName: nodelinkType: hard-"co@npm:^4.6.0":- version: 4.6.0- resolution: "co@npm:4.6.0"- checksum: 5210d9223010eb95b29df06a91116f2cf7c8e0748a9013ed853b53f362ea0e822f1e5bb054fb3cefc645239a4cf966af1f6133a3b43f40d591f3b68ed6cf0510- languageName: node- linkType: hard--"collect-v8-coverage@npm:^1.0.0":- version: 1.0.2- resolution: "collect-v8-coverage@npm:1.0.2"- checksum: c10f41c39ab84629d16f9f6137bc8a63d332244383fc368caf2d2052b5e04c20cd1fd70f66fcf4e2422b84c8226598b776d39d5f2d2a51867cc1ed5d1982b4da- languageName: node- linkType: hard-"color-convert@npm:^1.9.0":version: 1.9.3resolution: "color-convert@npm:1.9.3"@@ -4363,23 +3823,6 @@ __metadata:languageName: unknownlinkType: soft-"create-jest@npm:^29.7.0":- version: 29.7.0- resolution: "create-jest@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- chalk: ^4.0.0- exit: ^0.1.2- graceful-fs: ^4.2.9- jest-config: ^29.7.0- jest-util: ^29.7.0- prompts: ^2.0.1- bin:- create-jest: bin/create-jest.js- checksum: 1427d49458adcd88547ef6fa39041e1fe9033a661293aa8d2c3aa1b4967cb5bf4f0c00436c7a61816558f28ba2ba81a94d5c962e8022ea9a883978fc8e1f2945- languageName: node- linkType: hard-"create-require@npm:^1.1.0":version: 1.1.1resolution: "create-require@npm:1.1.1"@@ -4510,7 +3953,7 @@ __metadata:languageName: nodelinkType: hard-"debug@npm:4, debug@npm:4.3.4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4":+"debug@npm:4, debug@npm:4.3.4, debug@npm:^4.1.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4":version: 4.3.4resolution: "debug@npm:4.3.4"dependencies:@@ -4571,15 +4014,12 @@ __metadata:languageName: nodelinkType: hard-"dedent@npm:^1.0.0":- version: 1.5.1- resolution: "dedent@npm:1.5.1"- peerDependencies:- babel-plugin-macros: ^3.1.0- peerDependenciesMeta:- babel-plugin-macros:- optional: true- checksum: c3c300a14edf1bdf5a873f9e4b22e839d62490bc5c8d6169c1f15858a1a76733d06a9a56930e963d677a2ceeca4b6b0894cc5ea2f501aa382ca5b92af3413c2a+"deep-eql@npm:^4.1.3":+ version: 4.1.3+ resolution: "deep-eql@npm:4.1.3"+ dependencies:+ type-detect: ^4.0.0+ checksum: 7f6d30cb41c713973dc07eaadded848b2ab0b835e518a88b91bea72f34e08c4c71d167a722a6f302d3a6108f05afd8e6d7650689a84d5d29ec7fe6220420397flanguageName: nodelinkType: hard@@ -4616,13 +4056,6 @@ __metadata:languageName: nodelinkType: hard-"deepmerge@npm:^4.2.2":- version: 4.3.1- resolution: "deepmerge@npm:4.3.1"- checksum: 2024c6a980a1b7128084170c4cf56b0fd58a63f2da1660dcfe977415f27b17dbe5888668b59d0b063753f3220719d5e400b7f113609489c90160bb9a5518d052- languageName: node- linkType: hard-"defaults@npm:^1.0.3":version: 1.0.4resolution: "defaults@npm:1.0.4"@@ -4728,13 +4161,6 @@ __metadata:languageName: nodelinkType: hard-"detect-newline@npm:^3.0.0":- version: 3.1.0- resolution: "detect-newline@npm:3.1.0"- checksum: ae6cd429c41ad01b164c59ea36f264a2c479598e61cba7c99da24175a7ab80ddf066420f2bec9a1c57a6bead411b4655ff15ad7d281c000a89791f48cbe939e7- languageName: node- linkType: hard-"devtools-protocol@npm:*":version: 0.0.1207450resolution: "devtools-protocol@npm:0.0.1207450"@@ -4749,7 +4175,7 @@ __metadata:languageName: nodelinkType: hard-"diff-sequences@npm:^29.6.3":+"diff-sequences@npm:^29.4.3, diff-sequences@npm:^29.6.3":version: 29.6.3resolution: "diff-sequences@npm:29.6.3"checksum: f4914158e1f2276343d98ff5b31fc004e7304f5470bf0f1adb2ac6955d85a531a6458d33e87667f98f6ae52ebd3891bb47d420bb48a5bd8b7a27ee25b20e33aa@@ -4924,13 +4350,6 @@ __metadata:languageName: nodelinkType: hard-"emittery@npm:^0.13.1":- version: 0.13.1- resolution: "emittery@npm:0.13.1"- checksum: 2b089ab6306f38feaabf4f6f02792f9ec85fc054fda79f44f6790e61bbf6bc4e1616afb9b232e0c5ec5289a8a452f79bfa6d905a6fd64e94b49981f0934001c6- languageName: node- linkType: hard-"emoji-regex@npm:^8.0.0":version: 8.0.0resolution: "emoji-regex@npm:8.0.0"@@ -5145,6 +4564,83 @@ __metadata:languageName: nodelinkType: hard+"esbuild@npm:^0.19.3":+ version: 0.19.4+ resolution: "esbuild@npm:0.19.4"+ dependencies:+ "@esbuild/android-arm": 0.19.4+ "@esbuild/android-arm64": 0.19.4+ "@esbuild/android-x64": 0.19.4+ "@esbuild/darwin-arm64": 0.19.4+ "@esbuild/darwin-x64": 0.19.4+ "@esbuild/freebsd-arm64": 0.19.4+ "@esbuild/freebsd-x64": 0.19.4+ "@esbuild/linux-arm": 0.19.4+ "@esbuild/linux-arm64": 0.19.4+ "@esbuild/linux-ia32": 0.19.4+ "@esbuild/linux-loong64": 0.19.4+ "@esbuild/linux-mips64el": 0.19.4+ "@esbuild/linux-ppc64": 0.19.4+ "@esbuild/linux-riscv64": 0.19.4+ "@esbuild/linux-s390x": 0.19.4+ "@esbuild/linux-x64": 0.19.4+ "@esbuild/netbsd-x64": 0.19.4+ "@esbuild/openbsd-x64": 0.19.4+ "@esbuild/sunos-x64": 0.19.4+ "@esbuild/win32-arm64": 0.19.4+ "@esbuild/win32-ia32": 0.19.4+ "@esbuild/win32-x64": 0.19.4+ dependenciesMeta:+ "@esbuild/android-arm":+ optional: true+ "@esbuild/android-arm64":+ optional: true+ "@esbuild/android-x64":+ optional: true+ "@esbuild/darwin-arm64":+ optional: true+ "@esbuild/darwin-x64":+ optional: true+ "@esbuild/freebsd-arm64":+ optional: true+ "@esbuild/freebsd-x64":+ optional: true+ "@esbuild/linux-arm":+ optional: true+ "@esbuild/linux-arm64":+ optional: true+ "@esbuild/linux-ia32":+ optional: true+ "@esbuild/linux-loong64":+ optional: true+ "@esbuild/linux-mips64el":+ optional: true+ "@esbuild/linux-ppc64":+ optional: true+ "@esbuild/linux-riscv64":+ optional: true+ "@esbuild/linux-s390x":+ optional: true+ "@esbuild/linux-x64":+ optional: true+ "@esbuild/netbsd-x64":+ optional: true+ "@esbuild/openbsd-x64":+ optional: true+ "@esbuild/sunos-x64":+ optional: true+ "@esbuild/win32-arm64":+ optional: true+ "@esbuild/win32-ia32":+ optional: true+ "@esbuild/win32-x64":+ optional: true+ bin:+ esbuild: bin/esbuild+ checksum: 024309a16365b020815a30e9a3a9354894a391cf1adbfad7f44a975cf161ab5e961619b30e1ec8ea02994631d71e6b38831119be69f8ccb610c32bbe21addc79+ languageName: node+ linkType: hard+"escalade@npm:^3.1.1":version: 3.1.1resolution: "escalade@npm:3.1.1"@@ -5161,15 +4657,8 @@ __metadata:"escape-string-regexp@npm:^1.0.2, escape-string-regexp@npm:^1.0.5":version: 1.0.5- resolution: "escape-string-regexp@npm:1.0.5"- checksum: 6092fda75c63b110c706b6a9bfde8a612ad595b628f0bd2147eea1d3406723020810e591effc7db1da91d80a71a737a313567c5abb3813e8d9c71f4aa595b410- languageName: node- linkType: hard--"escape-string-regexp@npm:^2.0.0":- version: 2.0.0- resolution: "escape-string-regexp@npm:2.0.0"- checksum: 9f8a2d5743677c16e85c810e3024d54f0c8dea6424fad3c79ef6666e81dd0846f7437f5e729dfcdac8981bc9e5294c39b4580814d114076b8d36318f46ae4395+ resolution: "escape-string-regexp@npm:1.0.5"+ checksum: 6092fda75c63b110c706b6a9bfde8a612ad595b628f0bd2147eea1d3406723020810e591effc7db1da91d80a71a737a313567c5abb3813e8d9c71f4aa595b410languageName: nodelinkType: hard@@ -5586,26 +5075,6 @@ __metadata:languageName: nodelinkType: hard-"exit@npm:^0.1.2":- version: 0.1.2- resolution: "exit@npm:0.1.2"- checksum: abc407f07a875c3961e4781dfcb743b58d6c93de9ab263f4f8c9d23bb6da5f9b7764fc773f86b43dd88030444d5ab8abcb611cb680fba8ca075362b77114bba3- languageName: node- linkType: hard--"expect@npm:^29.0.0, expect@npm:^29.7.0":- version: 29.7.0- resolution: "expect@npm: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- checksum: 9257f10288e149b81254a0fda8ffe8d54a7061cd61d7515779998b012579d2b8c22354b0eb901daf0145f347403da582f75f359f4810c007182ad3fb318b5c0c- languageName: node- linkType: hard-"exponential-backoff@npm:^3.1.1":version: 3.1.1resolution: "exponential-backoff@npm:3.1.1"@@ -5707,7 +5176,7 @@ __metadata:languageName: nodelinkType: hard-"fast-json-stable-stringify@npm:2.x, fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0":+"fast-json-stable-stringify@npm:^2.0.0":version: 2.1.0resolution: "fast-json-stable-stringify@npm:2.1.0"checksum: b191531e36c607977e5b1c47811158733c34ccb3bfde92c44798929e9b4154884378536d26ad90dfecd32e1ffc09c545d23535ad91b3161a27ddbb8ebe0cbecb@@ -5730,15 +5199,6 @@ __metadata:languageName: nodelinkType: hard-"fb-watchman@npm:^2.0.0":- version: 2.0.2- resolution: "fb-watchman@npm:2.0.2"- dependencies:- bser: 2.1.1- checksum: b15a124cef28916fe07b400eb87cbc73ca082c142abf7ca8e8de6af43eca79ca7bd13eb4d4d48240b3bd3136eaac40d16e42d6edf87a8e5d1dd8070626860c78- languageName: node- linkType: hard-"fd-slicer@npm:~1.1.0":version: 1.1.0resolution: "fd-slicer@npm:1.1.0"@@ -6042,7 +5502,7 @@ __metadata:languageName: nodelinkType: hard-"fsevents@npm:^2.3.2":+"fsevents@npm:~2.3.2, fsevents@npm:~2.3.3":version: 2.3.3resolution: "fsevents@npm:2.3.3"dependencies:@@ -6061,7 +5521,7 @@ __metadata:languageName: nodelinkType: hard-"fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>":+"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.3#~builtin<compat/fsevents>":version: 2.3.3resolution: "fsevents@patch:fsevents@npm%3A2.3.3#~builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"dependencies:@@ -6133,13 +5593,6 @@ __metadata:languageName: nodelinkType: hard-"gensync@npm:^1.0.0-beta.2":- version: 1.0.0-beta.2- resolution: "gensync@npm:1.0.0-beta.2"- checksum: a7437e58c6be12aa6c90f7730eac7fa9833dc78872b4ad2963d2031b00a3367a93f98aec75f9aaac7220848e4026d67a8655e870b24f20a543d103c0d65952ec- languageName: node- linkType: hard-"get-caller-file@npm:^2.0.5":version: 2.0.5resolution: "get-caller-file@npm:2.0.5"@@ -6147,6 +5600,13 @@ __metadata:languageName: nodelinkType: hard+"get-func-name@npm:^2.0.0, get-func-name@npm:^2.0.2":+ version: 2.0.2+ resolution: "get-func-name@npm:2.0.2"+ checksum: 3f62f4c23647de9d46e6f76d2b3eafe58933a9b3830c60669e4180d6c601ce1b4aa310ba8366143f55e52b139f992087a9f0647274e8745621fa2af7e0acf13b+ languageName: node+ linkType: hard+"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.0, get-intrinsic@npm:^1.2.1":version: 1.2.1resolution: "get-intrinsic@npm:1.2.1"@@ -6159,13 +5619,6 @@ __metadata:languageName: nodelinkType: hard-"get-package-type@npm:^0.1.0":- version: 0.1.0- resolution: "get-package-type@npm:0.1.0"- checksum: bba0811116d11e56d702682ddef7c73ba3481f114590e705fc549f4d868972263896af313c57a25c076e3c0d567e11d919a64ba1b30c879be985fc9d44f96148- languageName: node- linkType: hard-"get-pkg-repo@npm:^4.2.1":version: 4.2.1resolution: "get-pkg-repo@npm:4.2.1"@@ -6414,13 +5867,6 @@ __metadata:languageName: nodelinkType: hard-"globals@npm:^11.1.0":- version: 11.12.0- resolution: "globals@npm:11.12.0"- checksum: 67051a45eca3db904aee189dfc7cd53c20c7d881679c93f6146ddd4c9f4ab2268e68a919df740d39c71f4445d2b38ee360fc234428baea1dbdfe68bbcb46979e- languageName: node- linkType: hard-"globals@npm:^13.19.0":version: 13.23.0resolution: "globals@npm:13.23.0"@@ -6466,6 +5912,13 @@ __metadata:languageName: nodelinkType: hard+"globrex@npm:^0.1.2":+ version: 0.1.2+ resolution: "globrex@npm:0.1.2"+ checksum: adca162494a176ce9ecf4dd232f7b802956bb1966b37f60c15e49d2e7d961b66c60826366dc2649093cad5a0d69970cfa8875bd1695b5a1a2f33dcd2aa88da3c+ languageName: node+ linkType: hard+"gopd@npm:^1.0.1":version: 1.0.1resolution: "gopd@npm:1.0.1"@@ -6529,7 +5982,7 @@ __metadata:languageName: nodelinkType: hard-"graceful-fs@npm:4.2.11, graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9":+"graceful-fs@npm:4.2.11, graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6":version: 4.2.11resolution: "graceful-fs@npm:4.2.11"checksum: ac85f94da92d8eb6b7f5a8b20ce65e43d66761c55ce85ac96df6865308390da45a8d3f0296dd3a663de65d30ba497bd46c696cc1e248c72b13d6d567138a4fc7@@ -6907,7 +6360,7 @@ __metadata:languageName: nodelinkType: hard-"import-local@npm:3.1.0, import-local@npm:^3.0.2, import-local@npm:^3.1.0":+"import-local@npm:3.1.0, import-local@npm:^3.1.0":version: 3.1.0resolution: "import-local@npm:3.1.0"dependencies:@@ -7120,7 +6573,7 @@ __metadata:languageName: nodelinkType: hard-"is-ci@npm:3.0.1":+"is-ci@npm:3.0.1, is-ci@npm:^3.0.1":version: 3.0.1resolution: "is-ci@npm:3.0.1"dependencies:@@ -7188,13 +6641,6 @@ __metadata:languageName: nodelinkType: hard-"is-generator-fn@npm:^2.0.0":- version: 2.1.0- resolution: "is-generator-fn@npm:2.1.0"- checksum: a6ad5492cf9d1746f73b6744e0c43c0020510b59d56ddcb78a91cbc173f09b5e6beff53d75c9c5a29feb618bfef2bf458e025ecf3a57ad2268e2fb2569f56215- languageName: node- linkType: hard-"is-generator-function@npm:^1.0.10":version: 1.0.10resolution: "is-generator-function@npm:1.0.10"@@ -7486,33 +6932,7 @@ __metadata:languageName: nodelinkType: hard-"istanbul-lib-instrument@npm:^5.0.4":- version: 5.2.1- resolution: "istanbul-lib-instrument@npm:5.2.1"- dependencies:- "@babel/core": ^7.12.3- "@babel/parser": ^7.14.7- "@istanbuljs/schema": ^0.1.2- istanbul-lib-coverage: ^3.2.0- semver: ^6.3.0- checksum: bf16f1803ba5e51b28bbd49ed955a736488381e09375d830e42ddeb403855b2006f850711d95ad726f2ba3f1ae8e7366de7e51d2b9ac67dc4d80191ef7ddf272- languageName: node- linkType: hard--"istanbul-lib-instrument@npm:^6.0.0":- version: 6.0.1- resolution: "istanbul-lib-instrument@npm:6.0.1"- dependencies:- "@babel/core": ^7.12.3- "@babel/parser": ^7.14.7- "@istanbuljs/schema": ^0.1.2- istanbul-lib-coverage: ^3.2.0- semver: ^7.5.4- checksum: fb23472e739cfc9b027cefcd7d551d5e7ca7ff2817ae5150fab99fe42786a7f7b56a29a2aa8309c37092e18297b8003f9c274f50ca4360949094d17fbac81472- languageName: node- linkType: hard--"istanbul-lib-report@npm:^3.0.0":+"istanbul-lib-report@npm:^3.0.0, istanbul-lib-report@npm:^3.0.1":version: 3.0.1resolution: "istanbul-lib-report@npm:3.0.1"dependencies:@@ -7523,7 +6943,7 @@ __metadata:languageName: nodelinkType: hard-"istanbul-lib-source-maps@npm:^4.0.0":+"istanbul-lib-source-maps@npm:^4.0.1":version: 4.0.1resolution: "istanbul-lib-source-maps@npm:4.0.1"dependencies:@@ -7534,7 +6954,7 @@ __metadata:languageName: nodelinkType: hard-"istanbul-reports@npm:^3.1.3":+"istanbul-reports@npm:^3.1.5":version: 3.1.6resolution: "istanbul-reports@npm:3.1.6"dependencies:@@ -7584,110 +7004,7 @@ __metadata:languageName: nodelinkType: hard-"jest-changed-files@npm:^29.7.0":- version: 29.7.0- resolution: "jest-changed-files@npm:29.7.0"- dependencies:- execa: ^5.0.0- jest-util: ^29.7.0- p-limit: ^3.1.0- checksum: 963e203893c396c5dfc75e00a49426688efea7361b0f0e040035809cecd2d46b3c01c02be2d9e8d38b1138357d2de7719ea5b5be21f66c10f2e9685a5a73bb99- languageName: node- linkType: hard--"jest-circus@npm:^29.7.0":- version: 29.7.0- resolution: "jest-circus@npm:29.7.0"- dependencies:- "@jest/environment": ^29.7.0- "@jest/expect": ^29.7.0- "@jest/test-result": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- chalk: ^4.0.0- co: ^4.6.0- dedent: ^1.0.0- is-generator-fn: ^2.0.0- jest-each: ^29.7.0- jest-matcher-utils: ^29.7.0- jest-message-util: ^29.7.0- jest-runtime: ^29.7.0- jest-snapshot: ^29.7.0- jest-util: ^29.7.0- p-limit: ^3.1.0- pretty-format: ^29.7.0- pure-rand: ^6.0.0- slash: ^3.0.0- stack-utils: ^2.0.3- checksum: 349437148924a5a109c9b8aad6d393a9591b4dac1918fc97d81b7fc515bc905af9918495055071404af1fab4e48e4b04ac3593477b1d5dcf48c4e71b527c70a7- languageName: node- linkType: hard--"jest-cli@npm:^29.7.0":- version: 29.7.0- resolution: "jest-cli@npm:29.7.0"- dependencies:- "@jest/core": ^29.7.0- "@jest/test-result": ^29.7.0- "@jest/types": ^29.6.3- chalk: ^4.0.0- create-jest: ^29.7.0- exit: ^0.1.2- import-local: ^3.0.2- jest-config: ^29.7.0- jest-util: ^29.7.0- jest-validate: ^29.7.0- yargs: ^17.3.1- peerDependencies:- node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0- peerDependenciesMeta:- node-notifier:- optional: true- bin:- jest: bin/jest.js- checksum: 664901277a3f5007ea4870632ed6e7889db9da35b2434e7cb488443e6bf5513889b344b7fddf15112135495b9875892b156faeb2d7391ddb9e2a849dcb7b6c36- languageName: node- linkType: hard--"jest-config@npm:^29.7.0":- version: 29.7.0- resolution: "jest-config@npm:29.7.0"- dependencies:- "@babel/core": ^7.11.6- "@jest/test-sequencer": ^29.7.0- "@jest/types": ^29.6.3- babel-jest: ^29.7.0- chalk: ^4.0.0- ci-info: ^3.2.0- deepmerge: ^4.2.2- glob: ^7.1.3- graceful-fs: ^4.2.9- jest-circus: ^29.7.0- jest-environment-node: ^29.7.0- jest-get-type: ^29.6.3- jest-regex-util: ^29.6.3- jest-resolve: ^29.7.0- jest-runner: ^29.7.0- jest-util: ^29.7.0- jest-validate: ^29.7.0- micromatch: ^4.0.4- parse-json: ^5.2.0- pretty-format: ^29.7.0- slash: ^3.0.0- strip-json-comments: ^3.1.1- peerDependencies:- "@types/node": "*"- ts-node: ">=9.0.0"- peerDependenciesMeta:- "@types/node":- optional: true- ts-node:- optional: true- checksum: 4cabf8f894c180cac80b7df1038912a3fc88f96f2622de33832f4b3314f83e22b08fb751da570c0ab2b7988f21604bdabade95e3c0c041068ac578c085cf7dff- languageName: node- linkType: hard--"jest-diff@npm:>=29.4.3 < 30, jest-diff@npm:^29.4.1, jest-diff@npm:^29.7.0":+"jest-diff@npm:>=29.4.3 < 30, jest-diff@npm:^29.4.1":version: 29.7.0resolution: "jest-diff@npm:29.7.0"dependencies:@@ -7699,42 +7016,6 @@ __metadata:languageName: nodelinkType: hard-"jest-docblock@npm:^29.7.0":- version: 29.7.0- resolution: "jest-docblock@npm:29.7.0"- dependencies:- detect-newline: ^3.0.0- checksum: 66390c3e9451f8d96c5da62f577a1dad701180cfa9b071c5025acab2f94d7a3efc2515cfa1654ebe707213241541ce9c5530232cdc8017c91ed64eea1bd3b192- languageName: node- linkType: hard--"jest-each@npm:^29.7.0":- version: 29.7.0- resolution: "jest-each@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- chalk: ^4.0.0- jest-get-type: ^29.6.3- jest-util: ^29.7.0- pretty-format: ^29.7.0- checksum: e88f99f0184000fc8813f2a0aa79e29deeb63700a3b9b7928b8a418d7d93cd24933608591dbbdea732b473eb2021c72991b5cc51a17966842841c6e28e6f691c- languageName: node- linkType: hard--"jest-environment-node@npm:^29.7.0":- version: 29.7.0- resolution: "jest-environment-node@npm:29.7.0"- dependencies:- "@jest/environment": ^29.7.0- "@jest/fake-timers": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- jest-mock: ^29.7.0- jest-util: ^29.7.0- checksum: 501a9966292cbe0ca3f40057a37587cb6def25e1e0c5e39ac6c650fe78d3c70a2428304341d084ac0cced5041483acef41c477abac47e9a290d5545fd2f15646- languageName: node- linkType: hard-"jest-get-type@npm:^29.6.3":version: 29.6.3resolution: "jest-get-type@npm:29.6.3"@@ -7742,287 +7023,6 @@ __metadata:languageName: nodelinkType: hard-"jest-haste-map@npm:^29.7.0":- version: 29.7.0- resolution: "jest-haste-map@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- "@types/graceful-fs": ^4.1.3- "@types/node": "*"- anymatch: ^3.0.3- fb-watchman: ^2.0.0- fsevents: ^2.3.2- graceful-fs: ^4.2.9- jest-regex-util: ^29.6.3- jest-util: ^29.7.0- jest-worker: ^29.7.0- micromatch: ^4.0.4- walker: ^1.0.8- dependenciesMeta:- fsevents:- optional: true- checksum: c2c8f2d3e792a963940fbdfa563ce14ef9e14d4d86da645b96d3cd346b8d35c5ce0b992ee08593939b5f718cf0a1f5a90011a056548a1dbf58397d4356786f01- languageName: node- linkType: hard--"jest-leak-detector@npm:^29.7.0":- version: 29.7.0- resolution: "jest-leak-detector@npm:29.7.0"- dependencies:- jest-get-type: ^29.6.3- pretty-format: ^29.7.0- checksum: e3950e3ddd71e1d0c22924c51a300a1c2db6cf69ec1e51f95ccf424bcc070f78664813bef7aed4b16b96dfbdeea53fe358f8aeaaea84346ae15c3735758f1605- languageName: node- linkType: hard--"jest-matcher-utils@npm:^29.7.0":- version: 29.7.0- resolution: "jest-matcher-utils@npm:29.7.0"- dependencies:- chalk: ^4.0.0- jest-diff: ^29.7.0- jest-get-type: ^29.6.3- pretty-format: ^29.7.0- checksum: d7259e5f995d915e8a37a8fd494cb7d6af24cd2a287b200f831717ba0d015190375f9f5dc35393b8ba2aae9b2ebd60984635269c7f8cff7d85b077543b7744cd- languageName: node- linkType: hard--"jest-message-util@npm:^29.7.0":- version: 29.7.0- resolution: "jest-message-util@npm:29.7.0"- dependencies:- "@babel/code-frame": ^7.12.13- "@jest/types": ^29.6.3- "@types/stack-utils": ^2.0.0- chalk: ^4.0.0- graceful-fs: ^4.2.9- micromatch: ^4.0.4- pretty-format: ^29.7.0- slash: ^3.0.0- stack-utils: ^2.0.3- checksum: a9d025b1c6726a2ff17d54cc694de088b0489456c69106be6b615db7a51b7beb66788bea7a59991a019d924fbf20f67d085a445aedb9a4d6760363f4d7d09930- languageName: node- linkType: hard--"jest-mock@npm:^29.7.0":- version: 29.7.0- resolution: "jest-mock@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- "@types/node": "*"- jest-util: ^29.7.0- checksum: 81ba9b68689a60be1482212878973700347cb72833c5e5af09895882b9eb5c4e02843a1bbdf23f94c52d42708bab53a30c45a3482952c9eec173d1eaac5b86c5- languageName: node- linkType: hard--"jest-pnp-resolver@npm:^1.2.2":- version: 1.2.3- resolution: "jest-pnp-resolver@npm:1.2.3"- peerDependencies:- jest-resolve: "*"- peerDependenciesMeta:- jest-resolve:- optional: true- checksum: db1a8ab2cb97ca19c01b1cfa9a9c8c69a143fde833c14df1fab0766f411b1148ff0df878adea09007ac6a2085ec116ba9a996a6ad104b1e58c20adbf88eed9b2- languageName: node- linkType: hard--"jest-regex-util@npm:^29.6.3":- version: 29.6.3- resolution: "jest-regex-util@npm:29.6.3"- checksum: 0518beeb9bf1228261695e54f0feaad3606df26a19764bc19541e0fc6e2a3737191904607fb72f3f2ce85d9c16b28df79b7b1ec9443aa08c3ef0e9efda6f8f2a- languageName: node- linkType: hard--"jest-resolve-dependencies@npm:^29.7.0":- version: 29.7.0- resolution: "jest-resolve-dependencies@npm:29.7.0"- dependencies:- jest-regex-util: ^29.6.3- jest-snapshot: ^29.7.0- checksum: aeb75d8150aaae60ca2bb345a0d198f23496494677cd6aefa26fc005faf354061f073982175daaf32b4b9d86b26ca928586344516e3e6969aa614cb13b883984- languageName: node- linkType: hard--"jest-resolve@npm:^29.7.0":- version: 29.7.0- resolution: "jest-resolve@npm:29.7.0"- dependencies:- chalk: ^4.0.0- graceful-fs: ^4.2.9- jest-haste-map: ^29.7.0- jest-pnp-resolver: ^1.2.2- jest-util: ^29.7.0- jest-validate: ^29.7.0- resolve: ^1.20.0- resolve.exports: ^2.0.0- slash: ^3.0.0- checksum: 0ca218e10731aa17920526ec39deaec59ab9b966237905ffc4545444481112cd422f01581230eceb7e82d86f44a543d520a71391ec66e1b4ef1a578bd5c73487- languageName: node- linkType: hard--"jest-runner@npm:^29.7.0":- version: 29.7.0- resolution: "jest-runner@npm:29.7.0"- dependencies:- "@jest/console": ^29.7.0- "@jest/environment": ^29.7.0- "@jest/test-result": ^29.7.0- "@jest/transform": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- chalk: ^4.0.0- emittery: ^0.13.1- graceful-fs: ^4.2.9- jest-docblock: ^29.7.0- jest-environment-node: ^29.7.0- jest-haste-map: ^29.7.0- jest-leak-detector: ^29.7.0- jest-message-util: ^29.7.0- jest-resolve: ^29.7.0- jest-runtime: ^29.7.0- jest-util: ^29.7.0- jest-watcher: ^29.7.0- jest-worker: ^29.7.0- p-limit: ^3.1.0- source-map-support: 0.5.13- checksum: f0405778ea64812bf9b5c50b598850d94ccf95d7ba21f090c64827b41decd680ee19fcbb494007cdd7f5d0d8906bfc9eceddd8fa583e753e736ecd462d4682fb- languageName: node- linkType: hard--"jest-runtime@npm:^29.7.0":- version: 29.7.0- resolution: "jest-runtime@npm:29.7.0"- dependencies:- "@jest/environment": ^29.7.0- "@jest/fake-timers": ^29.7.0- "@jest/globals": ^29.7.0- "@jest/source-map": ^29.6.3- "@jest/test-result": ^29.7.0- "@jest/transform": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- chalk: ^4.0.0- cjs-module-lexer: ^1.0.0- collect-v8-coverage: ^1.0.0- glob: ^7.1.3- graceful-fs: ^4.2.9- jest-haste-map: ^29.7.0- jest-message-util: ^29.7.0- jest-mock: ^29.7.0- jest-regex-util: ^29.6.3- jest-resolve: ^29.7.0- jest-snapshot: ^29.7.0- jest-util: ^29.7.0- slash: ^3.0.0- strip-bom: ^4.0.0- checksum: d19f113d013e80691e07047f68e1e3448ef024ff2c6b586ce4f90cd7d4c62a2cd1d460110491019719f3c59bfebe16f0e201ed005ef9f80e2cf798c374eed54e- languageName: node- linkType: hard--"jest-snapshot@npm:^29.7.0":- version: 29.7.0- resolution: "jest-snapshot@npm:29.7.0"- dependencies:- "@babel/core": ^7.11.6- "@babel/generator": ^7.7.2- "@babel/plugin-syntax-jsx": ^7.7.2- "@babel/plugin-syntax-typescript": ^7.7.2- "@babel/types": ^7.3.3- "@jest/expect-utils": ^29.7.0- "@jest/transform": ^29.7.0- "@jest/types": ^29.6.3- babel-preset-current-node-syntax: ^1.0.0- chalk: ^4.0.0- expect: ^29.7.0- graceful-fs: ^4.2.9- 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.5.3- checksum: 86821c3ad0b6899521ce75ee1ae7b01b17e6dfeff9166f2cf17f012e0c5d8c798f30f9e4f8f7f5bed01ea7b55a6bc159f5eda778311162cbfa48785447c237ad- languageName: node- linkType: hard--"jest-util@npm:^29.0.0, jest-util@npm:^29.7.0":- version: 29.7.0- resolution: "jest-util@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- "@types/node": "*"- chalk: ^4.0.0- ci-info: ^3.2.0- graceful-fs: ^4.2.9- picomatch: ^2.2.3- checksum: 042ab4980f4ccd4d50226e01e5c7376a8556b472442ca6091a8f102488c0f22e6e8b89ea874111d2328a2080083bf3225c86f3788c52af0bd0345a00eb57a3ca- languageName: node- linkType: hard--"jest-validate@npm:^29.7.0":- version: 29.7.0- resolution: "jest-validate@npm:29.7.0"- dependencies:- "@jest/types": ^29.6.3- camelcase: ^6.2.0- chalk: ^4.0.0- jest-get-type: ^29.6.3- leven: ^3.1.0- pretty-format: ^29.7.0- checksum: 191fcdc980f8a0de4dbdd879fa276435d00eb157a48683af7b3b1b98b0f7d9de7ffe12689b617779097ff1ed77601b9f7126b0871bba4f776e222c40f62e9dae- languageName: node- linkType: hard--"jest-watcher@npm:^29.7.0":- version: 29.7.0- resolution: "jest-watcher@npm:29.7.0"- dependencies:- "@jest/test-result": ^29.7.0- "@jest/types": ^29.6.3- "@types/node": "*"- ansi-escapes: ^4.2.1- chalk: ^4.0.0- emittery: ^0.13.1- jest-util: ^29.7.0- string-length: ^4.0.1- checksum: 67e6e7fe695416deff96b93a14a561a6db69389a0667e9489f24485bb85e5b54e12f3b2ba511ec0b777eca1e727235b073e3ebcdd473d68888650489f88df92f- languageName: node- linkType: hard--"jest-worker@npm:^29.7.0":- version: 29.7.0- resolution: "jest-worker@npm:29.7.0"- dependencies:- "@types/node": "*"- jest-util: ^29.7.0- merge-stream: ^2.0.0- supports-color: ^8.0.0- checksum: 30fff60af49675273644d408b650fc2eb4b5dcafc5a0a455f238322a8f9d8a98d847baca9d51ff197b6747f54c7901daa2287799230b856a0f48287d131f8c13- languageName: node- linkType: hard--"jest@npm:^29.1.2":- version: 29.7.0- resolution: "jest@npm:29.7.0"- dependencies:- "@jest/core": ^29.7.0- "@jest/types": ^29.6.3- import-local: ^3.0.2- jest-cli: ^29.7.0- peerDependencies:- node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0- peerDependenciesMeta:- node-notifier:- optional: true- bin:- jest: bin/jest.js- checksum: 17ca8d67504a7dbb1998cf3c3077ec9031ba3eb512da8d71cb91bcabb2b8995c4e4b292b740cb9bf1cbff5ce3e110b3f7c777b0cefb6f41ab05445f248d0ee0b- languageName: node- linkType: hard-"jquery@npm:^3.6.0":version: 3.7.1resolution: "jquery@npm:3.7.1"@@ -8048,7 +7048,7 @@ __metadata:languageName: nodelinkType: hard-"js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1":+"js-yaml@npm:^3.10.0":version: 3.14.1resolution: "js-yaml@npm:3.14.1"dependencies:@@ -8092,16 +7092,7 @@ __metadata:peerDependenciesMeta:canvas:optional: true- checksum: d955ab83a6dad3e6af444098d30647c719bbb4cf97de053aa5751c03c8d6f3283d8c4d7fc2774c181f1d432fb0250e7332bc159e6b466424f4e337d73adcbf30- languageName: node- linkType: hard--"jsesc@npm:^2.5.1":- version: 2.5.2- resolution: "jsesc@npm:2.5.2"- bin:- jsesc: bin/jsesc- checksum: 4dc190771129e12023f729ce20e1e0bfceac84d73a85bc3119f7f938843fe25a4aeccb54b6494dce26fcf263d815f5f31acdefac7cc9329efb8422a4f4d9fa9d+ checksum: d955ab83a6dad3e6af444098d30647c719bbb4cf97de053aa5751c03c8d6f3283d8c4d7fc2774c181f1d432fb0250e7332bc159e6b466424f4e337d73adcbf30languageName: nodelinkType: hard@@ -8181,7 +7172,7 @@ __metadata:languageName: nodelinkType: hard-"jsonc-parser@npm:3.2.0":+"jsonc-parser@npm:3.2.0, jsonc-parser@npm:^3.2.0":version: 3.2.0resolution: "jsonc-parser@npm:3.2.0"checksum: 946dd9a5f326b745aa326d48a7257e3f4a4b62c5e98ec8e49fa2bdd8d96cef7e6febf1399f5c7016114fd1f68a1c62c6138826d5d90bc650448e3cf0951c53c7@@ -8248,13 +7239,6 @@ __metadata:languageName: nodelinkType: hard-"kleur@npm:^3.0.3":- version: 3.0.3- resolution: "kleur@npm:3.0.3"- checksum: df82cd1e172f957bae9c536286265a5cdbd5eeca487cb0a3b2a7b41ef959fc61f8e7c0e9aeea9c114ccf2c166b6a8dd45a46fd619c1c569d210ecd2765ad5169- languageName: node- linkType: hard-"language-subtag-registry@npm:~0.3.2":version: 0.3.22resolution: "language-subtag-registry@npm:0.3.22"@@ -8363,13 +7347,6 @@ __metadata:languageName: nodelinkType: hard-"leven@npm:^3.1.0":- version: 3.1.0- resolution: "leven@npm:3.1.0"- checksum: 638401d534585261b6003db9d99afd244dfe82d75ddb6db5c0df412842d5ab30b2ef18de471aaec70fe69a46f17b4ae3c7f01d8a4e6580ef7adb9f4273ad1e55- languageName: node- linkType: hard-"levn@npm:^0.4.1":version: 0.4.1resolution: "levn@npm:0.4.1"@@ -8503,6 +7480,13 @@ __metadata:languageName: nodelinkType: hard+"local-pkg@npm:^0.4.3":+ version: 0.4.3+ resolution: "local-pkg@npm:0.4.3"+ checksum: 7825aca531dd6afa3a3712a0208697aa4a5cd009065f32e3fb732aafcc42ed11f277b5ac67229222e96f4def55197171cdf3d5522d0381b489d2e5547b407d55+ languageName: node+ linkType: hard+"locate-path@npm:^2.0.0":version: 2.0.0resolution: "locate-path@npm:2.0.0"@@ -8573,13 +7557,6 @@ __metadata:languageName: nodelinkType: hard-"lodash.memoize@npm:4.x":- version: 4.1.2- resolution: "lodash.memoize@npm:4.1.2"- checksum: 9ff3942feeccffa4f1fafa88d32f0d24fdc62fd15ded5a74a5f950ff5f0c6f61916157246744c620173dddf38d37095a92327d5fd3861e2063e736a5c207d089- languageName: node- linkType: hard-"lodash.merge@npm:^4.6.2":version: 4.6.2resolution: "lodash.merge@npm:4.6.2"@@ -8663,6 +7640,15 @@ __metadata:languageName: nodelinkType: hard+"loupe@npm:^2.3.6":+ version: 2.3.6+ resolution: "loupe@npm:2.3.6"+ dependencies:+ get-func-name: ^2.0.0+ checksum: cc83f1b124a1df7384601d72d8d1f5fe95fd7a8185469fec48bb2e4027e45243949e7a013e8d91051a138451ff0552310c32aa9786e60b6a30d1e801bdc2163f+ languageName: node+ linkType: hard+"lowercase-keys@npm:2.0.0, lowercase-keys@npm:^2.0.0":version: 2.0.0resolution: "lowercase-keys@npm:2.0.0"@@ -8677,15 +7663,6 @@ __metadata:languageName: nodelinkType: hard-"lru-cache@npm:^5.1.1":- version: 5.1.1- resolution: "lru-cache@npm:5.1.1"- dependencies:- yallist: ^3.0.2- checksum: c154ae1cbb0c2206d1501a0e94df349653c92c8cbb25236d7e85190bcaf4567a03ac6eb43166fabfa36fd35623694da7233e88d9601fbf411a9a481d85dbd2cb- languageName: node- linkType: hard-"lru-cache@npm:^6.0.0":version: 6.0.0resolution: "lru-cache@npm:6.0.0"@@ -8709,6 +7686,15 @@ __metadata:languageName: nodelinkType: hard+"magic-string@npm:^0.30.1":+ version: 0.30.4+ resolution: "magic-string@npm:0.30.4"+ dependencies:+ "@jridgewell/sourcemap-codec": ^1.4.15+ checksum: bef57c926d14e9926c142307c1494cc4bdea28a56601a7624f1a5bcd34a63800e2d8a363e826436ce86104460a63ee76c7c185a6ab1f8f7ee5af2de475b98947+ languageName: node+ linkType: hard+"make-dir@npm:4.0.0, make-dir@npm:^4.0.0":version: 4.0.0resolution: "make-dir@npm:4.0.0"@@ -8728,7 +7714,7 @@ __metadata:languageName: nodelinkType: hard-"make-error@npm:1.x, make-error@npm:^1.1.1":+"make-error@npm:^1.1.1":version: 1.3.6resolution: "make-error@npm:1.3.6"checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402@@ -8758,15 +7744,6 @@ __metadata:languageName: nodelinkType: hard-"makeerror@npm:1.0.12":- version: 1.0.12- resolution: "makeerror@npm:1.0.12"- dependencies:- tmpl: 1.0.5- checksum: b38a025a12c8146d6eeea5a7f2bf27d51d8ad6064da8ca9405fcf7bf9b54acd43e3b30ddd7abb9b1bfa4ddb266019133313482570ddb207de568f71ecfcf6060- languageName: node- linkType: hard-"map-obj@npm:^1.0.0":version: 1.0.1resolution: "map-obj@npm:1.0.1"@@ -9106,6 +8083,18 @@ __metadata:languageName: nodelinkType: hard+"mlly@npm:^1.2.0, mlly@npm:^1.4.0":+ version: 1.4.2+ resolution: "mlly@npm:1.4.2"+ dependencies:+ acorn: ^8.10.0+ pathe: ^1.1.1+ pkg-types: ^1.0.3+ ufo: ^1.3.0+ checksum: ad0813eca133e59ac03b356b87deea57da96083dce7dda58a8eeb2dce92b7cc2315bedd9268f3ff8e98effe1867ddb1307486d4c5cd8be162daa8e0fa0a98ed4+ languageName: node+ linkType: hard+"modify-values@npm:^1.0.1":version: 1.0.1resolution: "modify-values@npm:1.0.1"@@ -9168,7 +8157,7 @@ __metadata:languageName: nodelinkType: hard-"nanoid@npm:^3.3.4":+"nanoid@npm:^3.3.4, nanoid@npm:^3.3.6":version: 3.3.6resolution: "nanoid@npm:3.3.6"bin:@@ -9274,13 +8263,6 @@ __metadata:languageName: nodelinkType: hard-"node-int64@npm:^0.4.0":- version: 0.4.0- resolution: "node-int64@npm:0.4.0"- checksum: d0b30b1ee6d961851c60d5eaa745d30b5c95d94bc0e74b81e5292f7c42a49e3af87f1eb9e89f59456f80645d679202537de751b7d72e9e40ceea40c5e449057e- languageName: node- linkType: hard-"node-machine-id@npm:1.1.12":version: 1.1.12resolution: "node-machine-id@npm:1.1.12"@@ -9342,13 +8324,6 @@ __metadata:languageName: nodelinkType: hard-"normalize-path@npm:^3.0.0":- version: 3.0.0- resolution: "normalize-path@npm:3.0.0"- checksum: 88eeb4da891e10b1318c4b2476b6e2ecbeb5ff97d946815ffea7794c31a89017c70d7f34b3c2ebf23ef4e9fc9fb99f7dffe36da22011b5b5c6ffa34f4873ec20- languageName: node- linkType: hard-"normalize-url@npm:^6.0.1":version: 6.1.0resolution: "normalize-url@npm:6.1.0"@@ -9852,6 +8827,15 @@ __metadata:languageName: nodelinkType: hard+"p-limit@npm:^4.0.0":+ version: 4.0.0+ resolution: "p-limit@npm:4.0.0"+ dependencies:+ yocto-queue: ^1.0.0+ checksum: 01d9d70695187788f984226e16c903475ec6a947ee7b21948d6f597bed788e3112cc7ec2e171c1d37125057a5f45f3da21d8653e04a3a793589e12e9e80e756b+ languageName: node+ linkType: hard+"p-locate@npm:^2.0.0":version: 2.0.0resolution: "p-locate@npm:2.0.0"@@ -10163,6 +9147,20 @@ __metadata:languageName: nodelinkType: hard+"pathe@npm:^1.1.0, pathe@npm:^1.1.1":+ version: 1.1.1+ resolution: "pathe@npm:1.1.1"+ checksum: 34ab3da2e5aa832ebc6a330ffe3f73d7ba8aec6e899b53b8ec4f4018de08e40742802deb12cf5add9c73b7bf719b62c0778246bd376ca62b0fb23e0dde44b759+ languageName: node+ linkType: hard++"pathval@npm:^1.1.1":+ version: 1.1.1+ resolution: "pathval@npm:1.1.1"+ checksum: 090e3147716647fb7fb5b4b8c8e5b55e5d0a6086d085b6cd23f3d3c01fcf0ff56fd3cc22f2f4a033bd2e46ed55d61ed8379e123b42afe7d531a2a5fc8bb556d6+ languageName: node+ linkType: hard+"pause-stream@npm:0.0.11":version: 0.0.11resolution: "pause-stream@npm:0.0.11"@@ -10186,7 +9184,7 @@ __metadata:languageName: nodelinkType: hard-"picomatch@npm:^2.0.4, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1":+"picomatch@npm:^2.3.1":version: 2.3.1resolution: "picomatch@npm:2.3.1"checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf@@ -10230,13 +9228,6 @@ __metadata:languageName: nodelinkType: hard-"pirates@npm:^4.0.4":- version: 4.0.6- resolution: "pirates@npm:4.0.6"- checksum: 46a65fefaf19c6f57460388a5af9ab81e3d7fd0e7bc44ca59d753cb5c4d0df97c6c6e583674869762101836d68675f027d60f841c105d72734df9dfca97cbcc6- languageName: node- linkType: hard-"pkg-dir@npm:^4.2.0":version: 4.2.0resolution: "pkg-dir@npm:4.2.0"@@ -10246,6 +9237,17 @@ __metadata:languageName: nodelinkType: hard+"pkg-types@npm:^1.0.3":+ version: 1.0.3+ resolution: "pkg-types@npm:1.0.3"+ dependencies:+ jsonc-parser: ^3.2.0+ mlly: ^1.2.0+ pathe: ^1.1.0+ checksum: 4b305c834b912ddcc8a0fe77530c0b0321fe340396f84cbb87aecdbc126606f47f2178f23b8639e71a4870f9631c7217aef52ffed0ae17ea2dbbe7e43d116a6e+ languageName: node+ linkType: hard+"playwright-core@npm:1.38.1":version: 1.38.1resolution: "playwright-core@npm:1.38.1"@@ -10283,6 +9285,17 @@ __metadata:languageName: nodelinkType: hard+"postcss@npm:^8.4.31":+ version: 8.4.31+ resolution: "postcss@npm:8.4.31"+ dependencies:+ nanoid: ^3.3.6+ picocolors: ^1.0.0+ source-map-js: ^1.0.2+ checksum: 1d8611341b073143ad90486fcdfeab49edd243377b1f51834dc4f6d028e82ce5190e4f11bb2633276864503654fb7cab28e67abdc0fbf9d1f88cad4a0ff0beea+ languageName: node+ linkType: hard+"prelude-ls@npm:^1.2.1":version: 1.2.1resolution: "prelude-ls@npm:1.2.1"@@ -10290,7 +9303,7 @@ __metadata:languageName: nodelinkType: hard-"pretty-format@npm:^29.0.0, pretty-format@npm:^29.7.0":+"pretty-format@npm:^29.5.0, pretty-format@npm:^29.7.0":version: 29.7.0resolution: "pretty-format@npm:29.7.0"dependencies:@@ -10339,16 +9352,6 @@ __metadata:languageName: nodelinkType: hard-"prompts@npm:^2.0.1":- version: 2.4.2- resolution: "prompts@npm:2.4.2"- dependencies:- kleur: ^3.0.3- sisteransi: ^1.0.5- checksum: d8fd1fe63820be2412c13bfc5d0a01909acc1f0367e32396962e737cb2fc52d004f3302475d5ce7d18a1e8a79985f93ff04ee03007d091029c3f9104bffc007d- languageName: node- linkType: hard-"promzard@npm:^1.0.0":version: 1.0.0resolution: "promzard@npm:1.0.0"@@ -10491,13 +9494,6 @@ __metadata:languageName: nodelinkType: hard-"pure-rand@npm:^6.0.0":- version: 6.0.4- resolution: "pure-rand@npm:6.0.4"- checksum: e1c4e69f8bf7303e5252756d67c3c7551385cd34d94a1f511fe099727ccbab74c898c03a06d4c4a24a89b51858781057b83ebbfe740d984240cdc04fead36068- languageName: node- linkType: hard-"qs@npm:6.11.0":version: 6.11.0resolution: "qs@npm:6.11.0"@@ -10804,14 +9800,7 @@ __metadata:languageName: nodelinkType: hard-"resolve.exports@npm:^2.0.0":- version: 2.0.2- resolution: "resolve.exports@npm:2.0.2"- checksum: 1c7778ca1b86a94f8ab4055d196c7d87d1874b96df4d7c3e67bbf793140f0717fd506dcafd62785b079cd6086b9264424ad634fb904409764c3509c3df1653f2- languageName: node- linkType: hard--"resolve@npm:^1.10.0, resolve@npm:^1.20.0, resolve@npm:^1.22.0, resolve@npm:^1.22.4":+"resolve@npm:^1.10.0, resolve@npm:^1.22.0, resolve@npm:^1.22.4":version: 1.22.8resolution: "resolve@npm:1.22.8"dependencies:@@ -10837,7 +9826,7 @@ __metadata:languageName: nodelinkType: hard-"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.4#~builtin<compat/resolve>":+"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.4#~builtin<compat/resolve>":version: 1.22.8resolution: "resolve@patch:resolve@npm%3A1.22.8#~builtin<compat/resolve>::version=1.22.8&hash=c3c19d"dependencies:@@ -10962,6 +9951,20 @@ __metadata:languageName: nodelinkType: hard+"rollup@npm:^3.29.2":+ version: 3.29.4+ resolution: "rollup@npm:3.29.4"+ dependencies:+ fsevents: ~2.3.2+ dependenciesMeta:+ fsevents:+ optional: true+ bin:+ rollup: dist/bin/rollup+ checksum: 8bb20a39c8d91130825159c3823eccf4dc2295c9a0a5c4ed851a5bf2167dbf24d9a29f23461a54c955e5506395e6cc188eafc8ab0e20399d7489fb33793b184e+ languageName: node+ linkType: hard+"rrweb-cssom@npm:^0.6.0":version: 0.6.0resolution: "rrweb-cssom@npm:0.6.0"@@ -11188,6 +10191,13 @@ __metadata:languageName: nodelinkType: hard+"siginfo@npm:^2.0.0":+ version: 2.0.0+ resolution: "siginfo@npm:2.0.0"+ checksum: 8aa5a98640ca09fe00d74416eca97551b3e42991614a3d1b824b115fc1401543650914f651ab1311518177e4d297e80b953f4cd4cd7ea1eabe824e8f2091de01+ languageName: node+ linkType: hard+"signal-exit@npm:3.0.7, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7":version: 3.0.7resolution: "signal-exit@npm:3.0.7"@@ -11217,13 +10227,6 @@ __metadata:languageName: nodelinkType: hard-"sisteransi@npm:^1.0.5":- version: 1.0.5- resolution: "sisteransi@npm:1.0.5"- checksum: aba6438f46d2bfcef94cf112c835ab395172c75f67453fe05c340c770d3c402363018ae1ab4172a1026a90c47eaccf3af7b6ff6fa749a680c2929bd7fa2b37a4- languageName: node- linkType: hard-"slash@npm:3.0.0, slash@npm:^3.0.0":version: 3.0.0resolution: "slash@npm:3.0.0"@@ -11296,17 +10299,14 @@ __metadata:languageName: nodelinkType: hard-"source-map-support@npm:0.5.13":- version: 0.5.13- resolution: "source-map-support@npm:0.5.13"- dependencies:- buffer-from: ^1.0.0- source-map: ^0.6.0- checksum: 933550047b6c1a2328599a21d8b7666507427c0f5ef5eaadd56b5da0fd9505e239053c66fe181bf1df469a3b7af9d775778eee283cbb7ae16b902ddc09e93a97+"source-map-js@npm:^1.0.2":+ version: 1.0.2+ resolution: "source-map-js@npm:1.0.2"+ checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377clanguageName: nodelinkType: hard-"source-map@npm:^0.6.0, source-map@npm:^0.6.1, source-map@npm:~0.6.1":+"source-map@npm:^0.6.1, source-map@npm:~0.6.1":version: 0.6.1resolution: "source-map@npm:0.6.1"checksum: 59ce8640cf3f3124f64ac289012c2b8bd377c238e316fb323ea22fbfe83da07d81e000071d7242cad7a23cd91c7de98e4df8830ec3f133cb6133a5f6e9f67bc2@@ -11399,12 +10399,10 @@ __metadata:languageName: nodelinkType: hard-"stack-utils@npm:^2.0.3":- version: 2.0.6- resolution: "stack-utils@npm:2.0.6"- dependencies:- escape-string-regexp: ^2.0.0- checksum: 052bf4d25bbf5f78e06c1d5e67de2e088b06871fa04107ca8d3f0e9d9263326e2942c8bedee3545795fc77d787d443a538345eef74db2f8e35db3558c6f91ff7+"stackback@npm:0.0.2":+ version: 0.0.2+ resolution: "stackback@npm:0.0.2"+ checksum: 2d4dc4e64e2db796de4a3c856d5943daccdfa3dd092e452a1ce059c81e9a9c29e0b9badba91b43ef0d5ff5c04ee62feb3bcc559a804e16faf447bac2d883aa99languageName: nodelinkType: hard@@ -11415,6 +10413,13 @@ __metadata:languageName: nodelinkType: hard+"std-env@npm:^3.3.3":+ version: 3.4.3+ resolution: "std-env@npm:3.4.3"+ checksum: bef186fb2baddda31911234b1e58fa18f181eb6930616aaec3b54f6d5db65f2da5daaa5f3b326b98445a7d50ca81d6fe8809ab4ebab85ecbe4a802f1b40921bf+ languageName: node+ linkType: hard+"stop-iteration-iterator@npm:^1.0.0":version: 1.0.0resolution: "stop-iteration-iterator@npm:1.0.0"@@ -11466,16 +10471,6 @@ __metadata:languageName: nodelinkType: hard-"string-length@npm:^4.0.1":- version: 4.0.2- resolution: "string-length@npm:4.0.2"- dependencies:- char-regex: ^1.0.2- strip-ansi: ^6.0.0- checksum: ce85533ef5113fcb7e522bcf9e62cb33871aa99b3729cec5595f4447f660b0cefd542ca6df4150c97a677d58b0cb727a3fe09ac1de94071d05526c73579bf505- languageName: node- linkType: hard-"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3":version: 4.2.3resolution: "string-width@npm:4.2.3"@@ -11637,6 +10632,15 @@ __metadata:languageName: nodelinkType: hard+"strip-literal@npm:^1.0.1":+ version: 1.3.0+ resolution: "strip-literal@npm:1.3.0"+ dependencies:+ acorn: ^8.10.0+ checksum: f5fa7e289df8ebe82e90091fd393974faf8871be087ca50114327506519323cf15f2f8fee6ebe68b5e58bfc795269cae8bdc7cb5a83e27b02b3fe953f37b0a89+ languageName: node+ linkType: hard+"strong-log-transformer@npm:2.1.0, strong-log-transformer@npm:^2.1.0":version: 2.1.0resolution: "strong-log-transformer@npm:2.1.0"@@ -11675,15 +10679,6 @@ __metadata:languageName: nodelinkType: hard-"supports-color@npm:^8.0.0":- version: 8.1.1- resolution: "supports-color@npm:8.1.1"- dependencies:- has-flag: ^4.0.0- checksum: c052193a7e43c6cdc741eb7f378df605636e01ad434badf7324f17fb60c69a880d8d8fcdcb562cf94c2350e57b937d7425ab5b8326c67c2adc48f7c87c1db406- languageName: node- linkType: hard-"supports-preserve-symlinks-flag@npm:^1.0.0":version: 1.0.0resolution: "supports-preserve-symlinks-flag@npm:1.0.0"@@ -11833,6 +10828,27 @@ __metadata:languageName: nodelinkType: hard+"tinybench@npm:^2.5.0":+ version: 2.5.1+ resolution: "tinybench@npm:2.5.1"+ checksum: 6d98526c00b68b50ab0a37590b3cc6713b96fee7dd6756a2a77bab071ed1b4a4fc54e7b11e28b35ec2f761c6a806c2befa95f10acf2fee111c49327b6fc3386f+ languageName: node+ linkType: hard++"tinypool@npm:^0.7.0":+ version: 0.7.0+ resolution: "tinypool@npm:0.7.0"+ checksum: fdcccd5c750574fce51f8801a877f8284e145d12b79cd5f2d72bfbddfe20c895e915555bc848e122bb6aa968098e7ac4fe1e8e88104904d518dc01cccd18a510+ languageName: node+ linkType: hard++"tinyspy@npm:^2.1.1":+ version: 2.2.0+ resolution: "tinyspy@npm:2.2.0"+ checksum: 36431acaa648054406147a92b9bde494b7548d0f9f3ffbcc02113c25a6e59f3310cbe924353d7f4c51436299150bec2dbb3dc595748f58c4ddffea22d5baaadb+ languageName: node+ linkType: hard+"tldts-core@npm:^6.0.16":version: 6.0.16resolution: "tldts-core@npm:6.0.16"@@ -11869,20 +10885,6 @@ __metadata:languageName: nodelinkType: hard-"tmpl@npm:1.0.5":- version: 1.0.5- resolution: "tmpl@npm:1.0.5"- checksum: cd922d9b853c00fe414c5a774817be65b058d54a2d01ebb415840960406c669a0fc632f66df885e24cb022ec812739199ccbdb8d1164c3e513f85bfca5ab2873- languageName: node- linkType: hard--"to-fast-properties@npm:^2.0.0":- version: 2.0.0- resolution: "to-fast-properties@npm:2.0.0"- checksum: be2de62fe58ead94e3e592680052683b1ec986c72d589e7b21e5697f8744cdbf48c266fa72f6c15932894c10187b5f54573a3bcf7da0bfd964d5caf23d436168- languageName: node- linkType: hard-"to-regex-range@npm:^5.0.1":version: 5.0.1resolution: "to-regex-range@npm:5.0.1"@@ -11943,39 +10945,6 @@ __metadata:languageName: nodelinkType: hard-"ts-jest@npm:^29.0.3":- version: 29.1.1- resolution: "ts-jest@npm:29.1.1"- dependencies:- bs-logger: 0.x- fast-json-stable-stringify: 2.x- jest-util: ^29.0.0- json5: ^2.2.3- lodash.memoize: 4.x- make-error: 1.x- semver: ^7.5.3- yargs-parser: ^21.0.1- peerDependencies:- "@babel/core": ">=7.0.0-beta.0 <8"- "@jest/types": ^29.0.0- babel-jest: ^29.0.0- jest: ^29.0.0- typescript: ">=4.3 <6"- peerDependenciesMeta:- "@babel/core":- optional: true- "@jest/types":- optional: true- babel-jest:- optional: true- esbuild:- optional: true- bin:- ts-jest: cli.js- checksum: a8c9e284ed4f819526749f6e4dc6421ec666f20ab44d31b0f02b4ed979975f7580b18aea4813172d43e39b29464a71899f8893dd29b06b4a351a3af8ba47b402- languageName: node- linkType: hard-"ts-node@npm:^10.8.1, ts-node@npm:^10.9.1":version: 10.9.1resolution: "ts-node@npm:10.9.1"@@ -12014,6 +10983,20 @@ __metadata:languageName: nodelinkType: hard+"tsconfck@npm:^2.1.0":+ version: 2.1.2+ resolution: "tsconfck@npm:2.1.2"+ peerDependencies:+ typescript: ^4.3.5 || ^5.0.0+ peerDependenciesMeta:+ typescript:+ optional: true+ bin:+ tsconfck: bin/tsconfck.js+ checksum: 6fd2f7de012a724f6b4bf48ae76cc7dae2b59dd5cad2dc50bac58d224d4ed7d5c43c6b26e55d3e00636f426f8b5373c996523d73b7830d05f8479a9b83282192+ languageName: node+ linkType: hard+"tsconfig-paths@npm:^3.14.1, tsconfig-paths@npm:^3.14.2":version: 3.14.2resolution: "tsconfig-paths@npm:3.14.2"@@ -12135,7 +11118,7 @@ __metadata:languageName: nodelinkType: hard-"type-detect@npm:4.0.8":+"type-detect@npm:^4.0.0, type-detect@npm:^4.0.8":version: 4.0.8resolution: "type-detect@npm:4.0.8"checksum: 62b5628bff67c0eb0b66afa371bd73e230399a8d2ad30d852716efcc4656a7516904570cd8631a49a3ce57c10225adf5d0cbdcb47f6b0255fe6557c453925a15@@ -12282,6 +11265,13 @@ __metadata:languageName: nodelinkType: hard+"ufo@npm:^1.3.0":+ version: 1.3.1+ resolution: "ufo@npm:1.3.1"+ checksum: 2db2f9d24e3f572ddb9b2f4415eda679fd366cbb9eec4c56996651323737f17528b4aab2bb45c5f2effff2304f9b0c46e0981aee3e48f38ac51106a8993dff31+ languageName: node+ linkType: hard+"uglify-js@npm:^3.1.4":version: 3.17.4resolution: "uglify-js@npm:3.17.4"@@ -12473,7 +11463,7 @@ __metadata:languageName: nodelinkType: hard-"v8-to-istanbul@npm:^9.0.1":+"v8-to-istanbul@npm:^9.1.0":version: 9.1.3resolution: "v8-to-istanbul@npm:9.1.3"dependencies:@@ -12526,6 +11516,138 @@ __metadata:languageName: nodelinkType: hard+"vite-node@npm:0.34.6":+ version: 0.34.6+ resolution: "vite-node@npm:0.34.6"+ dependencies:+ cac: ^6.7.14+ debug: ^4.3.4+ mlly: ^1.4.0+ pathe: ^1.1.1+ picocolors: ^1.0.0+ vite: ^3.0.0 || ^4.0.0 || ^5.0.0-0+ bin:+ vite-node: vite-node.mjs+ checksum: 46eba82bf8b69c7dfeed901502533b172cc6303212f0f49f82c2f64758fa4b60acd1b1e37cb96aff944e36b510b0d1beedb50d9cb25ef39e0159b2b9d1136b1f+ languageName: node+ linkType: hard++"vite-tsconfig-paths@npm:^4.2.1":+ version: 4.2.1+ resolution: "vite-tsconfig-paths@npm:4.2.1"+ dependencies:+ debug: ^4.1.1+ globrex: ^0.1.2+ tsconfck: ^2.1.0+ peerDependencies:+ vite: "*"+ peerDependenciesMeta:+ vite:+ optional: true+ checksum: 8cfbd314eb82a9db97e193aef826e72a112ca8b98e68ef0f9cd8f8538fd5163afe67652507bae41d4aab967ab9a8b24dcf95bd0a8900d388cd6c500c5a82d3b1+ languageName: node+ linkType: hard++"vite@npm:^3.0.0 || ^4.0.0 || ^5.0.0-0, vite@npm:^3.1.0 || ^4.0.0 || ^5.0.0-0":+ version: 5.0.0-beta.6+ resolution: "vite@npm:5.0.0-beta.6"+ dependencies:+ esbuild: ^0.19.3+ fsevents: ~2.3.3+ postcss: ^8.4.31+ rollup: ^3.29.2+ peerDependencies:+ "@types/node": ^18.0.0 || >=20.0.0+ less: "*"+ lightningcss: ^1.21.0+ sass: "*"+ stylus: "*"+ sugarss: "*"+ terser: ^5.4.0+ dependenciesMeta:+ fsevents:+ optional: true+ peerDependenciesMeta:+ "@types/node":+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ bin:+ vite: bin/vite.js+ checksum: 7491d6e67637f0f90ec585459da33a7cdf45368cad57ee8dbaabd11dbb7dd55f0ffaf2886870bea7f899d74dcf5690f77b27ad0b5e5b65d63599cda08874200a+ languageName: node+ linkType: hard++"vitest@npm:^0.34.6":+ version: 0.34.6+ resolution: "vitest@npm:0.34.6"+ dependencies:+ "@types/chai": ^4.3.5+ "@types/chai-subset": ^1.3.3+ "@types/node": "*"+ "@vitest/expect": 0.34.6+ "@vitest/runner": 0.34.6+ "@vitest/snapshot": 0.34.6+ "@vitest/spy": 0.34.6+ "@vitest/utils": 0.34.6+ acorn: ^8.9.0+ acorn-walk: ^8.2.0+ cac: ^6.7.14+ chai: ^4.3.10+ debug: ^4.3.4+ local-pkg: ^0.4.3+ magic-string: ^0.30.1+ pathe: ^1.1.1+ picocolors: ^1.0.0+ std-env: ^3.3.3+ strip-literal: ^1.0.1+ tinybench: ^2.5.0+ tinypool: ^0.7.0+ vite: ^3.1.0 || ^4.0.0 || ^5.0.0-0+ vite-node: 0.34.6+ why-is-node-running: ^2.2.2+ peerDependencies:+ "@edge-runtime/vm": "*"+ "@vitest/browser": "*"+ "@vitest/ui": "*"+ happy-dom: "*"+ jsdom: "*"+ playwright: "*"+ safaridriver: "*"+ webdriverio: "*"+ peerDependenciesMeta:+ "@edge-runtime/vm":+ optional: true+ "@vitest/browser":+ optional: true+ "@vitest/ui":+ optional: true+ happy-dom:+ optional: true+ jsdom:+ optional: true+ playwright:+ optional: true+ safaridriver:+ optional: true+ webdriverio:+ optional: true+ bin:+ vitest: vitest.mjs+ checksum: 45f5c1987fa8c76dbaf5db379bbdb4f6e3713c484e850149af38247b627e70016c1863286fd7fcfab08a1d98430f66ba1f45af6f14f5c467ded4b1ea6f26afa3+ languageName: node+ linkType: hard+"w3c-xmlserializer@npm:^4.0.0":version: 4.0.0resolution: "w3c-xmlserializer@npm:4.0.0"@@ -12535,15 +11657,6 @@ __metadata:languageName: nodelinkType: hard-"walker@npm:^1.0.8":- version: 1.0.8- resolution: "walker@npm:1.0.8"- dependencies:- makeerror: 1.0.12- checksum: ad7a257ea1e662e57ef2e018f97b3c02a7240ad5093c392186ce0bcf1f1a60bbadd520d073b9beb921ed99f64f065efb63dfc8eec689a80e569f93c1c5d5e16c- languageName: node- linkType: hard-"wcwidth@npm:^1.0.0, wcwidth@npm:^1.0.1":version: 1.0.1resolution: "wcwidth@npm:1.0.1"@@ -12683,6 +11796,18 @@ __metadata:languageName: nodelinkType: hard+"why-is-node-running@npm:^2.2.2":+ version: 2.2.2+ resolution: "why-is-node-running@npm:2.2.2"+ dependencies:+ siginfo: ^2.0.0+ stackback: 0.0.2+ bin:+ why-is-node-running: cli.js+ checksum: 50820428f6a82dfc3cbce661570bcae9b658723217359b6037b67e495255409b4c8bc7931745f5c175df71210450464517cab32b2f7458ac9c40b4925065200a+ languageName: node+ linkType: hard+"wide-align@npm:^1.1.5":version: 1.1.5resolution: "wide-align@npm:1.1.5"@@ -12760,16 +11885,6 @@ __metadata:languageName: nodelinkType: hard-"write-file-atomic@npm:^4.0.2":- version: 4.0.2- resolution: "write-file-atomic@npm:4.0.2"- dependencies:- imurmurhash: ^0.1.4- signal-exit: ^3.0.7- checksum: 5da60bd4eeeb935eec97ead3df6e28e5917a6bd317478e4a85a5285e8480b8ed96032bbcc6ecd07b236142a24f3ca871c924ec4a6575e623ec1b11bf8c1c253c- languageName: node- linkType: hard-"write-json-file@npm:^3.2.0":version: 3.2.0resolution: "write-json-file@npm:3.2.0"@@ -12853,13 +11968,6 @@ __metadata:languageName: nodelinkType: hard-"yallist@npm:^3.0.2":- version: 3.1.1- resolution: "yallist@npm:3.1.1"- checksum: 48f7bb00dc19fc635a13a39fe547f527b10c9290e7b3e836b9a8f1ca04d4d342e85714416b3c2ab74949c9c66f9cebb0473e6bc353b79035356103b47641285d- languageName: node- linkType: hard-"yallist@npm:^4.0.0":version: 4.0.0resolution: "yallist@npm:4.0.0"@@ -12892,7 +12000,7 @@ __metadata:languageName: nodelinkType: hard-"yargs-parser@npm:21.1.1, yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1":+"yargs-parser@npm:21.1.1, yargs-parser@npm:^21.1.1":version: 21.1.1resolution: "yargs-parser@npm:21.1.1"checksum: ed2d96a616a9e3e1cc7d204c62ecc61f7aaab633dcbfab2c6df50f7f87b393993fe6640d017759fe112d0cb1e0119f2b4150a87305cc873fd90831c6a58ccf1c@@ -12936,7 +12044,7 @@ __metadata:languageName: nodelinkType: hard-"yargs@npm:^17.0.0, yargs@npm:^17.3.1, yargs@npm:^17.5.1, yargs@npm:^17.6.2":+"yargs@npm:^17.0.0, yargs@npm:^17.5.1, yargs@npm:^17.6.2":version: 17.7.2resolution: "yargs@npm:17.7.2"dependencies:@@ -12974,3 +12082,10 @@ __metadata:checksum: f77b3d8d00310def622123df93d4ee654fc6a0096182af8bd60679ddcdfb3474c56c6c7190817c84a2785648cdee9d721c0154eb45698c62176c322fb46fc700languageName: nodelinkType: hard++"yocto-queue@npm:^1.0.0":+ version: 1.0.0+ resolution: "yocto-queue@npm:1.0.0"+ checksum: 2cac84540f65c64ccc1683c267edce396b26b1e931aa429660aefac8fbe0188167b7aee815a3c22fa59a28a58d898d1a2b1825048f834d8d629f4c2a5d443801+ languageName: node+ linkType: hard