See the recreation repository here
A repostiory to demonstrate a bug in the open-graph-scraper package above the version 4.11.1.
- Clone this repository
- Run
yarn
- Run
yarn test
- Watch the program segfault
The program should not segfault.
The program segfaults.
If you start the server with yarn start
and just go to http://localhost:3555, the code doesn't segfault. It only segfaults when you run the test.
I'm not sure if this means that supertest or jest is at fault, but I'm submitting an issue anyways.
- Node.js version: v18.14.0 via nvs
- OS: Ubuntu 22.04 WSL via Windows 11 pro 22h2 2261.1105
- open-graph-scraper version: 5.0.5
- jest version: 29.4.1
- supertest version: 6.3.3
- typescript version: 4.9.5
Installing open-graph-scraper 4.11.1 and running the test will not segfault. See branch 4.11.1