Skip to content
Snippets Groups Projects
  • Konstantin Tsabolov's avatar
    67a6c1f1
    chore: reorganize attestation-manager · 67a6c1f1
    Konstantin Tsabolov authored
    * Upgraded the dependencies to the latest versions
    * Switched output to ESM format
    * Switched NestJS and Jest to SWC to improve speed of building and testing
    * Refactored TSConfig to remove tsconfig-paths
    * Updated imports in all files to reflect the change in TSConfig
    * Changed the linting rules (removed AirBnB config)
    * Fixed Prettier installation (added ignore file)
    * Fixed typing errors (mainly usage of any's)
    * Fixed the non-working E2E test
    
    P.S. None of the mentioned doesn't make sense alone, therefore a huge commit :shrug:
    chore: reorganize attestation-manager
    Konstantin Tsabolov authored
    * Upgraded the dependencies to the latest versions
    * Switched output to ESM format
    * Switched NestJS and Jest to SWC to improve speed of building and testing
    * Refactored TSConfig to remove tsconfig-paths
    * Updated imports in all files to reflect the change in TSConfig
    * Changed the linting rules (removed AirBnB config)
    * Fixed Prettier installation (added ignore file)
    * Fixed typing errors (mainly usage of any's)
    * Fixed the non-working E2E test
    
    P.S. None of the mentioned doesn't make sense alone, therefore a huge commit :shrug:
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
tsa.client.ts 462 B
import { TSAService } from '../../../common/constants.js';
import { PolicyReturnType } from '../../tsa.client.js';

const TSAClientServiceMock = jest.fn().mockReturnValue({
  getPolicy: jest.fn().mockImplementation((url: string) => {
    if (url.includes(TSAService.PRINCIPAL_CREDENTIAL_REQUEST)) {
      return {
        success: true,
        returnData: true,
      } as PolicyReturnType;
    }

    return {};
  }),
});

export default TSAClientServiceMock;