Skip to content

Commit

Permalink
attempt to get tests to not fail in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey authored and chaance committed Jul 27, 2022
1 parent a9c83c3 commit 1c2124d
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions packages/remix-dev/__tests__/cli-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function execRemix(
env: {
...process.env,
NO_COLOR: "1",
...options.env,
...options?.env,
},
}
);
Expand All @@ -70,7 +70,7 @@ async function execRemix(
env: {
...process.env,
NO_COLOR: "1",
...options.env,
...options?.env,
},
}
);
Expand Down Expand Up @@ -199,7 +199,13 @@ describe("remix CLI", () => {
path.resolve(__dirname, "../cli.ts"),
"create",
],
{ stdio: [null, null, null] }
{
cwd: TEMP_DIR,
env: {
NO_COLOR: "1",
},
stdio: [null, null, null],
}
);

await interactWithShell(proc, [
Expand All @@ -224,7 +230,13 @@ describe("remix CLI", () => {
path.resolve(__dirname, "../cli.ts"),
"create",
],
{ stdio: [null, null, null] }
{
cwd: TEMP_DIR,
env: {
NO_COLOR: "1",
},
stdio: [null, null, null],
}
);

await interactWithShell(proc, [
Expand Down Expand Up @@ -264,7 +276,14 @@ function defer() {
return rej(reason);
};
});
return { promise, resolve, reject, state };
return {
promise,
// @ts-expect-error
resolve,
// @ts-expect-error
reject,
state,
};
}

async function interactWithShell(
Expand Down

0 comments on commit 1c2124d

Please sign in to comment.