chromatic
Version:
Automate visual testing across browsers. Gather UI feedback. Versioned documentation.
6 lines (4 loc) • 1.43 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="37ac6e55-3521-5e0d-b543-fa750102a09e")}catch(e){}}();
const e={OK:0,UNKNOWN_ERROR:255,BUILD_HAS_CHANGES:1,BUILD_HAS_ERRORS:2,BUILD_FAILED:3,BUILD_NO_STORIES:4,BUILD_WAS_LIMITED:5,BUILD_WAS_CANCELED:6,ACCOUNT_QUOTA_REACHED:11,ACCOUNT_PAYMENT_REQUIRED:12,STORYBOOK_BUILD_FAILED:21,STORYBOOK_START_FAILED:22,STORYBOOK_BROKEN:23,E2E_BUILD_FAILED:51,GIT_NOT_CLEAN:101,GIT_OUT_OF_DATE:102,GIT_NO_MERGE_BASE:103,NPM_INSTALL_FAILED:104,NPM_BUILD_STORYBOOK_FAILED:105,FETCH_ERROR:201,GRAPHQL_ERROR:202,MISSING_DEPENDENCY:210,VERIFICATION_TIMEOUT:220,INVALID_OPTIONS:254},t=(t,n,r=!1)=>{let[i]=Object.entries(e).find(([e,t])=>t===n)||[];if(!i)throw Error(`Invalid exitCode: ${n}`);t.exitCode=n,t.exitCodeKey=i,t.userError=r};var n=class extends Error{constructor(e,t){super(e),this.name=`TaskFailure`,this.exitCode=t.exitCode,this.userError=t.userError??!1}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
//# sourceMappingURL=setExitCode-BDUkPwrs.cjs.map
//# debugId=37ac6e55-3521-5e0d-b543-fa750102a09e