@bscotch/gml-parser
Version:
A parser for GML (GameMaker Language) files for programmatic manipulation and analysis of GameMaker projects.
16 lines • 589 B
JavaScript
import { pathy } from '@bscotch/pathy';
import { assert } from 'chai';
import { Project } from './project.js';
export async function resetSandbox() {
for (const dir of ['target']) {
const srcDir = pathy('samples').join(dir);
const destDir = pathy('sandbox').join(dir);
await destDir.rm({ recursive: true, maxRetries: 5 });
await destDir.ensureDir();
await srcDir.copy(destDir);
}
const targetProject = await Project.initialize('sandbox/target');
assert(targetProject);
return targetProject;
}
//# sourceMappingURL=test.lib.js.map