Note: take note of the crucial
"type": "module" part as it’s the least-documented bit and your most likely omission!
After that set-up, you’re free to
export to your heart’s content.
Hopefully that’ll save you (and future me) some head-scratching.
(Reference: Jest’s EcmaScript Modules docs page)