utils.d.ts 1.2 KB

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. import { Config } from '@jest/types';
  8. export declare const SNAPSHOT_VERSION = "1";
  9. export declare const SNAPSHOT_GUIDE_LINK = "https://goo.gl/fbAQLP";
  10. export declare const SNAPSHOT_VERSION_WARNING: string;
  11. export declare const testNameToKey: (testName: string, count: number) => string;
  12. export declare const keyToTestName: (key: string) => string;
  13. export declare const getSnapshotData: (snapshotPath: string, update: Config.SnapshotUpdateState) => {
  14. data: Record<string, string>;
  15. dirty: boolean;
  16. };
  17. export declare const serialize: (data: string) => string;
  18. export declare const unescape: (data: string) => string;
  19. export declare const escapeBacktickString: (str: string) => string;
  20. export declare const ensureDirectoryExists: (filePath: string) => void;
  21. export declare const saveSnapshotFile: (snapshotData: Record<string, string>, snapshotPath: string) => void;
  22. export declare const deepMerge: (target: any, source: any) => any;
  23. //# sourceMappingURL=utils.d.ts.map