Skip to content

Commit 2aadc08

Browse files
committed
Add vitest summary reporter
1 parent 846e851 commit 2aadc08

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ updates:
2121
typescript-types:
2222
patterns:
2323
- '@types/*'
24+
vitest:
25+
patterns:
26+
- 'vitest'
27+
- '@vitest/*'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@babel/preset-react": "^7.0.0",
1212
"@babel/preset-typescript": "^7.18.6",
1313
"@hypothesis/frontend-build": "^3.2.1",
14-
"@hypothesis/frontend-testing": "^1.4.0",
14+
"@hypothesis/frontend-testing": "^1.6.0",
1515
"@rollup/plugin-babel": "^6.0.0",
1616
"@rollup/plugin-commonjs": "^28.0.0",
1717
"@rollup/plugin-dynamic-import-vars": "^2.1.2",

vitest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
import { SummaryReporter } from '@hypothesis/frontend-testing/vitest';
12
import { defineConfig } from 'vitest/config';
23

34
export default defineConfig({
45
test: {
6+
globals: true,
7+
reporters: [new SummaryReporter()],
8+
59
browser: {
610
provider: 'playwright',
711
enabled: true,
812
headless: true,
913
screenshotFailures: false,
1014
instances: [{ browser: 'chromium' }],
1115
},
12-
globals: true,
1316

1417
// CSS bundle relied upon by accessibility tests (eg. for color-contrast
1518
// checks).

yarn.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ __metadata:
16091609
"@babel/preset-react": ^7.0.0
16101610
"@babel/preset-typescript": ^7.18.6
16111611
"@hypothesis/frontend-build": ^3.2.1
1612-
"@hypothesis/frontend-testing": ^1.4.0
1612+
"@hypothesis/frontend-testing": ^1.6.0
16131613
"@rollup/plugin-babel": ^6.0.0
16141614
"@rollup/plugin-commonjs": ^28.0.0
16151615
"@rollup/plugin-dynamic-import-vars": ^2.1.2
@@ -1660,14 +1660,19 @@ __metadata:
16601660
languageName: unknown
16611661
linkType: soft
16621662

1663-
"@hypothesis/frontend-testing@npm:^1.4.0":
1664-
version: 1.5.0
1665-
resolution: "@hypothesis/frontend-testing@npm:1.5.0"
1663+
"@hypothesis/frontend-testing@npm:^1.6.0":
1664+
version: 1.6.0
1665+
resolution: "@hypothesis/frontend-testing@npm:1.6.0"
16661666
dependencies:
16671667
axe-core: ^4.8.2
16681668
enzyme: ^3.11.0
16691669
preact: ^10.18.1
1670-
checksum: 26cbebeb23acb5fb6d29d26178d3b8dd617dcb948f7596aefdacac3fdf62c7ac02d78f5ec634b0bed5b63e001ad5bb26989df732b0caf971f2b0671620821fde
1670+
peerDependencies:
1671+
vitest: ^3.1.2
1672+
peerDependenciesMeta:
1673+
vitest:
1674+
optional: true
1675+
checksum: 1ac5404bc658bbf1c71548d39e4703ac65ec822794f0a654122b7c98767f3f5830449466ee4c46695a44bd03a65b35108dddc3d8d7b177eb738b11a34c4f38e7
16711676
languageName: node
16721677
linkType: hard
16731678

0 commit comments

Comments
 (0)