We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9532b5 commit c62af25Copy full SHA for c62af25
src/main.test.js
@@ -1,7 +1,8 @@
1
import test from 'ava'
2
-import setErrorStack from 'set-error-stack'
3
import { each } from 'test-each'
4
+import setErrorStack from 'set-error-stack'
5
+
6
const setNewStack = (error, prefix = '') => {
7
setErrorStack(error, error.stack.replace('Error: one', `${prefix}Error: two`))
8
}
0 commit comments