makeSnapshotResolver.js — react Source File
Architecture documentation for makeSnapshotResolver.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = function makeSnapshotResolver(useForget) {
const modeExtension = useForget ? '.with-forget' : '.no-forget';
return {
resolveSnapshotPath: (testPath, snapshotExtension) =>
testPath + modeExtension + snapshotExtension,
resolveTestPath: (snapshotFilePath, snapshotExtension) =>
snapshotFilePath.slice(
0,
-modeExtension.length - snapshotExtension.length
),
testPathForConsistencyCheck: 'some/__tests__/example.test.js',
};
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does makeSnapshotResolver.js do?
makeSnapshotResolver.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, E2E subdomain.
What functions are defined in makeSnapshotResolver.js?
makeSnapshotResolver.js defines 1 function(s): module.
Where is makeSnapshotResolver.js in the architecture?
makeSnapshotResolver.js is located at compiler/packages/babel-plugin-react-compiler/scripts/jest/makeSnapshotResolver.js (domain: TestingUtilities, subdomain: E2E, directory: compiler/packages/babel-plugin-react-compiler/scripts/jest).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free