- Introduced DrawLine component for drawing animations. - Added LazyRevealImage component for lazy loading images with reveal animations. - Implemented TextDiffuseReveal for animated text reveals with staggered effects. - Created TopProgressBar for a dynamic loading indicator. - Added PointCloud mock for testing animations. - Developed useReducedMotion hook to handle user preferences for reduced motion. - Centralized animation configurations in config.ts for easier management. - Defined animation variants in variants.ts for consistent animation effects. - Established AnimationProvider to supply global animation settings. - Created tests for AnimationProvider and useReducedMotion hook. - Added SVG assets for branding and UI elements. - Documented frontend review plan and hero circuit board animation plan.
32 lines
786 B
TypeScript
32 lines
786 B
TypeScript
import type { Config } from "jest";
|
|
|
|
const config: Config = {
|
|
coverageProvider: "v8",
|
|
testEnvironment: "jsdom",
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/$1",
|
|
"^.+\\.(css|sass|scss)$": "identity-obj-proxy",
|
|
"^.+/animations/PointCloud$":
|
|
"<rootDir>/app/components/animations/__mocks__/PointCloud.tsx",
|
|
},
|
|
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
|
|
transform: {
|
|
"^.+\\.(ts|tsx)$": [
|
|
"ts-jest",
|
|
{
|
|
tsconfig: {
|
|
jsx: "react-jsx",
|
|
esModuleInterop: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
|
|
testEnvironmentOptions: {
|
|
customExportConditions: [""],
|
|
},
|
|
};
|
|
|
|
export default config;
|