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.

Fix current tests

Ondra Urban40772ab3ab87
diff --git a/test/request_list.js b/test/request_list.js
index 3386a0da9..fd846fde9 100644
--- a/test/request_list.js
+++ b/test/request_list.js
@@ -2,7 +2,7 @@ import 'babel-polyfill';
import _ from 'underscore';
import chai, { expect } from 'chai';
import chaiAsPromised from 'chai-as-promised';
-import request from 'request-promise';
+import request from 'request-promise-native';
import sinon from 'sinon';
import { delayPromise } from 'apify-shared/utilities';
import { ACTOR_EVENT_NAMES_EX } from '../build/constants';
diff --git a/test/utils.js b/test/utils.js
index c59b31b08..516ed426d 100644
--- a/test/utils.js
+++ b/test/utils.js
@@ -5,7 +5,7 @@ import fs from 'fs';
import path from 'path';
import os from 'os';
import Promise from 'bluebird';
-import requestPromise from 'request-promise';
+import requestPromise from 'request-promise-native';
import LruCache from 'apify-shared/lru_cache';
import { ENV_VARS, LOCAL_ENV_VARS } from 'apify-shared/consts';
import * as utils from '../build/utils';