Skip to content

Commit

Permalink
chore(pnpm): fix lack dependencies (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Jul 24, 2024
1 parent d4b7c55 commit fafba58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
"workbox-precaching": "^6.3.0"
},
"dependencies": {
"@react-spring/web": "9.6.1",
"@use-gesture/react": "^10.2.10",
"ahooks": "^3.1.9",
"classnames": "^2.3.1",
Expand Down
4 changes: 2 additions & 2 deletions src/button/__tests__/button.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from '@test/utils';
import { describe, it, expect } from 'vitest';
import { describe, it, expect, render } from '@test/utils';

import Button from '../Button';

describe('Button 组件测试', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/progress/__tests__/progress.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { render, waitFor } from '@test/utils';
import { describe, expect, it, render, test, waitFor } from '@test/utils';
import getBackgroundColor from '../../_util/linearGradient';
import Progress from '../Progress';
import { ThemeEnum } from '../type';
import { ProgressTheme } from '../type';

describe('Progress', () => {
describe('utils/getBackgroundColor', () => {
Expand All @@ -23,7 +23,7 @@ describe('Progress', () => {
describe('props', () => {
test('render theme', async () => {
const testId = 'progress test theme';
const themes: ThemeEnum[] = ['line', 'plump', 'circle'];
const themes: ProgressTheme[] = ['line', 'plump', 'circle'];
const { getByTestId } = render(
<div data-testid={testId}>
{themes?.map((theme, index) => (
Expand Down
1 change: 1 addition & 0 deletions test/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@testing-library/jest-dom';

export * from '@testing-library/react';
export * from 'vitest';

0 comments on commit fafba58

Please sign in to comment.