refactor(tests): use recast visit instead of ast-types visit

Based on comment https://github.com/briandipalma/global-compiler/commit/7e27b69c562bb28413ebf4699de1e051bd9897a8#commitcomment-8083261

If you require `recast` it adds the `File` AST node.