Use our facility fake data to implement a mock graphQL
request with a test querying the facilities
#832
Labels
pair programming
This is a ticket that is good to pair with someone on
testing
vitest
Tests related to functional testing with Vitest.
Problem
Currently, we have one fake data file in our
test
folder that isn't being used (mockFacilityData.json
). We need to be able to mock ourgraphQL
request and use our fake data as a successful response from the server.Success
The best way to mock and import fake data with
graphQL
is implemented and test are written querying the facilities using our existing facility fake data. This facility fake data can be updated if it isn't the same as our current database schema. To figure out what the data looks at you can look at the schema or run the backend firebase emulator and see how the data of a facility is structured.Requirements
graphQL
endpoint with Nuxt,graphQL
, andvitest
test/functional/facilitiesStore.spec.ts
with the existing fake data intest/mockData/facilityMockData.json
graphQL
The text was updated successfully, but these errors were encountered: