dotansimha / dotansimha/graphql-code-generator-community

Change apollo-angular imports to named non-namespace imports

Open
#223 8 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

**Is your feature request related to a problem? Please describe.**

Because of this https://github.com/thymikee/jest-preset-angular/issues/963 bug it is not possible to write tests with generated services.

**Describe the solution you'd like**

Imports for angular-apollo should be changed from `import * as Apollo from 'apollo-angular';` to `import {Apollo, ...} from 'apollo-angular'`

**Describe alternatives you've considered**

Hacky solutions described in the jest-preset-angular issue, that might have other unknown effects.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.