Skip to content

Refactor: Saas Connector template#227

Open
ErKiran wants to merge 1 commit into
sailpoint-oss:mainfrom
ErKiran:main
Open

Refactor: Saas Connector template#227
ErKiran wants to merge 1 commit into
sailpoint-oss:mainfrom
ErKiran:main

Conversation

@ErKiran
Copy link
Copy Markdown

@ErKiran ErKiran commented May 23, 2026

Used a types for node and jest, included jest config for test

Added getOAuth2AccessToken() mock method to compile the test cases

Description

What is the intent of this change and why is it being made?

This PR updates the default SailPoint SaaS connector template to compile and run tests cleanly in a local TypeScript/Jest development environment.

Changes made:

  • Added Node and Jest type support so TypeScript can recognize node, describe, it, and expect.
  • Added Jest configuration for running TypeScript test files through ts-jest.
  • Added the required getOAuth2AccessToken() mock method to the test Context object so the generated test cases compile against the current SailPoint Connector SDK interface.

How Has This Been Tested?

What testing have you done to verify this change?

I verified the change by compiling the Go binary, using it to generate a new SaaS connector project, and then running the generated connector test suite with npm test.

The test confirmed that the generated connector template now compiles successfully, the TypeScript/Jest setup works correctly, and the default connector unit tests pass after adding the required getOAuth2AccessToken() mock method to the SailPoint SDK Context object.

The successful npm test output has been attached as evidence.
Screenshot 2026-05-23 at 08 52 08

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 23, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Kiran Adhikari seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Used a types for node and jest, included jest config for test
Added getOAuth2AccessToken() mock method to compile the test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants