From 2ad86d416c35ccf48beb3769b971ca080dbbe408 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 13 Aug 2024 23:13:48 +0800 Subject: [PATCH] test: fix ci --- docs/examples/theme.tsx | 4 +- jest.config.ts | 15 + package.json | 3 +- pnpm-lock.yaml | 20599 ++++++++++++---------- tests/__snapshots__/index.test.tsx.snap | 1408 ++ tests/index.test.tsx | 264 + 6 files changed, 12828 insertions(+), 9465 deletions(-) create mode 100644 jest.config.ts create mode 100644 tests/__snapshots__/index.test.tsx.snap create mode 100644 tests/index.test.tsx diff --git a/docs/examples/theme.tsx b/docs/examples/theme.tsx index b9bee23..3ffdb8b 100644 --- a/docs/examples/theme.tsx +++ b/docs/examples/theme.tsx @@ -1,9 +1,9 @@ import '../../assets/index.less'; import React, { useState } from 'react'; -import Footer from 'rc-footer'; +import Footer, { type FooterProps } from 'rc-footer'; export default function App() { - const [theme, setTheme] = useState('light'); + const [theme, setTheme] = useState('light'); return (