Closed grishasergii closed 2 years ago
Assume that percy access token is invalid. Then running npx percy exec -- node .\tests\ui\snapshot.js yields something like this:
npx percy exec -- node .\tests\ui\snapshot.js
[percy] StatusCodeError 401 - {"errors":[{"status":"unauthorized","detail":"Invalid API token."}]} | Thu Aug 27 2020 15:46:13 GMT+0200 (GMT+02:00) [percy] stopping percy... [percy] waiting for 0 snapshots to complete... [percy] done. [percy] percy has started. [percy] stopping percy... [percy] waiting for 0 snapshots to complete... [percy] done.
And the exit code is 0. Why does percy report success and exit with 0 when api token is invalid?
Assume that percy access token is invalid. Then running
npx percy exec -- node .\tests\ui\snapshot.js
yields something like this:And the exit code is 0. Why does percy report success and exit with 0 when api token is invalid?