Home / File/ makeE2EConfig.js — react Source File

makeE2EConfig.js — react Source File

Architecture documentation for makeE2EConfig.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 makeE2EConfig(displayName, useForget) {
  return {
    displayName,
    testEnvironment: 'jsdom',
    rootDir: '../../src',
    testMatch: ['**/*.e2e.(js|tsx)'],
    modulePathIgnorePatterns: [
      // ignore snapshots from the opposite forget configuration
      useForget ? '.*\\.no-forget\\.snap$' : '.*\\.with-forget\\.snap$',
      // ignore snapshots from the main project
      '.*\\.ts\\.snap$',
    ],
    globals: {
      __FORGET__: useForget,
    },
    snapshotResolver: useForget
      ? '<rootDir>/../scripts/jest/snapshot-resolver-with-forget.js'
      : '<rootDir>/../scripts/jest/snapshot-resolver-no-forget.js',

    transform: {
      '\\.[tj]sx?$': useForget
        ? '<rootDir>/../scripts/jest/transform-with-forget'
        : '<rootDir>/../scripts/jest/transform-no-forget',
    },
    transformIgnorePatterns: ['/node_modules/'],
  };
};

Subdomains

Functions

Frequently Asked Questions

What does makeE2EConfig.js do?
makeE2EConfig.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 makeE2EConfig.js?
makeE2EConfig.js defines 1 function(s): module.
Where is makeE2EConfig.js in the architecture?
makeE2EConfig.js is located at compiler/packages/babel-plugin-react-compiler/scripts/jest/makeE2EConfig.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