fix: support containerized release runtimes
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { shouldRunGateway } from '../src/index.js';
|
||||
|
||||
describe('gateway entrypoint', () => {
|
||||
it('starts only for an explicitly selected Gateway role', () => {
|
||||
expect(shouldRunGateway('api')).toBe(true);
|
||||
expect(shouldRunGateway('orchestrator')).toBe(true);
|
||||
expect(shouldRunGateway('profile-seed')).toBe(true);
|
||||
expect(shouldRunGateway('server')).toBe(false);
|
||||
expect(shouldRunGateway(undefined)).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -118,7 +118,7 @@ describe('buildProcessDefinitions', () => {
|
||||
|
||||
expect(definitions.frontend).toMatchObject({
|
||||
cwd: path.join(buildWorkspace, 'app', 'game-frontend'),
|
||||
script: path.join(buildWorkspace, 'node_modules', 'vite', 'bin', 'vite.js'),
|
||||
script: path.join(buildWorkspace, 'app', 'game-frontend', 'node_modules', 'vite', 'bin', 'vite.js'),
|
||||
args: [
|
||||
'preview',
|
||||
'--host',
|
||||
|
||||
Reference in New Issue
Block a user