jest-serializer

  • Version 27.0.6
  • Published
  • 7.06 kB
  • 2 dependencies
  • MIT license

Install

npm i jest-serializer
yarn add jest-serializer
pnpm add jest-serializer

Overview

Module for serializing and deserializing object into memory and disk. By default, the `v8` implementations are used, but if not present, it defaults to `JSON` implementation. Both serializers have the advantage of being able to serialize `Map`, `Set`, `un

Index

Variables

variable _default

const _default: {
deserialize: typeof deserialize;
readFileSync: typeof readFileSync;
serialize: typeof serialize;
writeFileSync: typeof writeFileSync;
};

    Functions

    function deserialize

    deserialize: (buffer: any) => unknown;

      function readFileSync

      readFileSync: (filePath: Path) => unknown;

        function serialize

        serialize: (content: unknown) => any;

          function writeFileSync

          writeFileSync: (filePath: Path, content: unknown) => void;

            Namespaces

            namespace v8

            module 'v8' {}
            • Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.

              This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

            function deserialize

            deserialize: (value: any) => unknown;

              function serialize

              serialize: (value: unknown) => any;

                Package Files (2)

                Dependencies (2)

                Dev Dependencies (1)

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-serializer.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-serializer)
                • HTML
                  <a href="https://www.jsdocs.io/package/jest-serializer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>