SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

Open

#816 opened on 2019幎9月18日

GitHub で芋る
 (0 comments) (0 reactions) (0 assignees)JavaScript (417 forks)batch import
enhancementgood first issuehas workaround

Repository metrics

Stars
 (1,315 stars)
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.

コントリビュヌタヌガむド