Skip to content

Commit 20fa0c9

Browse files
chore: fix tests (#86)
Co-authored-by: Francisco Bezzecchi <bezze@fatsolutions.xyz>
1 parent 421d746 commit 20fa0c9

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

.changeset/heavy-readers-sniff.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@kohaku-eth/privacy-pools': patch
3+
'@kohaku-eth/provider': patch
4+
---
5+
6+
Optimized test filtering for ci/cd

packages/privacy-pools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build": "echo Building @kohaku-eth/privacy-pools && tsup --config tsup.config.ts",
2727
"dev": "tsup --config tsup.config.ts --watch",
2828
"demo": "tsx demo/simple.ts",
29-
"test": "vitest run",
29+
"test": "vitest run --project=all",
3030
"test:unit": "vitest run --project=unit",
3131
"test:e2e": ". ./.env.e2e.tests && vitest run --project=e2e",
3232
"test:e2e:wl": ". ./.env.e2e.tests && vitest run --project=withdraw-live",

packages/privacy-pools/vitest.config.ts

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,27 @@ export default defineConfig({
55
test: {
66
globals: false,
77
environment: 'node',
8-
exclude: [ '*' ],
8+
exclude: ['*'],
99
projects: [
10+
{
11+
extends: true,
12+
test: {
13+
name: 'all',
14+
include: [
15+
'tests/unit/**/*.test.ts',
16+
'tests/e2e/**/*.test.ts'
17+
],
18+
testTimeout: 600_000,
19+
}
20+
},
21+
{
22+
extends: true,
23+
test: {
24+
name: 'e2e',
25+
include: ['tests/e2e/**/*.test.ts'],
26+
testTimeout: 600_000,
27+
}
28+
},
1029
{
1130
extends: true,
1231
test: {
@@ -39,14 +58,6 @@ export default defineConfig({
3958
testTimeout: 600_000,
4059
}
4160
},
42-
{
43-
extends: true,
44-
test: {
45-
name: 'e2e',
46-
include: ['tests/e2e/**/*.test.ts'],
47-
testTimeout: 600_000,
48-
}
49-
},
5061
{
5162
extends: true,
5263
test: {

0 commit comments

Comments
 (0)