(root)
| 6 | |
| 7 | describe('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-')); |
no outgoing calls
no test coverage detected