Skip to content

Commit

Permalink
chore: suppress reexport and type-only files from coverage metrics in…
Browse files Browse the repository at this point in the history
… @aws-amplify/graphql-category-api
  • Loading branch information
palpatim committed Dec 19, 2024
1 parent 18a2dc3 commit aa12857
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// This exists only to provide coverage metrics for various export files
// ############################################################################
// This exists only to provide coverage metrics for various export files. If
// you include executable code in any of the referenced files, you must test it
// separately in a dedicated *.test.ts file.
// ############################################################################

import * as src from '../index';
import * as types from '../types';
Expand Down
33 changes: 33 additions & 0 deletions packages/amplify-graphql-api-construct/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
// ############################################################################
// Note that sections of this file are excluded from test coverage metrics with
// 'c8 ignore' comments. If you add code to this file, suppress non-executable
// code from coverage metrics by using a `c8 ignore`. If the code is
// executable, you MUST NOT suppress it from coverage metrics.
//
// `ignore` statements must only span a single block of code. Do not apply an
// `ignore` statement to multiple blocks, or the entire file.
// ############################################################################

/* ATTENTION
*
* If you modify this file you must also modify packages/amplify-data-construct/src/index.ts to have the same exports
*/
/* c8 ignore start */
export type {
IAMAuthorizationConfig,
IdentityPoolAuthorizationConfig,
Expand Down Expand Up @@ -34,8 +45,17 @@ export type {
IBackendOutputEntry,
AddFunctionProps,
} from './types';
/* c8 ignore stop */

/* c8 ignore start */
export { AmplifyGraphqlApi } from './amplify-graphql-api';
/* c8 ignore stop */

/* c8 ignore start */
export { AmplifyGraphqlDefinition } from './amplify-graphql-definition';
/* c8 ignore stop */

/* c8 ignore start */
export {
AmplifyDynamoDbTableWrapper,
TimeToLiveSpecification,
Expand All @@ -44,7 +64,20 @@ export {
SSEType,
StreamSpecification,
} from './amplify-dynamodb-table-wrapper';
/* c8 ignore stop */

/* c8 ignore start */
export { SQLLambdaModelDataSourceStrategyFactory } from './sql-model-datasource-strategy';
/* c8 ignore stop */

/* c8 ignore start */
export * from './model-datasource-strategy-types';
/* c8 ignore stop */

/* c8 ignore start */
export type { LogConfig, Logging } from './log-config-types';
/* c8 ignore stop */

/* c8 ignore start */
export { FieldLogLevel, RetentionDays } from './log-config-types';
/* c8 ignore stop */
Loading

0 comments on commit aa12857

Please sign in to comment.