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: bump vitest to `beta`, fix failing ALS tests
Jindřich Bär9e49c22515c7
diff --git a/package.json b/package.jsonindex c87247385..875021342 100644--- a/package.json+++ b/package.json@@ -117,7 +117,7 @@"typescript": "^6.0.0","typescript-eslint": "8.46.4","vite-tsconfig-paths": "^5.1.4",- "vitest": "^4.0.16",+ "vitest": "^4.1.0-beta.6","zod": "^4.0.0"},"lint-staged": {diff --git a/test/core/crawlers/browser_crawler.test.ts b/test/core/crawlers/browser_crawler.test.tsindex 8b7870ac3..cd3018f08 100644--- a/test/core/crawlers/browser_crawler.test.ts+++ b/test/core/crawlers/browser_crawler.test.ts@@ -1,7 +1,7 @@import type { Server } from 'node:http';import { BROWSER_POOL_EVENTS, OperatingSystemsName, PuppeteerPlugin } from '@crawlee/browser-pool';-import { BLOCKED_STATUS_CODES } from '@crawlee/core';+import { bindMethodsToServiceLocator, BLOCKED_STATUS_CODES, ServiceLocator } from '@crawlee/core';import type { PuppeteerGoToOptions } from '@crawlee/puppeteer';import { EnqueueStrategy, ProxyConfiguration, Request, RequestList, RequestState, Session } from '@crawlee/puppeteer';import { sleep } from '@crawlee/utils';@@ -42,6 +42,12 @@ describe('BrowserCrawler', () => {server.close();});+ aroundEach(async (t) => {+ const { run } = bindMethodsToServiceLocator(new ServiceLocator(), {});++ await run(t);+ });+test.concurrent('should work', async () => {const localStorageEmulator = new MemoryStorageEmulator();await localStorageEmulator.init();