Jest snapshot test failing due to react navigation generated key
问题 My Jest test is failing because of the timestamp in the key being different every time the test is run: FAIL ./App.test.js ✕ renders without crashing (72ms) ● renders without crashing expect(value).toMatchSnapshot() Received value does not match stored snapshot 1. - Snapshot + Received @@ -347,11 +347,11 @@ "index": 0, "isTransitioning": false, "key": "StackRouterRoot", "routes": Array [ Object { - "key": "id-1519567169760-0", + "key": "id-1519567814666-0", "routeName": "Menu", }, ], }, }