SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

Open

#816 aperta il 18 set 2019

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (417 fork)batch import
enhancementgood first issuehas workaround

Metriche repository

Star
 (1315 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor