planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

14
node_modules/apollo-utilities/src/util/stripSymbols.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* In order to make assertions easier, this function strips `symbol`'s from
* the incoming data.
*
* This can be handy when running tests against `apollo-client` for example,
* since it adds `symbol`'s to the data in the store. Jest's `toEqual`
* function now covers `symbol`'s (https://github.com/facebook/jest/pull/3437),
* which means all test data used in a `toEqual` comparison would also have to
* include `symbol`'s, to pass. By stripping `symbol`'s from the cache data
* we can compare against more simplified test data.
*/
export function stripSymbols<T>(data: T): T {
return JSON.parse(JSON.stringify(data));
}