Skip to content

Commit 2c28ba7

Browse files
committed
separate test debug logs by test names
1 parent fc92009 commit 2c28ba7

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 22
25-
- name: Install, test
25+
cache: pnpm
26+
- name: Install dependencies
2627
run: |
2728
pnpm install
2829
pnpm add concurrently
29-
pnpm concurrently "pnpm test" "pnpm typecheck" "pnpm lint"
30+
- name: Test
31+
run: pnpm concurrently "pnpm test" "pnpm typecheck" "pnpm lint"
3032
env:
3133
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
3234
SECRET_KEY: ${{ secrets.SECRET_KEY }}

client/tests/e2e.spec.mts

+15
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ import {
2626
const clientIds = [0, 1] as const;
2727
let clientDirectories: Record<number, string>;
2828

29+
const originalIt = it;
30+
// @ts-expect-error
31+
globalThis.it = (name: string, fn: () => Promise<void>, timeout?: number) => {
32+
originalIt(
33+
name,
34+
async function () {
35+
process.stdout.write(`===========================================\n`);
36+
process.stdout.write(`${name}\n`);
37+
process.stdout.write(`===========================================\n`);
38+
return await fn();
39+
},
40+
timeout,
41+
);
42+
};
43+
2944
describe("E2E Tests", () => {
3045
beforeAll(async () => {
3146
await startServer();

0 commit comments

Comments
 (0)