fix: update tests for dk0 logo and boneyard-js mock, add jest moduleNameMapper
This commit is contained in:
6
__mocks__/boneyard-js/react.tsx
Normal file
6
__mocks__/boneyard-js/react.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
export function Skeleton({ children, loading }: { children: React.ReactNode; loading: boolean; name?: string; animate?: string; transition?: boolean | number }) {
|
||||
if (loading) return <div data-testid="boneyard-skeleton">Loading...</div>;
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in New Issue
Block a user