File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/amplify-codegen-e2e-tests/src/__tests__ Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import {
2
2
createNewProjectDir ,
3
3
deleteProjectDir ,
4
4
deleteProject ,
5
- addApiWithSchema ,
6
5
initJSProjectWithProfile ,
7
6
amplifyPush ,
8
7
generateModels ,
8
+ addApiWithoutSchema ,
9
9
updateApiSchema
10
10
} from "amplify-codegen-e2e-core" ;
11
11
import { addEnvironment , checkoutEnvironment } from "../environment/env" ;
@@ -27,7 +27,9 @@ describe('env codegen tests', () => {
27
27
it ( 'should generate models in different environments' , async ( ) => {
28
28
//create amplify project with enva
29
29
await initJSProjectWithProfile ( projectRoot , { envName : 'enva' } ) ;
30
- await addApiWithSchema ( projectRoot , schema , { apiName } ) ;
30
+ await addApiWithoutSchema ( projectRoot , { apiName : apiName } ) ;
31
+ await updateApiSchema ( projectRoot , apiName , schema ) ;
32
+
31
33
await amplifyPush ( projectRoot ) ;
32
34
//create new envb
33
35
await addEnvironment ( projectRoot , { envName : 'envb' } ) ;
You can’t perform that action at this time.
0 commit comments