feat: add match3d 3d runtime experiment
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-02 23:01:48 +08:00
parent 5831703156
commit a18f4db4bb
9 changed files with 1197 additions and 320 deletions

View File

@@ -1,6 +1,7 @@
/* @vitest-environment jsdom */
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { useEffect } from 'react';
import { expect, test, vi } from 'vitest';
import type {
@@ -13,6 +14,15 @@ import {
} from '../../services/match3d-runtime';
import { Match3DRuntimeShell } from './Match3DRuntimeShell';
vi.mock('./Match3DPhysicsBoard', () => ({
Match3DPhysicsBoard: ({ onFallback }: { onFallback: () => void }) => {
useEffect(() => {
onFallback();
}, [onFallback]);
return <div data-testid="match3d-physics-board-fallback" />;
},
}));
function renderRuntime(run: Match3DRunSnapshot) {
let currentRun = run;
let authorityRun = run;