This repo demonstrates an issue where the testing TypeScript operations w/ WG appears not to be working as expected.
The repo was created by running npx create-wundergraph-app@latest wg-testing-wizards --example simple
and by modifying some configuration files.
Mocking section in Wundergraph docs was used as the source for writing the test.
The test fails because the mocked response is not being returned from the typescript operation.
- git clone the repo
npm ci
- install dependencies- add the yaml file as explained to .wundergraph/schema, and call it
abc.yaml
npm run build
- cleans and generates wundergraph filesnpm run test
- runs the tests (it also builds to make sure the generated files are up to date)