Skip to content

Commit

Permalink
ci: do not use node for pkg binary
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpc committed Oct 6, 2021
1 parent 9368c15 commit 9260bf0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/amplify-e2e-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export function getNpxPath() {
}

export function isCI(): boolean {
return true;
return process.env.CI && process.env.CIRCLECI ? true : false;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-e2e-core/src/utils/nexpect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ export function nspawn(command: string | string[], params: string[] = [], option
const testingWithLatestCodebase = isTestingWithLatestCodebase(command);
if (
testingWithLatestCodebase ||
(process.platform === "win32" && !command.endsWith("node.exe"))
(process.platform === "win32" && !command.endsWith(".exe"))
) {
params.unshift(command);
command = getScriptRunnerPath(testingWithLatestCodebase);
Expand Down

0 comments on commit 9260bf0

Please sign in to comment.