Skip to content

Commit

Permalink
fix(test-utils): don't try to check non-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Feb 3, 2022
1 parent 3489907 commit 4fb497e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-utils/expect/toMatchLogspySnapshot.js
Expand Up @@ -19,7 +19,7 @@ expect.extend({
}

const calls = spy.mock.calls.map((call) =>
call.map((arg) => (path.isAbsolute(arg) ?
call.map((arg) => (typeof arg === "string" && path.isAbsolute(arg) ?
relative([ arg ])[0] :
arg
))
Expand Down

0 comments on commit 4fb497e

Please sign in to comment.