Skip to content

Commit 5b69f78

Browse files
committed
more logs
1 parent 3a4d622 commit 5b69f78

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dev-packages/e2e-tests/test-applications/aws-serverless/src/stack.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ export class LocalLambdaStack extends Stack {
7272
execFileSync('npm', ['install', '--prefix', path.join(functionsDir, lambdaDir)], { stdio: 'inherit' });
7373
}
7474

75-
const isEsm = fs.existsSync(path.join(functionsDir, lambdaDir, 'index.mjs'));
76-
7775
new CfnResource(this, functionName, {
7876
type: 'AWS::Serverless::Function',
7977
properties: {
@@ -87,7 +85,7 @@ export class LocalLambdaStack extends Stack {
8785
SENTRY_DSN: dsn,
8886
SENTRY_TRACES_SAMPLE_RATE: 1.0,
8987
SENTRY_DEBUG: true,
90-
NODE_OPTIONS: `--${isEsm ? 'import' : 'require'}=@sentry/aws-serverless/awslambda-auto`,
88+
NODE_OPTIONS: `--import=@sentry/aws-serverless/awslambda-auto`,
9189
},
9290
},
9391
},

dev-packages/e2e-tests/test-applications/aws-serverless/tests/lambda-fixtures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const test = base.extend<{ testEnvironment: LocalLambdaStack; lambdaClien
4545
args.push('--invoke-image', `public.ecr.aws/sam/build-nodejs${process.env.NODE_VERSION}.x:latest`);
4646
}
4747

48+
console.log(`[testEnvironment fixture] NODE_VERSION: ${process.env.NODE_VERSION}`);
4849
console.log(`[testEnvironment fixture] Running SAM with args: ${args.join(' ')}`);
4950

5051
const samProcess = spawn('sam', args, {

0 commit comments

Comments
 (0)