feat: add edutainment drawing and visual package flows

This commit is contained in:
2026-05-14 14:17:10 +08:00
parent 10e8beea80
commit e444266e1e
109 changed files with 8788 additions and 996 deletions

View File

@@ -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',