Exporting environment variables Exporting CI Exporting DISPLAY Exporting NODE_ENV Exporting PAGER Exporting SEMAPHORE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_GIT_BRANCH Exporting SEMAPHORE_GIT_COMMITTER Exporting SEMAPHORE_GIT_COMMIT_AUTHOR Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_PR_BRANCH Exporting SEMAPHORE_GIT_PR_NAME Exporting SEMAPHORE_GIT_PR_NUMBER Exporting SEMAPHORE_GIT_PR_SHA Exporting SEMAPHORE_GIT_PR_SLUG Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_REPO_NAME Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_WORKING_BRANCH Exporting SEMAPHORE_JOB_CREATION_TIME Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_MANUAL_RUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SSH_PRIVATE_KEY_PATH Exporting TERM Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting /home/semaphore/.ssh/id_rsa with file mode 0600 Running the pre-job hook configured in the agent Running: source /opt/semaphoreci/prejob/pre_job.sh Warning: The agent is configured to fail the job if the pre-job hook fails. Installing toolbox in pre-job-hook Toolbox download URL: http://packages.semaphoreci.com/toolbox/releases/download/v1.21.7/linux.tar Tar file: linux.tar Attempt 5 toolbox/ toolbox/README.md toolbox/spc toolbox/sem-service-check-params toolbox/retry toolbox/sem-context toolbox/sem-semantic-release toolbox/libcheckout toolbox/sem-dockerize toolbox/enetwork toolbox/when toolbox/sem-service toolbox/sem-install toolbox/ssh-session-cli toolbox/sem-version toolbox/libchecksum toolbox/Dockerfile.dev toolbox/cache toolbox/test-results toolbox/install-package toolbox/toolbox toolbox/system-metrics-collector toolbox/install-toolbox toolbox/artifact retry installed ssh-session-cli installed cache installed sem-context installed sem-service installed sem-dockerize installed sem-service-check-params installed sem-semantic-release installed Installing the artifacts CLI artifacts installed Installing the test results CLI test-results installed Installing the install-package for linux install-package installed Installing the SPC CLI spc installed Installing the when CLI when installed Installing the enetwork CLI enetwork installed Starting to collect System Metrics in /tmp/system-metrics Starting virtual X frame buffer: Xvfb. Toolbox installed Starting ssh-agent Agent pid 2581 ssh-agent started Connecting to cache # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 Identity added: /home/semaphore/.ssh/semaphore_cache_key (/home/semaphore/.ssh/semaphore_cache_key) checkout Cloning into 'workos-node'... Warning: Permanently added 'github.com,140.82.121.3' (ECDSA) to the list of known hosts. remote: Enumerating objects: 688, done. remote: Counting objects: 0% (1/688) remote: Counting objects: 1% (7/688) remote: Counting objects: 2% (14/688) remote: Counting objects: 3% (21/688) remote: Counting objects: 4% (28/688) remote: Counting objects: 5% (35/688) remote: Counting objects: 6% (42/688) remote: Counting objects: 7% (49/688) remote: Counting objects: 8% (56/688) remote: Counting objects: 9% (62/688) remote: Counting objects: 10% (69/688) remote: Counting objects: 11% (76/688) remote: Counting objects: 12% (83/688) remote: Counting objects: 13% (90/688) remote: Counting objects: 14% (97/688) remote: Counting objects: 15% (104/688) remote: Counting objects: 16% (111/688) remote: Counting objects: 17% (117/688) remote: Counting objects: 18% (124/688) remote: Counting objects: 19% (131/688) remote: Counting objects: 20% (138/688) remote: Counting objects: 21% (145/688) remote: Counting objects: 22% (152/688) remote: Counting objects: 23% (159/688) remote: Counting objects: 24% (166/688) remote: Counting objects: 25% (172/688) remote: Counting objects: 26% (179/688) remote: Counting objects: 27% (186/688) remote: Counting objects: 28% (193/688) remote: Counting objects: 29% (200/688) remote: Counting objects: 30% (207/688) remote: Counting objects: 31% (214/688) remote: Counting objects: 32% (221/688) remote: Counting objects: 33% (228/688) remote: Counting objects: 34% (234/688) remote: Counting objects: 35% (241/688) remote: Counting objects: 36% (248/688) remote: Counting objects: 37% (255/688) remote: Counting objects: 38% (262/688) remote: Counting objects: 39% (269/688) remote: Counting objects: 40% (276/688) remote: Counting objects: 41% (283/688) remote: Counting objects: 42% (289/688) remote: Counting objects: 43% (296/688) remote: Counting objects: 44% (303/688) remote: Counting objects: 45% (310/688) remote: Counting objects: 46% (317/688) remote: Counting objects: 47% (324/688) remote: Counting objects: 48% (331/688) remote: Counting objects: 49% (338/688) remote: Counting objects: 50% (344/688) remote: Counting objects: 51% (351/688) remote: Counting objects: 52% (358/688) remote: Counting objects: 53% (365/688) remote: Counting objects: 54% (372/688) remote: Counting objects: 55% (379/688) remote: Counting objects: 56% (386/688) remote: Counting objects: 57% (393/688) remote: Counting objects: 58% (400/688) remote: Counting objects: 59% (406/688) remote: Counting objects: 60% (413/688) remote: Counting objects: 61% (420/688) remote: Counting objects: 62% (427/688) remote: Counting objects: 63% (434/688) remote: Counting objects: 64% (441/688) remote: Counting objects: 65% (448/688) remote: Counting objects: 66% (455/688) remote: Counting objects: 67% (461/688) remote: Counting objects: 68% (468/688) remote: Counting objects: 69% (475/688) remote: Counting objects: 70% (482/688) remote: Counting objects: 71% (489/688) remote: Counting objects: 72% (496/688) remote: Counting objects: 73% (503/688) remote: Counting objects: 74% (510/688) remote: Counting objects: 75% (516/688) remote: Counting objects: 76% (523/688) remote: Counting objects: 77% (530/688) remote: Counting objects: 78% (537/688) remote: Counting objects: 79% (544/688) remote: Counting objects: 80% (551/688) remote: Counting objects: 81% (558/688) remote: Counting objects: 82% (565/688) remote: Counting objects: 83% (572/688) remote: Counting objects: 84% (578/688) remote: Counting objects: 85% (585/688) remote: Counting objects: 86% (592/688) remote: Counting objects: 87% (599/688) remote: Counting objects: 88% (606/688) remote: Counting objects: 89% (613/688) remote: Counting objects: 90% (620/688) remote: Counting objects: 91% (627/688) remote: Counting objects: 92% (633/688) remote: Counting objects: 93% (640/688) remote: Counting objects: 94% (647/688) remote: Counting objects: 95% (654/688) remote: Counting objects: 96% (661/688) remote: Counting objects: 97% (668/688) remote: Counting objects: 98% (675/688) remote: Counting objects: 99% (682/688) remote: Counting objects: 100% (688/688) remote: Counting objects: 100% (688/688), done. remote: Compressing objects: 0% (1/459) remote: Compressing objects: 1% (5/459) remote: Compressing objects: 2% (10/459) remote: Compressing objects: 3% (14/459) remote: Compressing objects: 4% (19/459) remote: Compressing objects: 5% (23/459) remote: Compressing objects: 6% (28/459) remote: Compressing objects: 7% (33/459) remote: Compressing objects: 8% (37/459) remote: Compressing objects: 9% (42/459) remote: Compressing objects: 10% (46/459) remote: Compressing objects: 11% (51/459) remote: Compressing objects: 12% (56/459) remote: Compressing objects: 13% (60/459) remote: Compressing objects: 14% (65/459) remote: Compressing objects: 15% (69/459) remote: Compressing objects: 16% (74/459) remote: Compressing objects: 17% (79/459) remote: Compressing objects: 18% (83/459) remote: Compressing objects: 19% (88/459) remote: Compressing objects: 20% (92/459) remote: Compressing objects: 21% (97/459) remote: Compressing objects: 22% (101/459) remote: Compressing objects: 23% (106/459) remote: Compressing objects: 24% (111/459) remote: Compressing objects: 25% (115/459) remote: Compressing objects: 26% (120/459) remote: Compressing objects: 27% (124/459) remote: Compressing objects: 28% (129/459) remote: Compressing objects: 29% (134/459) remote: Compressing objects: 30% (138/459) remote: Compressing objects: 31% (143/459) remote: Compressing objects: 32% (147/459) remote: Compressing objects: 33% (152/459) remote: Compressing objects: 34% (157/459) remote: Compressing objects: 35% (161/459) remote: Compressing objects: 36% (166/459) remote: Compressing objects: 37% (170/459) remote: Compressing objects: 38% (175/459) remote: Compressing objects: 39% (180/459) remote: Compressing objects: 40% (184/459) remote: Compressing objects: 41% (189/459) remote: Compressing objects: 42% (193/459) remote: Compressing objects: 43% (198/459) remote: Compressing objects: 44% (202/459) remote: Compressing objects: 45% (207/459) remote: Compressing objects: 46% (212/459) remote: Compressing objects: 47% (216/459) remote: Compressing objects: 48% (221/459) remote: Compressing objects: 49% (225/459) remote: Compressing objects: 50% (230/459) remote: Compressing objects: 51% (235/459) remote: Compressing objects: 52% (239/459) remote: Compressing objects: 53% (244/459) remote: Compressing objects: 54% (248/459) remote: Compressing objects: 55% (253/459) remote: Compressing objects: 56% (258/459) remote: Compressing objects: 57% (262/459) remote: Compressing objects: 58% (267/459) remote: Compressing objects: 59% (271/459) remote: Compressing objects: 60% (276/459) remote: Compressing objects: 61% (280/459) remote: Compressing objects: 62% (285/459) remote: Compressing objects: 63% (290/459) remote: Compressing objects: 64% (294/459) remote: Compressing objects: 65% (299/459) remote: Compressing objects: 66% (303/459) remote: Compressing objects: 67% (308/459) remote: Compressing objects: 68% (313/459) remote: Compressing objects: 69% (317/459) remote: Compressing objects: 70% (322/459) remote: Compressing objects: 71% (326/459) remote: Compressing objects: 72% (331/459) remote: Compressing objects: 73% (336/459) remote: Compressing objects: 74% (340/459) remote: Compressing objects: 75% (345/459) remote: Compressing objects: 76% (349/459) remote: Compressing objects: 77% (354/459) remote: Compressing objects: 78% (359/459) remote: Compressing objects: 79% (363/459) remote: Compressing objects: 80% (368/459) remote: Compressing objects: 81% (372/459) remote: Compressing objects: 82% (377/459) remote: Compressing objects: 83% (381/459) remote: Compressing objects: 84% (386/459) remote: Compressing objects: 85% (391/459) remote: Compressing objects: 86% (395/459) remote: Compressing objects: 87% (400/459) remote: Compressing objects: 88% (404/459) remote: Compressing objects: 89% (409/459) remote: Compressing objects: 90% (414/459) remote: Compressing objects: 91% (418/459) remote: Compressing objects: 92% (423/459) remote: Compressing objects: 93% (427/459) remote: Compressing objects: 94% (432/459) remote: Compressing objects: 95% (437/459) remote: Compressing objects: 96% (441/459) remote: Compressing objects: 97% (446/459) remote: Compressing objects: 98% (450/459) remote: Compressing objects: 99% (455/459) remote: Compressing objects: 100% (459/459) remote: Compressing objects: 100% (459/459), done. Receiving objects: 0% (1/688) Receiving objects: 1% (7/688) Receiving objects: 2% (14/688) Receiving objects: 3% (21/688) Receiving objects: 4% (28/688) Receiving objects: 5% (35/688) Receiving objects: 6% (42/688) Receiving objects: 7% (49/688) Receiving objects: 8% (56/688) Receiving objects: 9% (62/688) Receiving objects: 10% (69/688) Receiving objects: 11% (76/688) Receiving objects: 12% (83/688) Receiving objects: 13% (90/688) Receiving objects: 14% (97/688) Receiving objects: 15% (104/688) Receiving objects: 16% (111/688) Receiving objects: 17% (117/688) Receiving objects: 18% (124/688) Receiving objects: 19% (131/688) Receiving objects: 20% (138/688) Receiving objects: 21% (145/688) Receiving objects: 22% (152/688) Receiving objects: 23% (159/688) Receiving objects: 24% (166/688) Receiving objects: 25% (172/688) Receiving objects: 26% (179/688) Receiving objects: 27% (186/688) Receiving objects: 28% (193/688) Receiving objects: 29% (200/688) Receiving objects: 30% (207/688) Receiving objects: 31% (214/688) Receiving objects: 32% (221/688) Receiving objects: 33% (228/688) Receiving objects: 34% (234/688) Receiving objects: 35% (241/688) Receiving objects: 36% (248/688) Receiving objects: 37% (255/688) Receiving objects: 38% (262/688) Receiving objects: 39% (269/688) Receiving objects: 40% (276/688) Receiving objects: 41% (283/688) Receiving objects: 42% (289/688) Receiving objects: 43% (296/688) Receiving objects: 44% (303/688) Receiving objects: 45% (310/688) Receiving objects: 46% (317/688) Receiving objects: 47% (324/688) Receiving objects: 48% (331/688) Receiving objects: 49% (338/688) Receiving objects: 50% (344/688) Receiving objects: 51% (351/688) Receiving objects: 52% (358/688) Receiving objects: 53% (365/688) Receiving objects: 54% (372/688) Receiving objects: 55% (379/688) Receiving objects: 56% (386/688) Receiving objects: 57% (393/688) Receiving objects: 58% (400/688) Receiving objects: 59% (406/688) Receiving objects: 60% (413/688) Receiving objects: 61% (420/688) Receiving objects: 62% (427/688) Receiving objects: 63% (434/688) Receiving objects: 64% (441/688) Receiving objects: 65% (448/688) Receiving objects: 66% (455/688) Receiving objects: 67% (461/688) Receiving objects: 68% (468/688) Receiving objects: 69% (475/688) Receiving objects: 70% (482/688) Receiving objects: 71% (489/688) Receiving objects: 72% (496/688) Receiving objects: 73% (503/688) Receiving objects: 74% (510/688) Receiving objects: 75% (516/688) Receiving objects: 76% (523/688) Receiving objects: 77% (530/688) Receiving objects: 78% (537/688) Receiving objects: 79% (544/688) Receiving objects: 80% (551/688) Receiving objects: 81% (558/688) Receiving objects: 82% (565/688) Receiving objects: 83% (572/688) Receiving objects: 84% (578/688) Receiving objects: 85% (585/688) Receiving objects: 86% (592/688) Receiving objects: 87% (599/688) Receiving objects: 88% (606/688) Receiving objects: 89% (613/688) remote: Total 688 (delta 357), reused 449 (delta 210), pack-reused 0 Receiving objects: 90% (620/688) Receiving objects: 91% (627/688) Receiving objects: 92% (633/688) Receiving objects: 93% (640/688) Receiving objects: 94% (647/688) Receiving objects: 95% (654/688) Receiving objects: 96% (661/688) Receiving objects: 97% (668/688) Receiving objects: 98% (675/688) Receiving objects: 99% (682/688) Receiving objects: 100% (688/688) Receiving objects: 100% (688/688), 184.45 KiB | 1.01 MiB/s, done. Resolving deltas: 0% (0/357) Resolving deltas: 1% (4/357) Resolving deltas: 2% (8/357) Resolving deltas: 3% (11/357) Resolving deltas: 4% (15/357) Resolving deltas: 5% (18/357) Resolving deltas: 6% (22/357) Resolving deltas: 7% (25/357) Resolving deltas: 8% (29/357) Resolving deltas: 9% (33/357) Resolving deltas: 10% (36/357) Resolving deltas: 11% (40/357) Resolving deltas: 12% (43/357) Resolving deltas: 13% (47/357) Resolving deltas: 14% (50/357) Resolving deltas: 15% (54/357) Resolving deltas: 16% (58/357) Resolving deltas: 17% (61/357) Resolving deltas: 18% (65/357) Resolving deltas: 19% (68/357) Resolving deltas: 20% (72/357) Resolving deltas: 21% (75/357) Resolving deltas: 22% (79/357) Resolving deltas: 23% (83/357) Resolving deltas: 24% (86/357) Resolving deltas: 25% (90/357) Resolving deltas: 26% (93/357) Resolving deltas: 27% (97/357) Resolving deltas: 28% (100/357) Resolving deltas: 29% (104/357) Resolving deltas: 30% (108/357) Resolving deltas: 31% (111/357) Resolving deltas: 32% (115/357) Resolving deltas: 33% (118/357) Resolving deltas: 34% (122/357) Resolving deltas: 35% (125/357) Resolving deltas: 36% (129/357) Resolving deltas: 37% (133/357) Resolving deltas: 38% (136/357) Resolving deltas: 39% (140/357) Resolving deltas: 40% (143/357) Resolving deltas: 41% (147/357) Resolving deltas: 42% (150/357) Resolving deltas: 43% (154/357) Resolving deltas: 44% (158/357) Resolving deltas: 45% (161/357) Resolving deltas: 46% (165/357) Resolving deltas: 47% (168/357) Resolving deltas: 48% (172/357) Resolving deltas: 49% (175/357) Resolving deltas: 50% (179/357) Resolving deltas: 51% (183/357) Resolving deltas: 52% (186/357) Resolving deltas: 53% (190/357) Resolving deltas: 54% (193/357) Resolving deltas: 55% (197/357) Resolving deltas: 56% (200/357) Resolving deltas: 57% (204/357) Resolving deltas: 58% (208/357) Resolving deltas: 59% (211/357) Resolving deltas: 60% (215/357) Resolving deltas: 61% (218/357) Resolving deltas: 62% (222/357) Resolving deltas: 63% (225/357) Resolving deltas: 64% (229/357) Resolving deltas: 65% (233/357) Resolving deltas: 66% (236/357) Resolving deltas: 67% (240/357) Resolving deltas: 68% (243/357) Resolving deltas: 69% (247/357) Resolving deltas: 70% (250/357) Resolving deltas: 71% (254/357) Resolving deltas: 72% (258/357) Resolving deltas: 73% (261/357) Resolving deltas: 74% (265/357) Resolving deltas: 75% (268/357) Resolving deltas: 76% (272/357) Resolving deltas: 77% (275/357) Resolving deltas: 78% (279/357) Resolving deltas: 79% (283/357) Resolving deltas: 80% (286/357) Resolving deltas: 81% (290/357) Resolving deltas: 82% (294/357) Resolving deltas: 83% (297/357) Resolving deltas: 84% (300/357) Resolving deltas: 85% (304/357) Resolving deltas: 86% (308/357) Resolving deltas: 87% (311/357) Resolving deltas: 88% (315/357) Resolving deltas: 89% (318/357) Resolving deltas: 90% (322/357) Resolving deltas: 91% (325/357) Resolving deltas: 92% (329/357) Resolving deltas: 93% (333/357) Resolving deltas: 94% (336/357) Resolving deltas: 95% (340/357) Resolving deltas: 96% (343/357) Resolving deltas: 97% (347/357) Resolving deltas: 98% (350/357) Resolving deltas: 99% (354/357) Resolving deltas: 100% (357/357) Resolving deltas: 100% (357/357), done. HEAD is now at 5a5d2901b9a2aa724a8972ca631d79f9018e1e98 nvm install Found '/home/semaphore/workos-node/.nvmrc' with version <14.21.3> Downloading and installing node v14.21.3... Downloading https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.xz... 0.9% ################### 26.4% ######################################## 56.3% ############################################################# 86.1% ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! Now using node v14.21.3 (npm v6.14.18) nvm use Found '/home/semaphore/workos-node/.nvmrc' with version <14.21.3> Now using node v14.21.3 (npm v6.14.18) bash ~/workos-node/bin/restore-or-install HIT: 'node-modules-95893cc594eebd3e4d57cd2182fae007', using key 'node-modules-95893cc594eebd3e4d57cd2182fae007'. Downloading key 'node-modules-95893cc594eebd3e4d57cd2182fae007'... Download complete. Duration: 535.888688ms. Size: 19.8M bytes. Unpacking '/tmp/node-modules-95893cc594eebd3e4d57cd2182fae007-1293076475'... Unpack complete. Duration: 3.84479472s. Restored: ./node_modules/. yarn test yarn run v1.22.19 $ jest PASS src/user-management/user-management.spec.ts (25.528 s) UserManagement getUser ✓ sends a Get User request (45 ms) listUsers ✓ lists users (12 ms) ✓ sends the correct params when filtering (9 ms) createUser ✓ sends a Create User request (9 ms) authenticateUserWithMagicAuth ✓ sends a magic auth authentication request (7 ms) authenticateUserWithPassword ✓ sends an password authentication request (6 ms) authenticateUserWithCode ✓ sends a token authentication request (9 ms) authenticateUserWithTotp ✓ sends a token authentication request (9 ms) authenticateUserWithEmailVerification ✓ sends an email verification authentication request (10 ms) authenticateWithOrganizationSelection ✓ sends an Organization Selection Authentication request (26 ms) sendVerificationEmail ✓ sends a Create Email Verification Challenge request (7 ms) verifyEmail ✓ sends a Complete Email Verification request (7 ms) sendMagicAuthCode ✓ sends a Send Magic Auth Code request (12 ms) sendPasswordResetEmail ✓ sends a Send Password Reset Email request (5 ms) resetPassword ✓ sends a Reset Password request (6 ms) updateUser ✓ sends a updateUser request (8 ms) when only one property is provided ✓ sends a updateUser request (6 ms) enrollAuthFactor ✓ sends an enrollAuthFactor request (4 ms) listAuthFactors ✓ sends a listAuthFactors request (4 ms) deleteUser ✓ sends a deleteUser request (2 ms) getOrganizationMembership ✓ sends a Get OrganizationMembership request (3 ms) listOrganizationMemberships ✓ lists organization memberships (4 ms) ✓ sends the correct params when filtering (3 ms) createOrganizationMembership ✓ sends a create organization membership request (3 ms) deleteOrganizationMembership ✓ sends a deleteOrganizationMembership request (2 ms) getInvitation ✓ sends a Get Invitation request (3 ms) listInvitations ✓ lists invitations (5 ms) ✓ sends the correct params when filtering (4 ms) sendInvitation ✓ sends a Send Invitation request (4 ms) ✓ sends the correct params when provided (3 ms) revokeInvitation ✓ send a Revoke Invitation request (3 ms) getAuthorizationUrl with no custom api hostname ✓ generates an authorize url with the default api hostname (8 ms) with no domain or provider ✓ throws an error for incomplete arguments (3 ms) with a provider ✓ generates an authorize url with the provider (2 ms) with a connectionId ✓ generates an authorize url with the connection (2 ms) with an organizationId ✓ generates an authorization URL with the organization (2 ms) with a custom api hostname ✓ generates an authorize url with the custom api hostname (4 ms) with state ✓ generates an authorize url with the provided state (4 ms) with domainHint ✓ generates an authorize url with the provided domain hint (4 ms) with loginHint ✓ generates an authorize url with the provided login hint (4 ms) PASS src/mfa/mfa.spec.ts MFA getFactor ✓ returns the requested factor (12 ms) deleteFactor ✓ sends request to delete a Factor (6 ms) enrollFactor with generic ✓ enrolls a factor with generic type (7 ms) with totp ✓ enrolls a factor with totp type (7 ms) with sms ✓ enrolls a factor with sms type (6 ms) when phone number is invalid ✓ throws an exception (654 ms) challengeFactor with no sms template ✓ challenge a factor with no sms template (45 ms) with sms template ✓ challenge a factor with sms template (5 ms) verifyChallenge verify with successful response ✓ verifies a successful factor (6 ms) when the challenge has been previously verified ✓ throws an exception (15 ms) when the challenge has expired ✓ throws an exception (22 ms) ✓ exception has code (23 ms) (node:3735) WorkOS: The `domain` parameter for `getAuthorizationURL` is deprecated. Please use `organization` instead. (Use `node --trace-warnings ...` to show where the warning was created) (node:3735) WorkOS: The `domain` parameter for `getAuthorizationURL` is deprecated. Please use `organization` instead. (node:3735) WorkOS: The `domain` parameter for `getAuthorizationURL` is deprecated. Please use `organization` instead. PASS src/sso/sso.spec.ts SSO SSO getAuthorizationUrl with no custom api hostname ✓ generates an authorize url with the default api hostname (7 ms) with no domain or provider ✓ throws an error for incomplete arguments (4 ms) with a provider ✓ generates an authorize url with the provider (3 ms) with a connection ✓ generates an authorize url with the connection (2 ms) with an `organization` ✓ generates an authorization URL with the organization (3 ms) with a custom api hostname ✓ generates an authorize url with the custom api hostname (4 ms) with state ✓ generates an authorize url with the provided state (4 ms) with domainHint ✓ generates an authorize url with the provided domain hint (4 ms) with loginHint ✓ generates an authorize url with the provided login hint (4 ms) getProfileAndToken with all information provided ✓ sends a request to the WorkOS api for a profile (24 ms) without a groups attribute ✓ sends a request to the WorkOS api for a profile (10 ms) getProfile ✓ calls the `/sso/profile` endpoint with the provided access token (6 ms) deleteConnection ✓ sends request to delete a Connection (5 ms) getConnection ✓ requests a Connection (7 ms) listConnections ✓ requests a list of Connections (8 ms) PASS src/directory-sync/directory-sync.spec.ts DirectorySync listDirectories with options ✓ requests Directories with query parameters (12 ms) getDirectory ✓ requests a Directory (6 ms) deleteDirectory ✓ sends a request to delete the directory (5 ms) getGroup ✓ requests a Directory Group (6 ms) listGroups with a Directory ✓ requests a Directory's Groups (6 ms) with a User ✓ requests a Directory's Groups (5 ms) listUsers with a Directory ✓ requests a Directory's Users (7 ms) with custom attributes ✓ returns the custom attributes, using the provided type (6 ms) with a Group ✓ requests a Directory's Users (6 ms) getUser ✓ requests a Directory User (6 ms) PASS src/audit-logs/audit-logs.spec.ts AuditLogs createEvent with an idempotency key ✓ includes an idempotency key with request (20 ms) when the api responds with a 200 ✓ returns void (7 ms) when the api responds with a 401 ✓ throws an UnauthorizedException (109 ms) when the api responds with a 400 ✓ throws an BadRequestException (9 ms) createExport when the api responds with a 201 ✓ returns `audit_log_export` (31 ms) when additional filters are defined ✓ returns `audit_log_export` (7 ms) when the api responds with a 401 ✓ throws an UnauthorizedException (6 ms) getExport when the api responds with a 201 ✓ returns `audit_log_export` (5 ms) when the api responds with a 401 ✓ throws an UnauthorizedException (9 ms) PASS src/organizations/organizations.spec.ts Organizations listOrganizations without any options ✓ returns organizations and metadata (13 ms) with the domain option ✓ forms the proper request to the API (7 ms) with the before option ✓ forms the proper request to the API (7 ms) with the after option ✓ forms the proper request to the API (7 ms) with the limit option ✓ forms the proper request to the API (7 ms) createOrganization with an idempotency key ✓ includes an idempotency key with request (6 ms) with a valid payload ✓ creates an organization (6 ms) with an invalid payload ✓ returns an error (653 ms) getOrganization ✓ requests an Organization (11 ms) deleteOrganization ✓ sends request to delete an Organization (6 ms) updateOrganization with a valid payload ✓ updates an organization (12 ms) PASS src/webhooks/webhooks.spec.ts Webhooks constructEvent with the correct payload, sig_header, and secret ✓ returns a webhook event (16 ms) with the correct payload, sig_header, secret, and tolerance ✓ returns a webhook event (40 ms) with an empty header ✓ raises an error (126 ms) with an empty signature hash ✓ raises an error (9 ms) with an incorrect signature hash ✓ raises an error (9 ms) with an incorrect payload ✓ raises an error (9 ms) with an incorrect webhook secret ✓ raises an error (6 ms) with a timestamp outside tolerance ✓ raises an error (5 ms) verifyHeader ✓ returns true when the signature is valid (2 ms) getTimestampAndSignatureHash ✓ returns the timestamp and signature when the signature is valid (2 ms) computeSignature ✓ returns the computed signature (2 ms) PASS src/workos.spec.ts WorkOS constructor when no API key is provided ✓ throws a NoApiKeyFoundException error (59 ms) when API key is provided with environment variable ✓ initializes (4 ms) when API key is provided with constructor ✓ initializes (3 ms) with https option ✓ sets baseURL (3 ms) with apiHostname option ✓ sets baseURL (2 ms) with port option ✓ sets baseURL (3 ms) when the `axios` option is provided ✓ applies the configuration to the Axios client (6 ms) version ✓ matches the version in `package.json` (5 ms) post when the api responds with a 404 ✓ throws a NotFoundException (301 ms) ✓ preserves the error code, status, and message from the underlying response (11 ms) ✓ includes the path in the message if there is no message in the response (12 ms) when the api responds with a 500 and no error/error_description ✓ throws an GenericServerException (11 ms) when the api responds with a 400 and an error/error_description ✓ throws an OauthException (11 ms) PASS src/portal/portal.spec.ts Portal generateLink with a valid organization with the sso intent ✓ returns an Admin Portal link (7 ms) with the domain_verification intent ✓ returns an Admin Portal link (3 ms) with the dsync intent ✓ returns an Admin Portal link (2 ms) with the `audit_logs` intent ✓ returns an Admin Portal link (3 ms) with the `log_streams` intent ✓ returns an Admin Portal link (3 ms) with an invalid organization ✓ throws an error (753 ms) PASS src/organization-domains/organization-domains.spec.ts OrganizationDomains get ✓ requests an Organization Domain (18 ms) ✓ requests an Organization Domain (12 ms) verify ✓ start Organization Domain verification flow (13 ms) create ✓ creates an Organization Domain (15 ms) PASS src/events/events.spec.ts Event listEvents ✓ requests Events (12 ms) ✓ requests Events with a valid event name (6 ms) PASS src/passwordless/passwordless.spec.ts Passwordless createSession with valid options ✓ creates a passwordless session (15 ms) sendEmail with a valid session id ✓ sends a request to send a magic link email (6 ms) PASS src/directory-sync/utils/get-primary-email.spec.ts getPrimaryEmail ✓ returns primary email value (4 ms) Test Suites: 13 passed, 13 total Tests: 136 passed, 136 total Snapshots: 24 passed, 24 total Time: 46.28 s Ran all test suites. Done in 49.74s. Exporting environment variables Exporting SEMAPHORE_JOB_RESULT