Meteor Test with Yarn instead of NPM: Cannot find module 'crypto'

Trying to switch to yarn instead of NPM. Meteor app itself runs fine, but when running tests I get the following in the client console (no issues on the server):


Uncaught Error: Cannot find module 'crypto'
    at require (modules-runtime.js?hash=637cb12…:119)
    at meteorInstall.node_modules.uuid.rng.js (modules.js?hash=d4d40b0…:120347)
    at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
    at require (modules-runtime.js?hash=637cb12…:116)
    at meteorInstall.node_modules.uuid.uuid.js (modules.js?hash=d4d40b0…:120161)
    at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
    at require (modules-runtime.js?hash=637cb12…:116)
    at meteorInstall.node_modules.enzyme.build.Utils.js (modules.js?hash=d4d40b0…:82707)
    at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
    at require (modules-runtime.js?hash=637cb12…:116)