Skip to content

Commit

Permalink
test: ignore watch function coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung committed Nov 23, 2021
1 parent 8bb7365 commit ad79e04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-dumi-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function applyApiData(api: IApi, identifier: string, definitions: ReturnType<typ
* @param identifier api identifier
* @param parseOpts extra parse options
*/
/* istanbul ignore next */
function watchComponentUpdate(
api: IApi,
absPath: string,
Expand Down Expand Up @@ -154,7 +155,8 @@ export default function (api: IApi) {
const isUpdated = Boolean(apis[identifier]);

apis[identifier] = data;


/* istanbul ignore if */
if (isUpdated) {
generateApisFile();
}
Expand Down

0 comments on commit ad79e04

Please sign in to comment.