Skip to content

Commit 7c2fa9d

Browse files
author
DCloud_LXH
committed
fix(web): 自动化测试报错 HTMLElement not defined
1 parent 35c24e6 commit 7c2fa9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
// source-map
2121
__PLATFORM_WEB__: false,
2222
__HARMONY__: false,
23+
HTMLElement: class { }
2324
},
2425
coverageDirectory: 'coverage',
2526
coverageReporters: ['html', 'lcov', 'text'],

0 commit comments

Comments
 (0)