Skip to content

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.

chore: use relative paths for `test/shared` import from the `packages` folder

Martin Adámek05af44ded1d3
diff --git a/packages/basic-crawler/test/batch-add-requests.test.ts b/packages/basic-crawler/test/batch-add-requests.test.ts
index 6e5640ff1..45433cdff 100644
--- a/packages/basic-crawler/test/batch-add-requests.test.ts
+++ b/packages/basic-crawler/test/batch-add-requests.test.ts
@@ -1,5 +1,6 @@
import { BasicCrawler } from '@crawlee/basic';
-import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';
+
+import { MemoryStorageEmulator } from '../../../test/shared/MemoryStorageEmulator';
describe('BasicCrawler#addRequests with big batch sizes', () => {
const localStorageEmulator = new MemoryStorageEmulator();
diff --git a/packages/basic-crawler/test/migration.test.ts b/packages/basic-crawler/test/migration.test.ts
index 3f05e14b3..263bc0e20 100644
--- a/packages/basic-crawler/test/migration.test.ts
+++ b/packages/basic-crawler/test/migration.test.ts
@@ -1,7 +1,7 @@
import type { Log } from '@apify/log';
import log from '@apify/log';
-import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';
+import { MemoryStorageEmulator } from '../../../test/shared/MemoryStorageEmulator';
import { BasicCrawler, RequestList } from '../src/index';
const localStorageEmulator = new MemoryStorageEmulator();
diff --git a/packages/browser-crawler/test/migration.test.ts b/packages/browser-crawler/test/migration.test.ts
index fafaf1b66..0a8fb6bbc 100644
--- a/packages/browser-crawler/test/migration.test.ts
+++ b/packages/browser-crawler/test/migration.test.ts
@@ -2,8 +2,8 @@ import type { Log } from '@apify/log';
import log from '@apify/log';
import { PuppeteerPlugin } from '@crawlee/browser-pool';
import puppeteer from 'puppeteer';
-import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';
+import { MemoryStorageEmulator } from '../../../test/shared/MemoryStorageEmulator';
import { BrowserCrawler, RequestList } from '../src/index';
const localStorageEmulator = new MemoryStorageEmulator();
diff --git a/packages/cheerio-crawler/test/migration.test.ts b/packages/cheerio-crawler/test/migration.test.ts
index 79c073304..3c3436bf5 100644
--- a/packages/cheerio-crawler/test/migration.test.ts
+++ b/packages/cheerio-crawler/test/migration.test.ts
@@ -1,7 +1,7 @@
import type { Log } from '@apify/log';
import log from '@apify/log';
-import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';
+import { MemoryStorageEmulator } from '../../../test/shared/MemoryStorageEmulator';
import { CheerioCrawler, RequestList } from '../src/index';
const localStorageEmulator = new MemoryStorageEmulator();