diff --git a/package.json b/package.json index b5472fc91..07bf1d846 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "site:deploy": "gh-pages -d site", "postpublish": "npm run sync:other-npm", "sync:other-npm": "node -e 'require(\"./scripts/sync-cnpm-and-tnpm\")()'", - "test": "cross-env TZ=UTC vitest", + "test": "cross-env TZ=UTC vitest && vitest tests/__tests__/demo.test.ts", "test:coverage": "cross-env TZ=UTC TEST_LOG=none vitest --coverage", "test:update": "cross-env TZ=UTC vitest -u", "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx", diff --git a/packages/design/src/config-provider/__tests__/ThemeProvider.test.tsx b/packages/design/src/config-provider/__tests__/ThemeProvider.test.tsx index 64ad69aef..1afa624c4 100644 --- a/packages/design/src/config-provider/__tests__/ThemeProvider.test.tsx +++ b/packages/design/src/config-provider/__tests__/ThemeProvider.test.tsx @@ -19,7 +19,7 @@ describe('ConfigProvider theme with ThemeProvider', () => { }; const Child3 = () => { const { token } = useToken(); - expect(token.colorBgLayout).toBe('#ff0000'); + expect(token.colorBgLayout).toBe(defaultTheme.token.colorBgLayout); return ; }; render(