Browse Source

restore test coverage (#20071)

pull/20071/merge
偏右 5 years ago
committed by GitHub
parent
commit
62d7a2bbb0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .eslintignore
  2. 2
      .jest.js
  3. 1
      components/form/__tests__/index.test.js

1
.eslintignore

@ -1,6 +1,5 @@
components/**/*.js
components/**/*.jsx
components/*/__tests__/type.tsx
!components/*/__tests__/**/*.js
!components/*/demo/*
!.*.js

2
.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,

1
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);

Loading…
Cancel
Save