perf: optimize app startup and background lifecycles

This commit is contained in:
inman committed 2026-08-19 00:56:15 +08:00
1 parent 31332f6d76
commit 927e13349b
121 files changed
+4359 -1400

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ describe('Login page', () => {
vi.unstubAllGlobals();
});
it('keeps the login route reachable from the app router', () => {
it('keeps the login route reachable from the app router', async () => {
vi.stubGlobal('__NIANCODE_RENDERER_ONLY__', true);
render(
@@ -53,7 +53,7 @@ describe('Login page', () => {
</MemoryRouter>,
);
expect(screen.getByRole('button', { name: '在浏览器中继续' })).toBeInTheDocument();
expect(await screen.findByRole('button', { name: '在浏览器中继续' })).toBeInTheDocument();
});
it('uses Chinese copy and keeps upstream HTML errors concise', () => {