Skip to content

Commit d56fd4d

Browse files
committed
tests: fix integration tests with telemetry
1 parent f5e2f7f commit d56fd4d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const argv = require('yargs').argv;
66

77
(async () => {
88
if (argv.telemetry) {
9-
await gatherTelemetryForUrl(process.argv[2], analyzeEmberObject);
9+
await gatherTelemetryForUrl(argv.telemetry, analyzeEmberObject);
1010
}
1111

1212
require('codemod-cli').runTransform(

test/run-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ const execOpts = { cwd: inputDir, stderr: 'inherit' };
3131

3232
console.log('running codemod');
3333

34-
const codemod = execa('../../../bin/cli.js', ['http://localhost:4200', 'app'], execOpts);
34+
const codemod = execa(
35+
'../../../bin/cli.js',
36+
['--telemetry', 'http://localhost:4200', 'app'],
37+
execOpts
38+
);
3539
codemod.stdout.pipe(process.stdout);
3640
await codemod;
3741

0 commit comments

Comments
 (0)