ignoreList-test.js — react Source File
Architecture documentation for ignoreList-test.js, a javascript file in the react codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR eb6f125c_40fe_16e0_f8bd_be719e94c2d0["ignoreList-test.js"] b915a35f_599f_de62_b548_329df1aaef0b["child-process-promise"] eb6f125c_40fe_16e0_f8bd_be719e94c2d0 --> b915a35f_599f_de62_b548_329df1aaef0b 324b23d8_44c6_f20a_4338_46cccc56566e["fs"] eb6f125c_40fe_16e0_f8bd_be719e94c2d0 --> 324b23d8_44c6_f20a_4338_46cccc56566e b402a0fc_00db_e86d_b1ea_ad4f8e9faaca["path"] eb6f125c_40fe_16e0_f8bd_be719e94c2d0 --> b402a0fc_00db_e86d_b1ea_ad4f8e9faaca 9ae0cc60_43b8_c25e_4730_3bfef6db3491["rimraf"] eb6f125c_40fe_16e0_f8bd_be719e94c2d0 --> 9ae0cc60_43b8_c25e_4730_3bfef6db3491 style eb6f125c_40fe_16e0_f8bd_be719e94c2d0 fill:#6366f1,stroke:#818cf8,color:#fff
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.
*
* @flow
*/
import {exec} from 'child-process-promise';
import {readFileSync} from 'fs';
import path from 'path';
import {rimrafSync} from 'rimraf';
describe('ignoreList source map extension', () => {
jest.setTimeout(60 * 1000);
const pathToExtensionsPackage = path.resolve(__dirname, '..', '..');
const pathToChromeExtensionBuild = path.join(
pathToExtensionsPackage,
'chrome/build',
);
const pathToSourceMap = path.resolve(
pathToChromeExtensionBuild,
'unpacked/build/react_devtools_backend_compact.js.map',
);
afterAll(() => {
rimrafSync(pathToChromeExtensionBuild);
});
describe('for dev builds', () => {
it('should not ignore list anything', async () => {
await exec('yarn build:chrome:local', {
cwd: pathToExtensionsPackage,
});
const sourceMapJSON = readFileSync(pathToSourceMap);
const sourceMap = JSON.parse(sourceMapJSON);
const {ignoreList} = sourceMap;
expect(ignoreList).toEqual([]);
});
});
describe('for production builds', function () {
it('should include every source', async () => {
await exec('yarn build:chrome', {cwd: pathToExtensionsPackage});
const sourceMapJSON = readFileSync(pathToSourceMap);
const sourceMap = JSON.parse(sourceMapJSON);
const {sources, ignoreList} = sourceMap;
expect(sources.length).toBe(ignoreList.length);
});
});
});
Dependencies
- child-process-promise
- fs
- path
- rimraf
Source
Frequently Asked Questions
What does ignoreList-test.js do?
ignoreList-test.js is a source file in the react codebase, written in javascript.
What does ignoreList-test.js depend on?
ignoreList-test.js imports 4 module(s): child-process-promise, fs, path, rimraf.
Where is ignoreList-test.js in the architecture?
ignoreList-test.js is located at packages/react-devtools-extensions/src/__tests__/ignoreList-test.js (directory: packages/react-devtools-extensions/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free