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.

fixed lint

Petr Patek1b48b899f83a
diff --git a/test/utils.test.js b/test/utils.test.js
index da175b6af..465485abc 100644
--- a/test/utils.test.js
+++ b/test/utils.test.js
@@ -9,12 +9,8 @@ import requestPromise from 'request-promise-native';
import LruCache from 'apify-shared/lru_cache';
import log from 'apify-shared/log';
import { ENV_VARS, LOCAL_ENV_VARS } from 'apify-shared/consts';
-import { Cookie } from 'tough-cookie';
import * as utils from '../build/utils';
import Apify from '../build/index';
-import { Session } from '../build/session_pool/session';
-import { updateSessionCookies } from '../src/utils';
-import { SessionPool } from '../src/session_pool/session_pool';
describe('utils.newClient()', () => {
test('reads environment variables correctly', () => {