Skip to content

Commit

Permalink
chore: add default provision strategy config to correspond w/ test ch…
Browse files Browse the repository at this point in the history
…ange made in api category repo
  • Loading branch information
alharris-at committed Nov 15, 2023
1 parent 5a3f473 commit ccaf43d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DynamoDBProvisionStrategy } from '@aws-amplify/graphql-transformer-interfaces';
import { transformAndSynth, defaultTransformParams } from '../__e2e_v2__/test-synthesizer';
import { GraphQLClient } from './utils/graphql-client';
import { deploy, launchDDBLocal, logDebug, terminateDDB } from './utils/index';
Expand All @@ -24,6 +25,15 @@ beforeAll(async () => {
...defaultTransformParams.transformParameters,
useSubUsernameForDefaultIdentityClaim: false,
},
modelToDatasourceMap: new Map(
Object.entries({
Todo: {
dbType: 'DDB',
provisionDB: true,
provisionStrategy: DynamoDBProvisionStrategy.DEFAULT,
},
}),
),
});

let ddbClient;
Expand Down

0 comments on commit ccaf43d

Please sign in to comment.