naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

chore: from jest to vitest

Open Sepush opened this issue 2 years ago • 3 comments

Signed-off-by: Sepush [email protected]

jest naive-jest

vitest

vitest-naive

reduce to 6/10 of before

only thing left is there are a few test case use the magic if setTimeout we should not write test that way so I temporarily commented out to get test pass I leave TODO in the codebase. I will try to find out a way to solve them, and make a tracking issue to list and track them.

waiting for https://github.com/vitest-dev/vitest/issues/1191

Sepush avatar Aug 06 '22 17:08 Sepush

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
naive-ui ✅ Ready (Inspect) Visit Preview Aug 10, 2022 at 5:54AM (UTC)

vercel[bot] avatar Aug 06 '22 17:08 vercel[bot]

still get issue on ci but all test pass on my computer with node 18.7.0 I think there still bug

Sepush avatar Aug 07 '22 08:08 Sepush

是 drawer 漏掉了 一个 setTimeout

Sepush avatar Aug 10 '22 05:08 Sepush