Skip to content

Commit 89cf84d

Browse files
committed
feat: add @chromatic-com/vitest
1 parent 13bd8d5 commit 89cf84d

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ on:
3232
- aria-live-capture
3333
- nuxt
3434
- nuxt-test-utils
35+
- chromatic
3536
- elk
3637
- effect
3738
- hono
@@ -116,6 +117,7 @@ jobs:
116117
- aria-live-capture
117118
- nuxt
118119
- nuxt-test-utils
120+
- chromatic
119121
- elk
120122
- effect
121123
- hono

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ on:
3737
- aria-live-capture
3838
- nuxt
3939
- nuxt-test-utils
40+
- chromatic
4041
- elk
4142
- effect
4243
- hono

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- aria-live-capture
4545
- nuxt
4646
- nuxt-test-utils
47+
- chromatic
4748
- elk
4849
- effect
4950
- hono

tests/chromatic.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { runInRepo } from '../utils'
2+
import { RunOptions } from '../types'
3+
4+
export async function test(options: RunOptions) {
5+
await runInRepo({
6+
...options,
7+
repo: 'chromaui-demo/e2e-demo-vitest',
8+
branch: 'main',
9+
test: 'ecosystem-ci',
10+
beforeTest: ['pnpm exec playwright install chromium'],
11+
})
12+
}

0 commit comments

Comments
 (0)