Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test assertion doesn't work when LIGHTHOUSE_CACHE_ENABLE=true #43

Closed
LastDragon-ru opened this issue Nov 30, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working pkg: graphql
Milestone

Comments

@LastDragon-ru
Copy link
Owner

ASTBuilder is singleton and will return cached instance, so useGraphQLSchema will not have any effect

protected function useGraphQLSchema(SplFileInfo|string $schema): static {
$schema = Args::content($schema);
$provider = new TestSchemaProvider($schema);
$this->instance(SchemaSourceProvider::class, $provider);
return $this;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg: graphql
Projects
None yet
Development

No branches or pull requests

1 participant