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 stub.

Petr Patek6b983572f6ed
diff --git a/test/dataset.test.js b/test/dataset.test.js
index 9ed2e5e43..30de8a69c 100644
--- a/test/dataset.test.js
+++ b/test/dataset.test.js
@@ -507,7 +507,7 @@ describe('dataset', () => {
e = err;
}
expect(e.message).toEqual('getData: The response is too large for parsing. You can fix this by lowering the "limit" option.');
- stub.reset();
+ stub.restore();
});
test('getInfo() should work', async () => {