Skip to content

Commit 0dbb4bb

Browse files
committed
test(e2e): Fix types
At least locally I got some type errors here, let's see...
1 parent 704b846 commit 0dbb4bb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/e2e-tests/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export interface RecipeTestResult extends RecipeInstance {
4747
tests: TestResult[];
4848
}
4949

50-
export type Env = Record<string, string | string>;
50+
export type Env = Record<string, string | undefined>;

packages/e2e-tests/lib/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ interface SpawnAsync {
1919

2020
export function spawnAsync(
2121
cmd: string,
22-
options?:
23-
| childProcess.SpawnOptionsWithoutStdio
24-
| childProcess.SpawnOptionsWithStdioTuple<childProcess.StdioPipe, childProcess.StdioPipe, childProcess.StdioPipe>,
22+
options?: childProcess.SpawnOptions & { timeout?: number },
2523
input?: string,
2624
): Promise<SpawnAsync> {
2725
const start = Date.now();

packages/e2e-tests/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"fix": "run-s fix:eslint fix:prettier",
1111
"fix:eslint": "eslint . --format stylish --fix",
1212
"fix:prettier": "prettier --config ../../.prettierrc.json --write . ",
13-
"lint": "run-s lint:prettier lint:eslint",
13+
"lint": "run-s lint:prettier lint:eslint lint:ts",
1414
"lint:eslint": "eslint . --format stylish",
1515
"lint:prettier": "prettier --config ../../.prettierrc.json --check .",
16+
"lint:ts": "tsc --noEmit",
1617
"test:e2e": "run-s test:validate-configuration test:validate-test-app-setups test:run",
1718
"test:run": "ts-node run.ts",
1819
"test:validate-configuration": "ts-node validate-verdaccio-configuration.ts",

packages/e2e-tests/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"exclude": ["node_modules", "test-applications"],
34
"compilerOptions": {
45
"types": ["node"]
56
}

0 commit comments

Comments
 (0)