From 62d7a2bbb0d3a461005033b2d72bff580b2bdf5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 4 Dec 2019 14:09:39 +0800 Subject: [PATCH] :white_check_mark: restore test coverage (#20071) --- .eslintignore | 1 - .jest.js | 2 +- components/form/__tests__/index.test.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintignore b/.eslintignore index 90a47e0b0d..5b7a025679 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,5 @@ components/**/*.js components/**/*.jsx -components/*/__tests__/type.tsx !components/*/__tests__/**/*.js !components/*/demo/* !.*.js diff --git a/.jest.js b/.jest.js index be5659849c..12370cd640 100644 --- a/.jest.js +++ b/.jest.js @@ -31,7 +31,7 @@ module.exports = { '!components/*/style/index.tsx', '!components/style/index.tsx', '!components/*/locale/index.tsx', - '!components/*/__tests__/**/type.tsx', + '!components/form/__tests__/type.test.tsx', '!components/**/*/interface.{ts,tsx}', ], transformIgnorePatterns, diff --git a/components/form/__tests__/index.test.js b/components/form/__tests__/index.test.js index fe3567c99a..2ce597d66d 100644 --- a/components/form/__tests__/index.test.js +++ b/components/form/__tests__/index.test.js @@ -3,6 +3,7 @@ import React from 'react'; import { mount, render } from 'enzyme'; import Form from '..'; import mountTest from '../../../tests/shared/mountTest'; +import './type.test'; describe('Form', () => { mountTest(Form);