Skip to content

Commit 5da3dcc

Browse files
committed
Eslint fix
1 parent 473feef commit 5da3dcc

File tree

4 files changed

+38
-17
lines changed

4 files changed

+38
-17
lines changed

packages/app/src/controller/DataManager.ts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export const suiteContext = createContext<Record<string, any>[]>(
4242

4343
const hasConnection = createContext<boolean>(Symbol('hasConnection'))
4444

45-
interface SocketMessage<T extends keyof TraceLog | 'testStopped' = keyof TraceLog | 'testStopped'> {
45+
interface SocketMessage<
46+
T extends keyof TraceLog | 'testStopped' = keyof TraceLog | 'testStopped'
47+
> {
4648
scope: T
4749
data: T extends keyof TraceLog ? TraceLog[T] : unknown
4850
}
@@ -125,16 +127,19 @@ export class DataManagerController implements ReactiveController {
125127
return
126128
}
127129

128-
const markAllAsRunning = (s: SuiteStatsFragment): SuiteStatsFragment => {
130+
const markAllAsRunning = (
131+
s: SuiteStatsFragment
132+
): SuiteStatsFragment => {
129133
return {
130134
...s,
131135
start: new Date(),
132136
end: undefined,
133-
tests: s.tests?.map((test) => ({
134-
...test,
135-
start: new Date(),
136-
end: undefined
137-
})) || [],
137+
tests:
138+
s.tests?.map((test) => ({
139+
...test,
140+
start: new Date(),
141+
end: undefined
142+
})) || [],
138143
suites: s.suites?.map(markAllAsRunning) || []
139144
}
140145
}
@@ -167,11 +172,12 @@ export class DataManagerController implements ReactiveController {
167172
...s,
168173
start: new Date(),
169174
end: undefined, // Clear end to mark as running
170-
tests: s.tests?.map((test) => ({
171-
...test,
172-
start: new Date(),
173-
end: undefined
174-
})) || [],
175+
tests:
176+
s.tests?.map((test) => ({
177+
...test,
178+
start: new Date(),
179+
end: undefined
180+
})) || [],
175181
suites: s.suites?.map(markAsRunning) || []
176182
}
177183
}

packages/backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"@wdio/logger": "9.18.0",
2626
"fastify": "^5.5.0",
2727
"get-port": "^7.1.0",
28-
"import-meta-resolve": "^4.1.0"
28+
"import-meta-resolve": "^4.1.0",
29+
"tree-kill": "^1.2.2"
2930
},
3031
"devDependencies": {
3132
"@types/ws": "^8.18.1",

packages/backend/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ export async function start(opts: DevtoolsBackendOptions = {}) {
6363

6464
server.post('/api/tests/stop', async (_request, reply) => {
6565
testRunner.stop()
66-
broadcastToClients(JSON.stringify({
67-
scope: 'testStopped',
68-
data: { stopped: true, timestamp: Date.now() }
69-
}))
66+
broadcastToClients(
67+
JSON.stringify({
68+
scope: 'testStopped',
69+
data: { stopped: true, timestamp: Date.now() }
70+
})
71+
)
7072
reply.send({ ok: true })
7173
})
7274

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)