Merge remote-tracking branch 'origin/master' into opt/win-ssache
Project CI / Repository checks (pull_request) Failing after 3m51s
Project CI / Frontend tests (pull_request) Failing after 3m47s
Project CI / Native shell tests (pull_request) Failing after 5m48s
Project CI / Backend tests (pull_request) Successful in 6m29s

This commit is contained in:
2026-09-14 06:21:45 +00:00
47 changed files with 1117 additions and 90 deletions
+5
View File
@@ -768,6 +768,7 @@ describe('dev scheduler stack state file', () => {
test('状态快照记录服务 pid、端口、URL 和当前命令', () => {
const updatedAt = '2026-05-29T00:00:00.000Z';
const runner = {
instanceId: 'test-instance',
command: 'web',
options: {
apiHost: '127.0.0.1',
@@ -815,12 +816,16 @@ describe('dev scheduler stack state file', () => {
const snapshot = buildDevStackSnapshot(runner, updatedAt);
expect(snapshot.schemaVersion).toBe(2);
expect(snapshot.instanceId).toBe('test-instance');
expect(snapshot.command).toBe('web');
expect(snapshot.database).toBe('genarrative-test');
expect(snapshot.spacetimeDataDir).toBe(
resolve('server-rs/.spacetimedb/local/data'),
);
expect(snapshot.services.web).toMatchObject({
repoRoot: resolve('.'),
instanceId: 'test-instance',
dataDir: null,
status: 'running',
pid: 4321,
host: '0.0.0.0',