feat: add edutainment drawing and visual package flows
This commit is contained in:
@@ -45,6 +45,20 @@ describe('matchAppRoute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('routes baby love drawing path to the standalone runtime when edutainment is enabled', () => {
|
||||
expect(matchAppRoute('/runtime/baby-love-drawing')).toEqual({
|
||||
kind: 'baby-love-drawing',
|
||||
});
|
||||
});
|
||||
|
||||
it('blocks direct baby love drawing path when edutainment entry is disabled', () => {
|
||||
vi.stubEnv('VITE_ENABLE_EDUTAINMENT_ENTRY', 'false');
|
||||
|
||||
expect(matchAppRoute('/runtime/baby-love-drawing')).toEqual({
|
||||
kind: 'game',
|
||||
});
|
||||
});
|
||||
|
||||
it('routes former standalone editor paths back to the main game', () => {
|
||||
expect(matchAppRoute('/item-editor/tools')).toEqual({
|
||||
kind: 'game',
|
||||
|
||||
Reference in New Issue
Block a user