Skip to content

Commit

Permalink
test: stable test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Dec 5, 2023
1 parent 6ad3cea commit b4a3655
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"regenerator-runtime": "^0.13.7",
"typescript": "^4.0.0"
"typescript": "^4.0.0",
"use-testing-antd": "npm:[email protected]"
},
"dependencies": {
"@ant-design/cssinjs": "^1.8.1",
Expand Down
6 changes: 3 additions & 3 deletions tests/__snapshots__/index.test.tsx.snap

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion tests/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { StyleProvider } from '@ant-design/cssinjs';
import { extractStyle } from '../src/index';
import { ConfigProvider } from 'antd';
import { ConfigProvider } from 'use-testing-antd';

const testGreenColor = '#008000';

jest.mock('antd', () => jest.requireActual('use-testing-antd'));
beforeEach(() => jest.clearAllMocks());

describe('Static-Style-Extract', () => {
it('should extract static styles', () => {
const cssText = extractStyle();
Expand Down

0 comments on commit b4a3655

Please sign in to comment.