SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

Open

#816 建立於 2019年9月18日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (1,315 star) (417 fork)batch import
enhancementgood first issuehas workaround

描述

🚀 Feature Proposal

When import of assert not used do not put it into js file. Also key and until should not be in exported script, when are not used.

Motivation

Typescript signal it as unused import and potential error. Also export files will be shorter.

Example

IDE Script without assert in generated file will have const assert = require('assert')//this line is not needed.

貢獻者指南