You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__snapshots__/memorize.test.ts.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,9 @@ exports[`Test: nested APIs with functions throw an error when called unless mock
38
38
39
39
exports[`Test: resolves from disk on 2nd hit | Memorized Name: c | Call iteration: 0`] =`{"results":{"foo":"bar"}}`;
40
40
41
-
exports[`Test: thrown errors are replayed | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/development/slapshot/src/memorize.test.ts:321:19)\\\\n at Object.memorize (/Users/mattapperson/development/slapshot/src/memorize.ts:57:33)\\\\n at expect (/Users/mattapperson/development/slapshot/src/memorize.test.ts:320:9)\\\\n at Object.<anonymous> (/Users/mattapperson/development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/development/slapshot/src/memorize.test.ts:323:8\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/development/slapshot/src/memorize.test.ts:313:47)\\\\n at Object.asyncJestTest (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\"}"}`;
41
+
exports[`Test: thrown errors are replayed | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/development/slapshot/src/memorize.test.ts:331:19)\\\\n at Object.memorize (/Users/mattapperson/development/slapshot/src/memorize.ts:41:33)\\\\n at expect (/Users/mattapperson/development/slapshot/src/memorize.test.ts:330:9)\\\\n at Object.<anonymous> (/Users/mattapperson/development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/development/slapshot/src/memorize.test.ts:333:8\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/development/slapshot/src/memorize.test.ts:323:47)\\\\n at Object.asyncJestTest (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\"}"}`;
42
42
43
-
exports[`Test: thrown errors are replayed with custom properties | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/development/slapshot/src/memorize.test.ts:352:19)\\\\n at Object.memorize (/Users/mattapperson/development/slapshot/src/memorize.ts:57:33)\\\\n at expect (/Users/mattapperson/development/slapshot/src/memorize.test.ts:351:9)\\\\n at Object.<anonymous> (/Users/mattapperson/development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/development/slapshot/src/memorize.test.ts:354:8\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/development/slapshot/src/memorize.test.ts:336:70)\\\\n at Object.asyncJestTest (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\",\\"customProp\\":\\"bar\\"}"}`;
43
+
exports[`Test: thrown errors are replayed with custom properties | Memorized Name: error | Call iteration: 0`] = `{"results":null,"thrownError":"{\\"type\\":\\"Error\\",\\"message\\":\\"foo\\",\\"name\\":\\"Error\\",\\"stack\\":\\"Error: foo\\\\n at memorize_1.memorize (/Users/mattapperson/development/slapshot/src/memorize.test.ts:362:19)\\\\n at Object.memorize (/Users/mattapperson/development/slapshot/src/memorize.ts:41:33)\\\\n at expect (/Users/mattapperson/development/slapshot/src/memorize.test.ts:361:9)\\\\n at Object.<anonymous> (/Users/mattapperson/development/slapshot/node_modules/expect/build/toThrowMatchers.js:81:11)\\\\n at Object.throwingMatcher [as toThrowError] (/Users/mattapperson/development/slapshot/node_modules/expect/build/index.js:342:33)\\\\n at /Users/mattapperson/development/slapshot/src/memorize.test.ts:364:8\\\\n at Generator.next (<anonymous>)\\\\n at /Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:110:75\\\\n at new Promise (<anonymous>)\\\\n at Object.__awaiter (/Users/mattapperson/development/slapshot/node_modules/tslib/tslib.js:106:16)\\\\n at Object.<anonymous>.test (/Users/mattapperson/development/slapshot/src/memorize.test.ts:346:70)\\\\n at Object.asyncJestTest (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)\\\\n at resolve (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:43:12)\\\\n at new Promise (<anonymous>)\\\\n at mapper (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:26:19)\\\\n at promise.then (/Users/mattapperson/development/slapshot/node_modules/jest-jasmine2/build/queueRunner.js:73:41)\\",\\"customProp\\":\\"bar\\"}"}`;
44
44
45
45
exports[`Test: throws error of non-matching snap when validateSnapshot is set to true | Memorized Name: validateSnapshot | Call iteration: 0`] =`{"results":22,"thrownError":null}`;
0 commit comments