MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / makeProject

Function makeProject

__tests__/reverseEngine.detectProjectVersion.test.js:8–11  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

6
7describe('detectProjectVersion path compatibility', () => {
8 function makeProject(root) {
9 fs.mkdirSync(path.join(root, 'assets'), { recursive: true });
10 fs.writeFileSync(path.join(root, 'main.js'), 'window.CCSettings = {};');
11 }
12
13 test('detects 2.4.x when input path is project root', () => {
14 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cc-reverse-root-'));

Calls

no outgoing calls

Tested by

no test coverage detected