Skip to content

Commit

Permalink
refactor(tests): comment out unused DotLottieWebGPU and DotLottieWebG…
Browse files Browse the repository at this point in the history
…L test cases
  • Loading branch information
theashraf committed Mar 4, 2025
1 parent 33919dd commit 9feea0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/react/tests/dotlottie-react.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/* eslint-disable node/no-unsupported-features/node-builtins */
import { DotLottie, DotLottieWorker } from '@lottiefiles/dotlottie-web';
import { DotLottie as DotLottieWebGL } from '@lottiefiles/dotlottie-web/webgl';
import { DotLottie as DotLottieWebGPU } from '@lottiefiles/dotlottie-web/webgpu';
// import { DotLottie as DotLottieWebGL } from '@lottiefiles/dotlottie-web/webgl';
// import { DotLottie as DotLottieWebGPU } from '@lottiefiles/dotlottie-web/webgpu';
import { userEvent } from '@testing-library/user-event';
import React from 'react';
import { afterEach, describe, expect, test, vi } from 'vitest';
import type { ComponentRenderOptions, RenderResult } from 'vitest-browser-react';
import { cleanup, render as vitestRender } from 'vitest-browser-react';

import { DotLottieReact, DotLottieWorkerReact, setWasmUrl } from '../src';
import { DotLottieReact as DotLottieWebGLReact, setWasmUrl as setWebGLWasmUrl } from '../src/webgl';
import { DotLottieReact as DotLottieWebGPUReact, setWasmUrl as setWebGPUWasmUrl } from '../src/webgpu';
// import { DotLottieReact as DotLottieWebGLReact, setWasmUrl as setWebGLWasmUrl } from '../src/webgl';
// import { DotLottieReact as DotLottieWebGPUReact, setWasmUrl as setWebGPUWasmUrl } from '../src/webgpu';

setWasmUrl(new URL('../../web/src/software/wasm/dotlottie-player.wasm?url', import.meta.url).href);
setWebGLWasmUrl(new URL('../../web/src/webgl/wasm/dotlottie-player.wasm?url', import.meta.url).href);
setWebGPUWasmUrl(new URL('../../web/src/webgpu/wasm/dotlottie-player.wasm?url', import.meta.url).href);
// setWebGLWasmUrl(new URL('../../web/src/webgl/wasm/dotlottie-player.wasm?url', import.meta.url).href);
// setWebGPUWasmUrl(new URL('../../web/src/webgpu/wasm/dotlottie-player.wasm?url', import.meta.url).href);

const dotLottieSrc = new URL('./__fixtures__/test.lottie', import.meta.url).href;
const lottieSrc = new URL('./__fixtures__/test.json', import.meta.url).href;
Expand All @@ -29,8 +29,8 @@ const render = (ui: React.ReactNode, options?: ComponentRenderOptions): RenderRe
describe.each([
{ name: 'DotLottieReact', component: DotLottieReact, instanceType: DotLottie },
{ name: 'DotLottieWorkerReact', component: DotLottieWorkerReact, instanceType: DotLottieWorker },
{ name: 'DotLottieWebGPUReact', component: DotLottieWebGPUReact, instanceType: DotLottieWebGPU },
{ name: 'DotLottieWebGLReact', component: DotLottieWebGLReact, instanceType: DotLottieWebGL },
// { name: 'DotLottieWebGPUReact', component: DotLottieWebGPUReact, instanceType: DotLottieWebGPU },
// { name: 'DotLottieWebGLReact', component: DotLottieWebGLReact, instanceType: DotLottieWebGL },
])('$name', ({ component: Component, instanceType }) => {
afterEach(() => {
cleanup();
Expand Down

0 comments on commit 9feea0b

Please sign in to comment.