vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Home Page:https://antdv.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'elementsContains' function contains test code

gaokun opened this issue · comments

commented
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.1

Environment

github

Reproduction link

if (process.env.NODE_ENV === 'test') {

Steps to reproduce

  1. wrap component with antdv
  2. run unit test with testing library

What is expected?

elementsContains return as is

What is actually happening?

elementsContains always return false for unit test


image

commented

This only impacts unit test case.

Please help to look into those lines:
image