module() — react Function Reference
Architecture documentation for the module() function in makeE2EConfig.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2a6b4908_98ec_7f5b_bb5d_378af6994e06["module()"] b2ca35c9_c745_d75e_14c3_f8ec1940c896["makeE2EConfig.js"] 2a6b4908_98ec_7f5b_bb5d_378af6994e06 -->|defined in| b2ca35c9_c745_d75e_14c3_f8ec1940c896 style 2a6b4908_98ec_7f5b_bb5d_378af6994e06 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/scripts/jest/makeE2EConfig.js lines 8–34
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/'],
};
};
Domain
Subdomains
Source
Frequently Asked Questions
What does module() do?
module() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/jest/makeE2EConfig.js.
Where is module() defined?
module() is defined in compiler/packages/babel-plugin-react-compiler/scripts/jest/makeE2EConfig.js at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free