This has multiple advantages: - it improves consistency between the various editor integration tests; - it makes the code easier to read/understand; - it reduces code duplication.
import/no-commonjs
getDocument
test
rimraf
fs.rmSync
rgb