Skip to content

Commit 316a65f

Browse files
author
root
committed
chore(ts): align package configs and test formatting
1 parent 9c292ad commit 316a65f

4 files changed

Lines changed: 11 additions & 18 deletions

File tree

packages/cli/tsconfig.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"target": "ES2022",
55
"module": "ESNext",
66
"lib": ["ES2022"],
7-
"moduleResolution": "node",
7+
"moduleResolution": "bundler",
88
"jsx": "react-jsx",
99
"strict": true,
1010
"esModuleInterop": true,
@@ -16,11 +16,7 @@
1616
"declarationMap": true,
1717
"sourceMap": true,
1818
"outDir": "./dist",
19-
"rootDir": "./src",
20-
"baseUrl": ".",
21-
"paths": {
22-
"@/*": ["./src/*"]
23-
}
19+
"rootDir": "./src"
2420
},
2521
"include": ["src/**/*.ts"],
2622
"exclude": ["node_modules", "dist"]

packages/web/src/features/supervisor/views/mobile/mobile-supervisor-sheet.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ describe("MobileSupervisorSheet", () => {
4444
expect(rootActions).not.toBeNull();
4545

4646
expect(screen.getByText("Reduce mobile regression bugs")).toBeInTheDocument();
47-
expect(within(rootActions as HTMLElement).getByRole("button", { name: "Edit Objective" })).toBeInTheDocument();
47+
expect(
48+
within(rootActions as HTMLElement).getByRole("button", { name: "Edit Objective" })
49+
).toBeInTheDocument();
4850
expect(
4951
within(rootActions as HTMLElement).getByRole("button", { name: "Disable Supervisor" })
5052
).toBeInTheDocument();

packages/web/src/features/terminal-panel/mobile/virtual-terminal-keys.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ describe("getSoftTerminalInputBytes", () => {
2929
["arrow_down", "\x1b[1;2B"],
3030
["arrow_right", "\x1b[1;2C"],
3131
["arrow_left", "\x1b[1;2D"],
32-
] satisfies Array<[SoftTerminalKeyId, string]>)(
33-
"maps shifted %s to modified terminal bytes",
34-
(key, expected) => {
35-
expect(getSoftTerminalInputBytes(key, { shift: true })).toBe(expected);
36-
}
37-
);
32+
] satisfies Array<
33+
[SoftTerminalKeyId, string]
34+
>)("maps shifted %s to modified terminal bytes", (key, expected) => {
35+
expect(getSoftTerminalInputBytes(key, { shift: true })).toBe(expected);
36+
});
3837

3938
it("keeps escape and enter unchanged when shift is armed", () => {
4039
expect(getSoftTerminalInputBytes("escape", { shift: true })).toBe("\x1b");

packages/web/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
"forceConsistentCasingInFileNames": true,
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
15-
"noEmit": true,
16-
"baseUrl": ".",
17-
"paths": {
18-
"@/*": ["./src/*"]
19-
}
15+
"noEmit": true
2016
},
2117
"include": ["src/**/*.ts", "src/**/*.tsx"],
2218
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)