We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitest-dev
sheremet-va
antfu
patak-dev
Learn more about funding links in repositories.
Report abuse
1 parent bdce0a2 commit 1f7268fCopy full SHA for 1f7268f
packages/ui/client/composables/client/index.ts
@@ -42,9 +42,13 @@ export const client = (function createVitestClient() {
42
}
43
})()
44
45
+function sort(a: File, b: File) {
46
+ return a.name.localeCompare(b.name)
47
+}
48
+
49
export const config = shallowRef<ResolvedConfig>({} as any)
50
export const status = ref<WebSocketStatus>('CONNECTING')
-export const files = computed(() => client.state.getFiles())
51
+export const files = computed(() => client.state.getFiles().sort(sort))
52
export const current = computed(() => files.value.find(file => file.id === activeFileId.value))
53
export const currentLogs = computed(() => getTasks(current.value).map(i => i?.logs || []).flat() || [])
54
0 commit comments