Skip to content

Commit bf40f27

Browse files
fix(snapshot): make snapshot testing work in Jasmine
1 parent f6d8c04 commit bf40f27

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/matchers/snapshot.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ export function toMatchInlineSnapshot(received: unknown, inlineSnapshot: string,
153153
line.includes('__EXTERNAL_MATCHER_TRAP__') ||
154154
line.includes(`expect-webdriverio${path.sep}lib${path.sep}matchers${path.sep}snapshot.js:`)
155155
)
156+
)).filter((line) => (
157+
/**
158+
* remove jasmine-core stack trace to make it work with jasmine
159+
*/
160+
!line.includes('node_modules/jasmine-core/')
156161
)) || []
157162

158163
/**

0 commit comments

Comments
 (0)