From fdca67f74b5e085a28f35207e146b8831ef00ded Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 24 Oct 2020 14:36:06 +0800 Subject: [PATCH] test: update components/aXXX --- .jest.js | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 114 +++++++----------- .../auto-complete/__tests__/index.test.js | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- components/table/Table.tsx | 14 ++- components/table/index.tsx | 2 +- components/table/interface.ts | 4 +- 7 files changed, 64 insertions(+), 90 deletions(-) diff --git a/.jest.js b/.jest.js index 24c57d146..0b86d414b 100644 --- a/.jest.js +++ b/.jest.js @@ -25,7 +25,7 @@ module.exports = { testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', moduleNameMapper: { '^@/(.*)$': '/$1', - 'ant-design-vue$': '/components/index.js', + 'ant-design-vue$': '/components/index.ts', 'ant-design-vue/es': '/components', }, snapshotSerializers: ['/node_modules/jest-serializer-vue'], diff --git a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap index dca2b54df..f0d343893 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap @@ -1,107 +1,77 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./antdv-demo/docs/auto-complete/demo/basic.md correctly 1`] = ` - -