@@ -18,7 +18,7 @@ const bundledNodePath = path.join(
|
||||
const runtimeNodePath = fs.existsSync(bundledNodePath)
|
||||
? bundledNodePath
|
||||
: process.execPath;
|
||||
const serverBuildPath = path.join(repoRoot, 'server-node', 'dist', 'server.js');
|
||||
const serverBuildPath = path.join(repoRoot, 'server-node', 'dist', 'server.cjs');
|
||||
const webBuildPath = path.join(repoRoot, 'dist', 'index.html');
|
||||
const publicRoot = path.join(repoRoot, 'public');
|
||||
const proxyPort = 18080;
|
||||
@@ -34,7 +34,7 @@ type ManagedChild = {
|
||||
function assertBuildArtifacts() {
|
||||
if (!fs.existsSync(serverBuildPath)) {
|
||||
throw new Error(
|
||||
'server-node/dist/server.js 不存在,请先运行 npm run server-node:build',
|
||||
'server-node/dist/server.cjs 不存在,请先运行 npm run server-node:build',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ async function main() {
|
||||
assert.equal(saveResponse.status, 200);
|
||||
assert.equal(savePayload.ok, true);
|
||||
assert.equal(savePayload.data.gameState.chapter, 2);
|
||||
assert.equal(savePayload.meta.operation, 'PUT /api/runtime/save/snapshot');
|
||||
assert.equal(savePayload.meta.operation, 'runtime.snapshot.put');
|
||||
assert.ok(savePayload.meta.requestId);
|
||||
console.log('[smoke:proxy] proxied runtime save ok');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user