feat: launch PK testing application
Verify mini program and deploy preview / verify-deploy (push) Failing after 34s
Verify mini program and deploy preview / verify-deploy (push) Failing after 34s
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { readFileSync, existsSync } from 'node:fs';
|
||||
const required = ['app.js','app.json','pages/index/index.xhsml','pages/test/test.js','pages/result/result.js','web/index.html','web/app.js'];
|
||||
for (const file of required) if (!existsSync(file)) throw new Error(`Missing ${file}`);
|
||||
JSON.parse(readFileSync('app.json','utf8'));
|
||||
const web = readFileSync('web/index.html','utf8');
|
||||
if (!web.includes('./app.js') || !web.includes('./style.css')) throw new Error('Preview assets are not linked');
|
||||
console.log(`Static checks passed (${required.length} required files).`);
|
||||
|
||||
Reference in New Issue
Block a user