SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

Open

#816 geöffnet am 18. Sept. 2019

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (417 Forks)batch import
enhancementgood first issuehas workaround

Repository-Metriken

Stars
 (1.315 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide