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

Function cleanupRunnerStack

e2e/__tests__/nestedTestDefinitions.test.ts:12–20  ·  view source on GitHub ↗
(stderr: string)

Source from the content-addressed store, hash-verified

10import runJest from '../runJest';
11
12const cleanupRunnerStack = (stderr: string) =>
13 stderr
14 .split('\n')
15 .filter(
16 line =>
17 !line.includes('packages/jest-jasmine2/build') &&
18 !line.includes('packages/jest-circus/build'),
19 )
20 .join('\n');
21
22test('print correct error message with nested test definitions outside describe', () => {
23 const result = runJest('nested-test-definitions', ['outside']);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected