MCPcopy Index your code
hub / github.com/facebook/react / isExpectError

Function isExpectError

compiler/packages/snap/src/fixture-utils.ts:81–84  ·  view source on GitHub ↗
(fixture: TestFixture | string)

Source from the content-addressed store, hash-verified

79 return stripExtension(path.basename(fixture.inputPath), INPUT_EXTENSIONS);
80}
81export function isExpectError(fixture: TestFixture | string): boolean {
82 const basename = typeof fixture === 'string' ? fixture : getBasename(fixture);
83 return basename.startsWith('error.') || basename.startsWith('todo.error');
84}
85
86export type TestFixture =
87 | {

Callers 2

transformFixtureInputFunction · 0.90
transformFixtureFunction · 0.90

Calls 1

getBasenameFunction · 0.85

Tested by

no test coverage detected