Skip to content

Commit 73e8e87

Browse files
committed
test(tracer): make import relative and put relative imports after
1 parent 6e571a3 commit 73e8e87

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

packages/tracing/tests/e2e/allFeatures.decorator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { randomUUID } from 'crypto';
88
import path from 'path';
99
import { Table, AttributeType, BillingMode } from 'aws-cdk-lib/aws-dynamodb';
1010
import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
11-
import { deployStack, destroyStack } from '@aws-lambda-powertools/commons/tests/utils/cdk-cli';
1211
import * as AWS from 'aws-sdk';
12+
import { deployStack, destroyStack } from '../../../commons/tests/utils/cdk-cli';
1313
import {
1414
getTraces,
1515
getInvocationSubsegment,
@@ -22,7 +22,7 @@ import {
2222
import {
2323
generateUniqueName,
2424
isValidRuntimeKey,
25-
} from '@aws-lambda-powertools/commons/tests/utils/e2eUtils';
25+
} from '../../../commons/tests/utils/e2eUtils';
2626
import {
2727
RESOURCE_NAME_PREFIX,
2828
SETUP_TIMEOUT,

packages/tracing/tests/e2e/allFeatures.manual.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ import { randomUUID } from 'crypto';
88
import path from 'path';
99
import { Table, AttributeType, BillingMode } from 'aws-cdk-lib/aws-dynamodb';
1010
import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
11-
import { deployStack, destroyStack } from '@aws-lambda-powertools/commons/tests/utils/cdk-cli';
1211
import * as AWS from 'aws-sdk';
13-
import { getTraces, getInvocationSubsegment, splitSegmentsByName, ParsedTrace, invokeAllTestCases, createTracerTestFunction, getFunctionArn, getFirstSubsegment } from '../helpers/tracesUtils';
12+
import { deployStack, destroyStack } from '../../../commons/tests/utils/cdk-cli';
13+
import {
14+
getTraces,
15+
getInvocationSubsegment,
16+
splitSegmentsByName,
17+
ParsedTrace,
18+
invokeAllTestCases,
19+
createTracerTestFunction,
20+
getFunctionArn,
21+
getFirstSubsegment,
22+
} from '../helpers/tracesUtils';
1423
import {
1524
generateUniqueName,
1625
isValidRuntimeKey,

packages/tracing/tests/e2e/allFeatures.middy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { randomUUID } from 'crypto';
88
import path from 'path';
99
import { Table, AttributeType, BillingMode } from 'aws-cdk-lib/aws-dynamodb';
1010
import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
11-
import { deployStack, destroyStack } from '@aws-lambda-powertools/commons/tests/utils/cdk-cli';
1211
import * as AWS from 'aws-sdk';
12+
import { deployStack, destroyStack } from '../../../commons/tests/utils/cdk-cli';
1313
import {
1414
getTraces,
1515
getInvocationSubsegment,
@@ -22,7 +22,7 @@ import {
2222
import {
2323
generateUniqueName,
2424
isValidRuntimeKey,
25-
} from '@aws-lambda-powertools/commons/tests/utils/e2eUtils';
25+
} from '../../../commons/tests/utils/e2eUtils';
2626
import {
2727
RESOURCE_NAME_PREFIX,
2828
SETUP_TIMEOUT,

packages/tracing/tests/e2e/asyncHandler.decorator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { randomUUID } from 'crypto';
88
import path from 'path';
99
import { Table, AttributeType, BillingMode } from 'aws-cdk-lib/aws-dynamodb';
1010
import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
11-
import { deployStack, destroyStack } from '@aws-lambda-powertools/commons/tests/utils/cdk-cli';
1211
import * as AWS from 'aws-sdk';
12+
import { deployStack, destroyStack } from '../../../commons/tests/utils/cdk-cli';
1313
import {
1414
getTraces,
1515
getInvocationSubsegment,
@@ -22,7 +22,7 @@ import {
2222
import {
2323
generateUniqueName,
2424
isValidRuntimeKey,
25-
} from '@aws-lambda-powertools/commons/tests/utils/e2eUtils';
25+
} from '../../../commons/tests/utils/e2eUtils';
2626
import {
2727
RESOURCE_NAME_PREFIX,
2828
SETUP_TIMEOUT,

0 commit comments

Comments
 (0)