Skip to content

Commit

Permalink
test(dev): fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Oct 27, 2022
1 parent 1222b12 commit 3f546ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/__tests__/cli-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ afterAll(async () => {

async function execRemix(
args: Array<string>,
options: Parameters<typeof execFile>[2] = {}
options: Exclude<Parameters<typeof execFile>[2], null | undefined> = {}
) {
if (process.platform === "win32") {
let cp = childProcess.spawnSync(
Expand Down Expand Up @@ -275,7 +275,7 @@ function defer() {
return rej(reason);
};
});
return { promise, resolve, reject, state };
return { promise, resolve: resolve!, reject: reject!, state };
}

async function interactWithShell(
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-dev/__tests__/routesConvention-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoutePath } from "../config/routesConvention";

describe("createRoutePath", () => {
describe("creates proper route paths", () => {
let tests = [
let tests: [string, string | undefined][] = [
["routes/$", "routes/*"],
["routes/sub/$", "routes/sub/*"],
["routes.sub/$", "routes/sub/*"],
Expand Down

0 comments on commit 3f546ae

Please sign in to comment.