SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

开放

#816 创建于 2019年9月18日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (417 个派生)batch import
enhancementgood first issuehas workaround

仓库指标

星标
 (1,315 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

🚀 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.

贡献者指南