Skip to content
Snippets Groups Projects
Select Git revision
  • 5f1f104d65aae7464cc77832024dffb78d497cfe
  • main default protected
  • renovate/main-docs-renovate-renovate-41.x
  • renovate/main-ghcr.io-renovatebot-base-image-11.x
  • renovate/main-sindresorhus-is-7.x
  • renovate/main-renovatebot-detect-tools-1.x
  • refactor/pin-new-value
  • fix/user-agent
  • feat/37517-base64-private-key
  • next
  • feat/gnupg
  • fix/36615b-branch-reuse-no-cache
  • chore/punycode
  • feat/36219--git-x509-signing
  • feat/structured-logger
  • hotfix/39.264.1
  • feat/skip-dangling
  • gh-readonly-queue/next/pr-36034-7a061c4ca1024a19e2c295d773d9642625d1c2be
  • hotfix/39.238.3
  • refactor/gitlab-auto-approve
  • feat/template-strings
  • 41.122.3
  • 41.122.2
  • 41.122.1
  • 41.122.0
  • 41.121.4
  • 41.121.3
  • 41.121.2
  • 41.121.1
  • 41.121.0
  • 41.120.0
  • 41.119.6
  • 41.119.5
  • 41.119.4
  • 41.119.3
  • 41.119.2
  • 41.119.1
  • 41.119.0
  • 41.118.2
  • 41.118.1
  • 41.118.0
41 results

config.spec.ts

Blame
  • config.spec.ts 630 B
    import { GlobalConfig } from '../../config/global';
    import { simpleGitConfig } from './config';
    
    describe('util/git/config', () => {
      beforeEach(() => {
        GlobalConfig.reset();
      });
    
      it('uses "close" events, ignores "exit" events from child processes', () => {
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
        });
      });
    
      it('uses timeout value from GlobalConfig', () => {
        GlobalConfig.set({ gitTimeout: 50000 });
        expect(simpleGitConfig()).toEqual({
          completion: { onClose: true, onExit: false },
          timeout: {
            block: 50000,
          },
        });
      });
    });