Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/perf(backend): provide metadata statically #14601

Merged
merged 33 commits into from
Sep 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fbebe12
wip
syuilo Sep 21, 2024
23cd0c7
Update ReactionService.ts
syuilo Sep 21, 2024
6b2076c
Update ApiCallService.ts
syuilo Sep 21, 2024
69c6fea
Update timeline.ts
syuilo Sep 21, 2024
d9b6dfe
Update GlobalModule.ts
syuilo Sep 21, 2024
c3360bc
Update GlobalModule.ts
syuilo Sep 21, 2024
7e8e8a8
Update NoteEntityService.ts
syuilo Sep 21, 2024
c88167a
wip
syuilo Sep 21, 2024
eda102f
wip
syuilo Sep 21, 2024
d82fa3c
wip
syuilo Sep 21, 2024
17cd878
Update ApPersonService.ts
syuilo Sep 21, 2024
f924b87
wip
syuilo Sep 22, 2024
675a72c
Update GlobalModule.ts
syuilo Sep 22, 2024
a8de3db
Update mock-resolver.ts
syuilo Sep 22, 2024
ba6b1f6
Update RoleService.ts
syuilo Sep 22, 2024
43d96af
Update activitypub.ts
syuilo Sep 22, 2024
4f9f36c
Update activitypub.ts
syuilo Sep 22, 2024
4d9b529
Update activitypub.ts
syuilo Sep 22, 2024
23477cd
Update activitypub.ts
syuilo Sep 22, 2024
ec154c3
Update activitypub.ts
syuilo Sep 22, 2024
0efe2e2
clean up
syuilo Sep 22, 2024
a27d4be
Update utils.ts
syuilo Sep 22, 2024
e5fd9e0
Update UtilityService.ts
syuilo Sep 22, 2024
3c10abb
Revert "Update utils.ts"
syuilo Sep 22, 2024
90b8b4c
Revert "Update UtilityService.ts"
syuilo Sep 22, 2024
0c3bd12
vuwa-
syuilo Sep 22, 2024
7162a7a
Revert "vuwa-"
syuilo Sep 22, 2024
8363fe0
Update entry.ts
syuilo Sep 22, 2024
64cd65b
Update entry.ts
syuilo Sep 22, 2024
7358a0a
Update entry.ts
syuilo Sep 22, 2024
e439f5b
Update entry.ts
syuilo Sep 22, 2024
b158879
Update jest.setup.ts
syuilo Sep 22, 2024
699d54e
Merge branch 'develop' into provide-meta
syuilo Sep 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update entry.ts
syuilo committed Sep 22, 2024
commit e439f5b2c52d7ee8d251e6cc4d4292b5c937e077
7 changes: 5 additions & 2 deletions packages/backend/test-server/entry.ts
Original file line number Diff line number Diff line change
@@ -6,12 +6,14 @@ import { MainModule } from '@/MainModule.js';
import { ServerService } from '@/server/ServerService.js';
import { loadConfig } from '@/config.js';
import { NestLogger } from '@/NestLogger.js';
import { INestApplicationContext } from '@nestjs/common';

const config = loadConfig();
const originEnv = JSON.stringify(process.env);

process.env.NODE_ENV = 'test';

let app: INestApplicationContext;
let serverService: ServerService;

/**
@@ -22,7 +24,7 @@ async function launch() {

console.log('starting application...');

const app = await NestFactory.createApplicationContext(MainModule, {
app = await NestFactory.createApplicationContext(MainModule, {
logger: new NestLogger(),
});
serverService = app.get(ServerService);
@@ -75,12 +77,13 @@ async function startControllerEndpoints(port = config.port + 1000) {
process.env = JSON.parse(originEnv);

await serverService.dispose();
await app.close();

await killTestServer();

console.log('starting application...');

const app = await NestFactory.createApplicationContext(MainModule, {
app = await NestFactory.createApplicationContext(MainModule, {
logger: new NestLogger(),
});
serverService = app.get(ServerService);
Loading