MCPcopy
hub / github.com/jestjs/jest / generateTestFilesToForceUsingWorkers

Function generateTestFilesToForceUsingWorkers

e2e/Utils.ts:172–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 * Slow and modifies the test output. Use sparingly.
171 */
172export const generateTestFilesToForceUsingWorkers = () => {
173 const testFiles: Record<string, string> = {};
174 for (let i = 0; i <= NUMBER_OF_TESTS_TO_FORCE_USING_WORKERS; i++) {
175 testFiles[`__tests__/test${i}.test.js`] = `
176 test.todo('test ${i}');
177 `;
178 }
179 return testFiles;
180};
181
182export const copyDir = (src: string, dest: string) => {
183 const srcStat = fs.lstatSync(src);

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected