Skip to content

Commit 99e0481

Browse files
committed
Adding test reports
1 parent 539bc37 commit 99e0481

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,4 @@ dist
170170

171171
.dev.vars
172172
.wrangler/
173+
junit-report.xml

vitest.config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ export default defineWorkersConfig({
77
wrangler: { configPath: './wrangler.toml' },
88
},
99
},
10+
reporters: [
11+
'default',
12+
['junit', { suiteName: 'Unit and Integration tests' }],
13+
],
14+
outputFile: {
15+
junit: './junit-report.xml',
16+
}
1017
},
1118
});

wrangler.toml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ cpu_ms = 100
2525
[vars]
2626
LZ_ALLOWED_ORIGINS = [
2727
'https://labelzoom.net',
28-
'https://www.labelzoom.net'
28+
'https://www.labelzoom.net',
29+
'https://beta.labelzoom.net',
30+
'https://gatsby.labelzoom.net',
2931
]
3032
LZ_LOG_SAMPLE_RATE = 1.0
3133
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
@@ -34,7 +36,9 @@ LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
3436
[env.beta.vars]
3537
LZ_ALLOWED_ORIGINS = [
3638
'https://labelzoom.net',
37-
'https://www.labelzoom.net'
39+
'https://www.labelzoom.net',
40+
'https://beta.labelzoom.net',
41+
'https://gatsby.labelzoom.net'
3842
]
3943
LZ_LOG_SAMPLE_RATE = 1.0
4044
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
@@ -44,7 +48,9 @@ cpu_ms = 100
4448
[env.public.vars]
4549
LZ_ALLOWED_ORIGINS = [
4650
'https://labelzoom.net',
47-
'https://www.labelzoom.net'
51+
'https://www.labelzoom.net',
52+
'https://beta.labelzoom.net',
53+
'https://gatsby.labelzoom.net'
4854
]
4955
LZ_LOG_SAMPLE_RATE = 0.0
5056
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
@@ -54,7 +60,9 @@ cpu_ms = 100
5460
[env.eus1.vars]
5561
LZ_ALLOWED_ORIGINS = [
5662
'https://labelzoom.net',
57-
'https://www.labelzoom.net'
63+
'https://www.labelzoom.net',
64+
'https://beta.labelzoom.net',
65+
'https://gatsby.labelzoom.net'
5866
]
5967
LZ_LOG_SAMPLE_RATE = 0.0
6068
LZ_PROD_API_BASE_URL = "https://prod-api-eus1-backend.labelzoom.net"
@@ -66,7 +74,9 @@ cpu_ms = 100
6674
[env.eus2.vars]
6775
LZ_ALLOWED_ORIGINS = [
6876
'https://labelzoom.net',
69-
'https://www.labelzoom.net'
77+
'https://www.labelzoom.net',
78+
'https://beta.labelzoom.net',
79+
'https://gatsby.labelzoom.net'
7080
]
7181
LZ_LOG_SAMPLE_RATE = 0.001
7282
LZ_PROD_API_BASE_URL = "https://prod-api-eus2-backend.labelzoom.net"

0 commit comments

Comments
 (0)