feat(e2e): set up fullstack app-level e2e test framework and signup test case

This commit is contained in:
yiling
2026-07-10 15:21:01 +08:00
parent 5636a1b581
commit 26982ee494
6 changed files with 193 additions and 35 deletions
+11 -5
View File
@@ -96,7 +96,6 @@ async function run() {
.replaceAll('content="./', 'content="/')
const serveMainHtml = () => new Response(mainHtmlText, { headers: mainHtmlHeaders })
routes['/'] = serveMainHtml
routes['/*'] = serveMainHtml
} else {
@@ -136,7 +135,14 @@ async function run() {
process.on('SIGTERM', shutdown)
}
handleDaemonCommands('shumai', run).catch((err) => {
console.error(err)
process.exit(1)
})
if (process.env.S3_BUCKET && process.env.S3_BUCKET.startsWith('shumai-e2e')) {
run().catch((err) => {
console.error(err)
process.exit(1)
})
} else {
handleDaemonCommands('shumai', run).catch((err) => {
console.error(err)
process.exit(1)
})
}