New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scene Loading & Editor Snapshot Unit Tests #9468
Conversation
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '1' | ||
|
||
const modelLink = '/packages/projects/default-project/assets/collisioncube.glb' | ||
const testScene = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put this in a .json file and import it to improve readability of this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roger that, ill put it right next to the file
import { FogSettingsComponent } from '../../../engine/src/scene/components/FogSettingsComponent' | ||
import { EditorControlFunctions } from './EditorControlFunctions' | ||
|
||
const testScene = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put this in a .json file and import it to improve readability of this file
This pull request adds tests for the scene loading functionality in the codebase. It includes tests for loading an empty scene, loading a scene with a root entity, loading a scene with a child entity, and unloading a child entity.