diff --git a/tests/focus.test.tsx b/tests/focus.test.tsx index 6e36452..44f6f53 100644 --- a/tests/focus.test.tsx +++ b/tests/focus.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { spyElementPrototypes } from 'rc-util/lib/test/domHook'; -import Input from 'rc-input'; +import Input from '../src'; import { fireEvent, render } from '@testing-library/react'; const getInputRef = () => { diff --git a/tsconfig.json b/tsconfig.json index 71f9c78..b8da981 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "@/*": ["src/*"], "@@/*": [".dumi/tmp/*"], - "rc-input": ["src/index.tsx"] + "rc-input": ["src/index.tsx"], + "@rc-component/input": ["src/index.tsx"] } }, "include": [".dumirc.ts", "**/*.ts", "**/*.tsx"]