Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes an issue when a contributor runs `npm install` using Apple Silicon which would fail since there is no precompiled arm64 binary to download for `canvas`. The error looks like this: ``` npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-darwin-unknown-arm64.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-darwin-unknown-arm64.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v108 ABI, unknown) (falling back to source compile with node-gyp) ``` Since we don't have a [special case](https://github.com/vercel/nft/blob/main/src/utils/special-cases.ts) for `canvas` and it never worked with Vercel deployments, we can remove the test. It also doesn't decrease code coverage (in fact, I bumped code coverage thresholds just to be sure). ### Related - Automattic/node-canvas#1733 - vercel/vercel#3460
- Loading branch information