Skip to content

Commit

Permalink
fix test failing in node 22 (#15112)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW authored May 17, 2024
1 parent 17ad523 commit 4ef63b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/dev/core/test/unit/XR/webXRFeaturesManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ describe("Babylon WebXR Features Manager", function () {
*/
describe("Conflicting Features cannot be enabled simultaneously", () => {
it("Cannot enable Movement feature while Teleportation feature is enabled", () => {
const teleportationFeature = subject.enableFeature(WebXRMotionControllerTeleportation.Name, undefined, { xrInput: { xrCamera: {} } });
const teleportationFeature = subject.enableFeature(WebXRMotionControllerTeleportation.Name, undefined, {
xrInput: { xrCamera: {} },
defaultTargetMeshOptions: { teleportationCircleMaterial: {} },
});
expect(teleportationFeature).toBeDefined();
expect(subject.getEnabledFeatures()).toStrictEqual([WebXRMotionControllerTeleportation.Name]);

Expand Down

0 comments on commit 4ef63b0

Please sign in to comment.