cd works
npm i
npm t
The test passes
cd doesnt-work
npm i
npm t
The test crashes
See https://github.com/gjgd/minimal-cipher-jest-bug/actions for a demo of the bug in CI
From the Jest 25 changelog
The main changes are an upgrade of JSDOM from v11 to v15, 10-15% faster test runs, a new diff view for outdated snapshots and dropped Node 6 support.
So, it looks like minimal-cipher@1.4.0
breaks with JSDOM v15