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

Function setupFiles

e2e/__tests__/watchModeNoAccess.test.ts:23–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21afterAll(() => cleanup(DIR));
22
23const setupFiles = () => {
24 writeFiles(DIR, {
25 '__tests__/foo.test.js': `
26 const foo = require('../foo');
27 test('foo', () => { expect(typeof foo).toBe('number'); });
28 `,
29 'foo.js': `
30 module.exports = 0;
31 `,
32 'package.json': JSON.stringify({
33 jest: {},
34 }),
35 });
36};
37
38let testRun: ReturnType<typeof runContinuous>;
39

Callers 1

Calls 1

writeFilesFunction · 0.90

Tested by

no test coverage detected