perf: optimize app startup and background lifecycles
This commit is contained in:
@@ -4,6 +4,7 @@ import { createRequire } from 'node:module';
|
||||
import {
|
||||
mkdir,
|
||||
mkdtemp,
|
||||
realpath,
|
||||
readFile,
|
||||
rename,
|
||||
rm,
|
||||
@@ -74,7 +75,7 @@ async function createProject(projectType: ProjectType = 'mini_game'): Promise<st
|
||||
await writeFile(join(projectPath, 'index.html'), '<div id="app"></div>', 'utf8');
|
||||
await writeFile(join(projectPath, 'src', 'main.ts'), 'console.log("ready")\n', 'utf8');
|
||||
await writeFile(join(projectPath, 'public', 'icon.txt'), 'icon\n', 'utf8');
|
||||
return projectPath;
|
||||
return await realpath(projectPath);
|
||||
}
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user