Absinthe.Test (absinthe v1.6.0) View Source
Link to this section Summary
Link to this section Functions
Run the introspection query on a schema.
test_helper.exs file add
In the test environment mix loads code lazily, which means that it isn't until the first GraphQL query in your test suite runs that Absinthe's code base is actually loaded. Absinthe is a lot of code, and so this can take several milliseconds. This can be a problem for tests using message passing that expect messages to happen within a certain amount of time.
By running the introspection query on your schema this function will cause mix to load the majority of the Absinthe code base.