Closed merceyz closed 7 months ago
I wonder if this approach will not introduce a conflict-hell, if virtually all PRs will touch the same binary file.
Yeah, that's the downside of this approach, any new nock will cause a conflict. However since nocks can be re-used between tests it's possible the nock is already in the database. If it becomes too much we can always add some automation to handle it.
Storing the nocks in a SQLite database enables easily sharing nocks between tests run in different processes in parallel.
This reduces the storage space needed for the nocks:
It avoids the
v8.serialize
/v8.deserialize
issues encountered in https://github.com/nodejs/corepack/pull/365.The database is portable so the version of Node.js used to generate it doesn't matter.