Skip to content

Commit e44325d

Browse files
rogeliogSimenB
authored andcommitted
Fix typo when adding inline snapshot (#6656)
1 parent 7a0b1d7 commit e44325d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/jest-snapshot/src/State.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export default class SnapshotState {
9393
const lines = getStackTraceLines(error.stack);
9494
const frame = getTopFrame(lines);
9595
if (!frame) {
96-
throw new Error("Jest: Couln't infer stack frame for inline snapshot.");
96+
throw new Error(
97+
"Jest: Couldn't infer stack frame for inline snapshot.",
98+
);
9799
}
98100
this._inlineSnapshots.push({
99101
frame,

0 commit comments

Comments
 (0)