Skip to content

Commit 6c51cc7

Browse files
committed
test: add junit reporter
1 parent 78c4d33 commit 6c51cc7

File tree

2 files changed

+6
-96
lines changed

2 files changed

+6
-96
lines changed

.gitignore

Lines changed: 3 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#############
2-
## System files
3-
#############
4-
51
# Windows image file caches
62
Thumbs.db
73
ehthumbs.db
@@ -19,110 +15,21 @@ $RECYCLE.BIN/
1915
logs
2016
*.log
2117
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
24-
lerna-debug.log*
25-
26-
# Diagnostic reports (https://nodejs.org/api/report.html)
27-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
28-
29-
# Runtime data
30-
pids
31-
*.pid
32-
*.seed
33-
*.pid.lock
34-
35-
# Directory for instrumented libs generated by jscoverage/JSCover
36-
lib-cov
37-
38-
# Coverage directory used by tools like istanbul
39-
coverage
40-
*.lcov
41-
42-
# nyc test coverage
43-
.nyc_output
44-
45-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
46-
.grunt
47-
48-
# Bower dependency directory (https://bower.io/)
49-
bower_components
50-
51-
# node-waf configuration
52-
.lock-wscript
53-
54-
# Compiled binary addons (https://nodejs.org/api/addons.html)
55-
build/Release
5618

5719
# Dependency directories
5820
node_modules/
59-
jspm_packages/
60-
61-
# TypeScript v1 declaration files
62-
typings/
63-
64-
# TypeScript cache
65-
*.tsbuildinfo
66-
67-
# Optional npm cache directory
68-
.npm
69-
70-
# Optional eslint cache
71-
.eslintcache
72-
73-
# Microbundle cache
74-
.rpt2_cache/
75-
.rts2_cache_cjs/
76-
.rts2_cache_es/
77-
.rts2_cache_umd/
78-
79-
# Optional REPL history
80-
.node_repl_history
8121

8222
# Output of 'npm pack'
8323
*.tgz
8424

85-
# Yarn Integrity file
86-
.yarn-integrity
87-
8825
# dotenv environment variables file
8926
.env
90-
.env.test
91-
92-
# parcel-bundler cache (https://parceljs.org/)
93-
.cache
94-
95-
# Next.js build output
96-
.next
97-
98-
# Nuxt.js build / generate output
99-
.nuxt
100-
dist
101-
102-
# Gatsby files
103-
.cache/
104-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
105-
# https://nextjs.org/blog/next-9-1#public-directory-support
106-
# public
107-
108-
# vuepress build output
109-
.vuepress/dist
110-
111-
# Serverless directories
112-
.serverless/
113-
114-
# FuseBox cache
115-
.fusebox/
116-
117-
# DynamoDB Local files
118-
.dynamodb/
119-
120-
# TernJS port file
121-
.tern-port
12227

12328
# stryker temp files
12429
.stryker-tmp
12530
/reports
12631

127-
32+
coverage
33+
dist
12834
package/
35+
test-report.junit.xml

vitest.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { env } from 'node:process'
12
import { defineConfig } from 'vitest/config'
23

34
export default defineConfig({
45
test: {
56
include: ['./packages/**/*.test.{ts,tsx}'],
7+
reporters: env.CI ? 'junit' : 'default',
8+
outputFile: 'test-report.junit.xml',
69
},
710
})

0 commit comments

Comments
 (0)