SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

オープン

#816 opened on 2019/09/18

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (417 件のフォーク)batch import
enhancementgood first issuehas workaround

Repository metrics

Stars
 (1,315 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド