feat(server): self-hosted worker (#10085)

This commit is contained in:
DarkSky
2025-02-12 08:01:57 +08:00
committed by GitHub
parent 19f0eb1931
commit 88a3a2d13b
23 changed files with 817 additions and 20 deletions
@@ -95,7 +95,7 @@ export class TestingApp extends ApplyType<INestApplication>() {
}
request(
method: 'get' | 'post' | 'put' | 'delete' | 'patch',
method: 'options' | 'get' | 'post' | 'put' | 'delete' | 'patch',
path: string
): supertest.Test {
return supertest(this.getHttpServer())
@@ -106,6 +106,10 @@ export class TestingApp extends ApplyType<INestApplication>() {
]);
}
OPTIONS(path: string): supertest.Test {
return this.request('options', path);
}
GET(path: string): supertest.Test {
return this.request('get', path);
}