Skip to content

Commit 4a4dff1

Browse files
committed
use text-summary reportor for less console spam
1 parent f11ff3b commit 4a4dff1

3 files changed

Lines changed: 27 additions & 19 deletions

File tree

config/vitest.config.browser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
environment: "jsdom",
1313
coverage: {
1414
provider: "istanbul",
15-
reporter: ["text", "html", "lcov"],
15+
reporter: ["text-summary", "html"],
1616
include: ["src/**/*.ts"],
1717
exclude: [
1818
"test/**",
@@ -39,6 +39,8 @@ export default defineConfig({
3939
exclude: [
4040
"test/unit/call_builders.test.ts",
4141
"test/unit/server/horizon/server.test.ts",
42+
"test/unit/base/xdr/corpus_round_trip.test.ts",
43+
"test/unit/base/xdr/schema_exhaustive.test.ts",
4244
],
4345
// Setup files to load the browser bundle
4446
setupFiles: [resolve(__dirname, "../test/setup-browser.ts")],

config/vitest.config.e2e.ts

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
import { defineConfig } from 'vitest/config'
2-
import { resolve } from 'path'
1+
import { defineConfig } from "vitest/config";
2+
import { resolve } from "path";
33

44
export default defineConfig({
55
test: {
66
globals: true,
7-
environment: 'node',
7+
environment: "node",
88
coverage: {
9-
provider: 'v8',
10-
reporter: ['text', 'html', 'lcov'],
11-
include: ['lib/esm/**/*.js'],
12-
exclude: ['test/**', 'dist/**', 'coverage/**', '**/*.d.ts', 'lib/**/*.d.ts', 'lib/axios', '**/*/browser.js'],
13-
all: true,
9+
provider: "v8",
10+
reporter: ["text-summary", "html"],
11+
include: ["lib/esm/**/*.js"],
12+
exclude: [
13+
"test/**",
14+
"dist/**",
15+
"coverage/**",
16+
"**/*.d.ts",
17+
"lib/**/*.d.ts",
18+
"lib/axios",
19+
"**/*/browser.js",
20+
],
1421
},
1522
testTimeout: 120000, // 2 minutes timeout for e2e tests (same as original Mocha config)
1623
hookTimeout: 120000, // 2 minutes timeout for hooks (beforeAll, afterAll, etc.)
1724
// Include only e2e tests
18-
include: ['test/e2e/src/**/*.test.ts'],
19-
exclude: ['**/browser.test.ts'],
25+
include: ["test/e2e/src/**/*.test.ts"],
26+
exclude: ["**/browser.test.ts"],
2027
// Run tests in sequence to avoid conflicts with shared resources
21-
pool: 'forks',
28+
pool: "forks",
2229
poolOptions: {
2330
forks: {
2431
singleFork: true,
@@ -27,17 +34,17 @@ export default defineConfig({
2734
},
2835
resolve: {
2936
alias: {
30-
'@': resolve(__dirname, '../src'),
37+
"@": resolve(__dirname, "../src"),
3138
},
32-
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
39+
extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
3340
},
3441
esbuild: {
35-
target: 'node20',
42+
target: "node20",
3643
},
3744
optimizeDeps: {
38-
include: ['axios'],
45+
include: ["axios"],
3946
},
4047
define: {
4148
__PACKAGE_VERSION__: JSON.stringify(process.env.npm_package_version),
4249
},
43-
})
50+
});

config/vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ export default defineConfig({
2222
environment: "node",
2323
coverage: {
2424
provider: "v8",
25-
reporter: ["text", "html", "lcov"],
25+
reporter: ["text-summary", "html", "lcov"],
2626
include: ["src/**/*.ts"],
2727
exclude: coverageExclude,
28-
all: true,
2928
},
3029
testTimeout: 20000,
3130
// Only include non-browser tests in Node.js test runs

0 commit comments

Comments
 (0)