Skip to content

Commit 08e46d6

Browse files
committed
[do] Combine tests
1 parent 618dc32 commit 08e46d6

7 files changed

Lines changed: 12 additions & 11 deletions

File tree

coverage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tests":930,"assertions":33186,"lines":{"total":395,"covered":376,"skipped":0,"pct":95.18},"statements":{"total":436,"covered":414,"skipped":0,"pct":94.95},"functions":{"total":143,"covered":131,"skipped":0,"pct":91.6},"branches":{"total":268,"covered":206,"skipped":0,"pct":76.86},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
1+
{"tests":940,"assertions":33227,"lines":{"total":395,"covered":376,"skipped":0,"pct":95.18},"statements":{"total":436,"covered":414,"skipped":0,"pct":94.95},"functions":{"total":143,"covered":131,"skipped":0,"pct":91.6},"branches":{"total":268,"covered":206,"skipped":0,"pct":76.86},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}

test/durable-object/broker-only.test.ts renamed to test/unit/durable-object/broker-only.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {Miniflare} from 'miniflare';
22
import {getPartsFromPacket} from 'synclets/utils';
33
import {afterAll, beforeAll, expect, test} from 'vitest';
4-
import {pause} from '../unit/common.ts';
4+
import {pause} from '../common.ts';
55
import {Api, createMiniflare, Fetch} from './common.ts';
66

77
const PORT = 8781;
File renamed without changes.

vitest.config.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ export default defineConfig({
3131
test: {
3232
name: 'unit',
3333
include: ['test/unit/**/*.test.ts', 'test/unit/**/*.test.tsx'],
34+
exclude: ['test/unit/durable-object/**/*.test.ts'],
35+
},
36+
},
37+
{
38+
extends: true,
39+
test: {
40+
name: 'durable-object',
41+
include: ['test/unit/durable-object/**/*.test.ts'],
42+
environment: 'node',
43+
retry: 0,
3444
},
3545
},
3646
{
@@ -52,15 +62,6 @@ export default defineConfig({
5262
retry: 0,
5363
},
5464
},
55-
{
56-
extends: true,
57-
test: {
58-
name: 'durable-object',
59-
include: ['test/durable-object/**/*.test.ts'],
60-
environment: 'node',
61-
retry: 0,
62-
},
63-
},
6465
],
6566
},
6667
});

0 commit comments

Comments
 (0)