Open Maxim-Mazurok opened 9 months ago
Also in my project I did this: updateSnapshots: process.env["UPDATE_MSW_SNAPSHOT"] === "1" || "missing"
, to me that's the desired behaviour. This makes more sense to me, same as snapshots in jest/vitest, if there's no snapshot - test will either create the snapshot (in dev mode) or fail (in CI mode). Under no circumstances test will just pass. But I guess it is different because we don't have assertions for snapshot in the first place... So just sharing my thoughts, I can kinda see that some might want it to silently fetch from the network.
Fixes #6
url.protocol
which can behttp:
orhttps:
, etc. Removing:
from it.url.hostname
- doesn't have schema with:
and doesn't have port with:
url.port || 'default-port'
because port isn't present inurl.hostname
Hopefully this makes sense, cheers!