Skip to content

Commit

Permalink
chore: make snapshot snapshottable
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed May 14, 2020
1 parent 3178970 commit 0a47cd8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/packages/engine-core/src/__tests__/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ describe('QueryEngineErrorWithLink', () => {
version: '1.2.3',
description: 'This is some crazy description',
})
expect(stripAnsi(error.message)).toMatchInlineSnapshot(`
expect(
stripAnsi(error.message).replace(
/v\d{1,2}\.\d{1,2}\.\d{1,2}/,
'NODE_VERSION',
),
).toMatchInlineSnapshot(`
"This is a title
This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
If you want the Prisma team to look into it, please cmd+click on the link below
and press the \\"Submit new issue\\" button 🙏
https://github.com/prisma/prisma-client-js/issues/new?body=Hi+Prisma+Team%21+My+Prisma+Client+just+crashed.+This+is+the+report%3A%0A%23%23+Versions%0A%0A%7C+Name+++++%7C+Version++++++++++++%7C%0A%7C----------%7C--------------------%7C%0A%7C+Node+++++%7C+v12.16.3+++++++++++%7C+%0A%7C+OS+++++++%7C+darwin+++++++++++++%7C%0A%7C+Prisma+++%7C+1.2.3++++++++++++++%7C%0A%0A%23%23+Logs%0A%60%60%60%0A++test-namespace+hello++%2B0ms%0A%60%60%60%0A%23+Description%0AThis+is+some+crazy+description&title=This+is+a+title&template=bug_report.md"
https://github.com/prisma/prisma-client-js/issues/new?body=Hi+Prisma+Team%21+My+Prisma+Client+just+crashed.+This+is+the+report%3A%0A%23%23+Versions%0A%0A%7C+Name+++++%7C+Version++++++++++++%7C%0A%7C----------%7C--------------------%7C%0A%7C+Node+++++%7C+NODE_VERSION+++++++++++%7C+%0A%7C+OS+++++++%7C+darwin+++++++++++++%7C%0A%7C+Prisma+++%7C+1.2.3++++++++++++++%7C%0A%0A%23%23+Logs%0A%60%60%60%0A++test-namespace+hello++%2B0ms%0A%60%60%60%0A%23+Description%0AThis+is+some+crazy+description&title=This+is+a+title&template=bug_report.md"
`)
})
})

0 comments on commit 0a47cd8

Please sign in to comment.