22
33export const categories = [
44 "assert" ,
5+ "async-hooks" ,
56 "buffer" ,
67 "child-process" ,
78 "cluster" ,
89 "console" ,
910 "crypto" ,
11+ "debugger" ,
1012 "dgram" ,
13+ "diagnostics-channel" ,
1114 "dns" ,
15+ "domain" ,
1216 "events" ,
1317 "fs" ,
1418 "http" ,
@@ -20,18 +24,24 @@ export const categories = [
2024 "os" ,
2125 "others" ,
2226 "path" ,
27+ "perf-hooks" ,
28+ "permission" ,
2329 "process" ,
2430 "promise" ,
2531 "querystring" ,
2632 "quic" ,
2733 "readline" ,
2834 "repl" ,
35+ "sea" ,
36+ "snapshot" ,
2937 "sqlite" ,
3038 "stdio" ,
3139 "stream" ,
3240 "string-decoder" ,
41+ "test-runner" ,
3342 "timers" ,
3443 "tls" ,
44+ "trace-events" ,
3545 "tty" ,
3646 "url" ,
3747 "util" ,
@@ -48,15 +58,22 @@ export type Category = typeof categories[number];
4858const prefixToCategoryMap : Record < string , Category > = {
4959 "test-abortcontroller" : "web" ,
5060 "test-assert" : "assert" ,
61+ "test-async-hooks" : "async-hooks" ,
62+ "test-async-local-storage" : "async-hooks" ,
63+ "test-async-wrap" : "async-hooks" ,
5164 "test-blob" : "web" ,
5265 "test-buffer" : "buffer" ,
66+ "test-build-sea" : "sea" ,
5367 "test-child-process" : "child-process" ,
5468 "test-cluster" : "cluster" ,
5569 "test-console" : "console" ,
5670 "test-crypto" : "crypto" ,
5771 "test-cwd" : "process" ,
72+ "test-debugger" : "debugger" ,
5873 "test-dgram" : "dgram" ,
74+ "test-diagnostics-channel" : "diagnostics-channel" ,
5975 "test-dns" : "dns" ,
76+ "test-domain" : "domain" ,
6077 "test-double-tls" : "tls" ,
6178 "test-event" : "events" ,
6279 "test-event-target" : "web" ,
@@ -78,7 +95,9 @@ const prefixToCategoryMap: Record<string, Category> = {
7895 "test-outgoing-message" : "http" ,
7996 "test-os" : "os" ,
8097 "test-path" : "path" ,
98+ "test-perf-hooks" : "perf-hooks" ,
8199 "test-performance" : "web" ,
100+ "test-permission" : "permission" ,
82101 "test-process" : "process" ,
83102 "test-promise" : "promise" ,
84103 "test-readable" : "stream" ,
@@ -87,7 +106,10 @@ const prefixToCategoryMap: Record<string, Category> = {
87106 "test-readline" : "readline" ,
88107 "test-repl" : "repl" ,
89108 "test-require" : "module" ,
109+ "test-runner" : "test-runner" ,
90110 "test-shadow-realm" : "web" ,
111+ "test-single-executable" : "sea" ,
112+ "test-snapshot" : "snapshot" ,
91113 "test-socket" : "net" ,
92114 "test-sqlite" : "sqlite" ,
93115 "test-stdin" : "stdio" ,
@@ -98,6 +120,7 @@ const prefixToCategoryMap: Record<string, Category> = {
98120 "test-tcp" : "net" ,
99121 "test-timers" : "timers" ,
100122 "test-tls" : "tls" ,
123+ "test-trace-events" : "trace-events" ,
101124 "test-tty" : "tty" ,
102125 "test-urlpattern" : "web" ,
103126 "test-url" : "url" ,
@@ -122,6 +145,10 @@ export function getTestCategory(name: string): Category {
122145 return "tty" ;
123146 } else if ( dir === "module-hooks" || dir === "es-module" ) {
124147 return "module" ;
148+ } else if ( dir === "sea" ) {
149+ return "sea" ;
150+ } else if ( dir === "test-runner" ) {
151+ return "test-runner" ;
125152 }
126153
127154 const basename = name . split ( "/" ) . pop ( ) ! ;
0 commit comments