Home / File/ storeSerializer.js — react Source File

storeSerializer.js — react Source File

Architecture documentation for storeSerializer.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  9037d74d_4f7d_686e_7d33_d5d377061256["storeSerializer.js"]
  15ddbedd_95dc_5545_807f_882c0a98271f["utils"]
  9037d74d_4f7d_686e_7d33_d5d377061256 --> 15ddbedd_95dc_5545_807f_882c0a98271f
  style 9037d74d_4f7d_686e_7d33_d5d377061256 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {printStore} from 'react-devtools-shared/src/devtools/utils';

// `test` is part of Jest's serializer API
export function test(maybeStore) {
  // It's important to lazy-require the Store rather than imported at the head of the module.
  // Because we reset modules between tests, different Store implementations will be used for each test.
  // Unfortunately Jest does not reset its own serializer modules.
  return (
    maybeStore instanceof
    require('react-devtools-shared/src/devtools/store').default
  );
}

// print() is part of Jest's serializer API
export function print(store, serialize, indent, includeSuspense = true) {
  return printStore(store, false, null, includeSuspense);
}

// Used for Jest snapshot testing.
// May also be useful for visually debugging the tree, so it lives on the Store.
export {printStore};

Domain

Subdomains

Functions

Dependencies

  • utils

Frequently Asked Questions

What does storeSerializer.js do?
storeSerializer.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in storeSerializer.js?
storeSerializer.js defines 2 function(s): print, test.
What does storeSerializer.js depend on?
storeSerializer.js imports 1 module(s): utils.
Where is storeSerializer.js in the architecture?
storeSerializer.js is located at packages/react-devtools-shared/src/__tests__/__serializers__/storeSerializer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/__tests__/__serializers__).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free