Immutable solution version
Doesn't work with Jest
Complete solution
The problem
Reported in PlanetScale: Doesn't work with Jest.
The fix
[dgraham (maintainer)]: If @planetscale/database fails to import under Jest with "unexpected token" parse errors, upgrade to the 1.9.0 release or newer: it ships a CommonJS build that Jest can parse.
Evidence
In gh:planetscale/database-js#118 (https://github.com/planetscale/database-js/issues/118), the reporter ran into this: Reported in PlanetScale: Doesn't work with Jest. The verified resolution: [dgraham (maintainer)]: If @planetscale/database fails to import under Jest with "unexpected token" parse errors, upgrade to the 1.9.0 release or newer: it ships a CommonJS build that Jest can parse.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Sr0RSM_7WdGSyIU0e72HIA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Doesn't work with Jest <span>— Vectle</span></a>