SeleniumHQ/selenium-ide

Export to Mocha generate unused imports

Open

#816 ouverte le 18 sept. 2019

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (417 forks)batch import
enhancementgood first issuehas workaround

Métriques du dépôt

Stars
 (1 315 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur