MCPcopy
hub / github.com/teambit/bit / getTestCase

Function getTestCase

src/extensions/flows/task/task.spec.ts:65–70  ·  view source on GitHub ↗
(name: string, main = 'src/index.js')

Source from the content-addressed store, hash-verified

63}
64
65export function getTestCase(name: string, main = 'src/index.js') {
66 return {
67 [main]: `console.log('hello-world')`,
68 'package.json': JSON.stringify({ main, name }, null, 2)
69 };
70}
71
72function createModuleTestCase(name: string) {
73 const testCase = getTestCase(name);

Callers 3

flow.spec.tsFile · 0.90
createModuleTestCaseFunction · 0.70
getErrorCaseFunction · 0.70

Calls 1

stringifyMethod · 0.45

Tested by

no test coverage detected