Closed wiktor-obrebski closed 4 years ago
Ah, great catch. Until Jest works with ESM, we'll need to add a babel plugin for Jest that converts import meta into {env: process.env}
in a way that matches Snowpack's env object.
Fixed in c84d51b
Thank you!
I use
@snowpack/app-template-react-typescript
template and@snowpack/plugin-dotenv
for.env
file load.It works in
npm start
, but when I try to run test I got following error:how I can fix it?