source-academy / frontend

Frontend of Source Academy, an online experiential environment for computational thinking (React, Redux, Saga, Blueprint)
https://sourceacademy.org
Apache License 2.0
103 stars 167 forks source link

Refactor game simulator #2997

Closed RichDom2185 closed 6 months ago

RichDom2185 commented 6 months ago

Description

Fixes a runtime error when using Vite due to CheckpointTransition and GameManager instantiation before the game simulator instance is initialised.

Type of change

How to test

Checklist

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 9068697512

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/features/gameSimulator/GameSimulatorConstants.ts 0 1 0.0%
src/pages/academy/gameSimulator/GameSimulator.tsx 0 8 0.0%
<!-- Total: 0 9 0.0% -->
Totals Coverage Status
Change from base Build 9068691530: -0.002%
Covered Lines: 4891
Relevant Lines: 14671

💛 - Coveralls
RichDom2185 commented 6 months ago

Fixes a runtime error when using Vite

I just realised the runtime error also occurs now when using CRA. Must have been a regression when the router is refactored.