Skip to content

Commit

Permalink
Model vnext unit test update (#8749)
Browse files Browse the repository at this point in the history
* test: update snaphot unit tests

* test: update ds table to also use resolver key for out resources
  • Loading branch information
SwaySway committed Nov 9, 2021
1 parent 2d5110c commit 8a308a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,8 @@ describe('ModelTransformer: ', () => {
const queryObject = getObjectType(schema, 'Query');
expectFields(queryObject!, ['syncTodos']);
// sync resolvers
expect(out.pipelineFunctions['Query.syncTodos.req.vtl']).toMatchSnapshot();
expect(out.pipelineFunctions['Query.syncTodos.res.vtl']).toMatchSnapshot();
expect(out.resolvers['Query.syncTodos.req.vtl']).toMatchSnapshot();
expect(out.resolvers['Query.syncTodos.res.vtl']).toMatchSnapshot();
// ds table
expect(out.rootStack?.Resources?.DataStore).toBeDefined();
expect(out.rootStack?.Resources?.DataStore).toMatchSnapshot();
Expand Down

0 comments on commit 8a308a8

Please sign in to comment.