Skip to content

Commit

Permalink
ci: add logs for tests failing on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 16, 2022
1 parent e9e1396 commit 783f554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/youch.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test.group('Youch', () => {
youch
.toJSON()
.then(({ error }) => {
assert.equal(error.frames[0].filePath, __filename.replace(/\\/g, '/'))
assert.equal(error.frames[0].filePath, __filename)
assert.equal(error.frames[0].isNative, false)
done()
}).catch(done)
Expand All @@ -62,6 +62,8 @@ test.group('Youch', () => {
// there are many reasons why the filepath in the stack does not exist.
test('does not error on non-existing files', (assert, done) => {
const error = new Error('this is bar')
console.log(error.stack)
console.log(__dirname)
error.stack = error.stack.replace(__dirname, 'invalid-path')
const youch = new Youch(error, {})

Expand Down

0 comments on commit 783f554

Please sign in to comment.