File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/commands/gen2-migration/codegen-generate/src/generators/data Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 6767 "@aws-amplify/amplify-util-uibuilder" : " 1.14.23" ,
6868 "@aws-cdk/cloudformation-diff" : " ~2.68.0" ,
6969 "@aws-sdk/client-amplify" : " ^3.919.0" ,
70- "@aws-sdk/client-appsync" : " ^3.919.0" ,
7170 "@aws-sdk/client-cloudformation" : " ^3.919.0" ,
7271 "@aws-sdk/client-cloudwatch-events" : " ^3.919.0" ,
7372 "@aws-sdk/client-cognito-identity" : " ^3.919.0" ,
118117 },
119118 "devDependencies" : {
120119 "@aws-amplify/amplify-function-plugin-interface" : " 1.12.1" ,
120+ "@aws-sdk/client-appsync" : " ^3.919.0" ,
121121 "@aws-sdk/client-cloudwatch-events" : " ^3.624.0" ,
122122 "@aws-sdk/client-cognito-identity-provider" : " ^3.624.0" ,
123123 "@aws-sdk/client-lambda" : " ^3.624.0" ,
Original file line number Diff line number Diff line change 11import assert from 'node:assert' ;
22import { printNodeArray } from '../../test_utils/ts_node_printer' ;
33import { generateDataSource } from './index' ;
4+
45describe ( 'Data Category code generation' , ( ) => {
6+ beforeEach ( ( ) => {
7+ jest . spyOn ( console , 'warn' ) . mockImplementation ( ( ) => { } ) ;
8+ } ) ;
9+
10+ afterEach ( ( ) => {
11+ jest . restoreAllMocks ( ) ;
12+ } ) ;
513 it ( 'generates the correct import' , async ( ) => {
614 const source = printNodeArray ( await generateDataSource ( ) ) ;
715 assert . match ( source , / i m p o r t \s ? \{ \s ? d e f i n e D a t a \s ? \} \s ? f r o m \s ? " \@ a w s - a m p l i f y \/ b a c k e n d " / ) ;
You can’t perform that action at this time.
0 commit comments