Skip to content

Commit 6f24de3

Browse files
committed
TestRunner initial commit
1 parent 0066fba commit 6f24de3

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

packages/app/src/controller/DataManager.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,9 @@ export class DataManagerController implements ReactiveController {
167167
...(data as Record<string, string>)
168168
}
169169
this.sourcesContextProvider.setValue(merged)
170-
console.debug('Merged sources keys', Object.keys(merged))
171170
} else {
172171
const providerMap = {
173-
mutations: this.mutationsContextProvider,
174172
logs: this.logsContextProvider,
175-
consoleLogs: this.consoleLogsContextProvider,
176-
metadata: this.metadataContextProvider,
177-
commands: this.commandsContextProvider,
178-
sources: this.sourcesContextProvider,
179173
suites: this.suitesContextProvider
180174
} as const
181175
const provider = providerMap[scope as keyof typeof providerMap]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// const RUN_EVENT = 'app-run-tests'
2+
const VIEW_SOURCE_EVENT = 'app-source-highlight'
3+
4+
export const viewSource = (
5+
callSource: string | undefined
6+
) => {
7+
if (!callSource) return
8+
window.dispatchEvent(
9+
new CustomEvent(VIEW_SOURCE_EVENT, {
10+
detail: callSource
11+
})
12+
)
13+
}

0 commit comments

Comments
 (0)