mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 06:20:10 +00:00
[Test] Run unittest with vitest (#2779)
This commit is contained in:
17
.github/workflows/test-ui.yaml
vendored
17
.github/workflows/test-ui.yaml
vendored
@@ -56,23 +56,6 @@ jobs:
|
||||
ComfyUI_frontend
|
||||
key: comfyui-setup-${{ steps.cache-key.outputs.key }}
|
||||
|
||||
jest-tests:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Restore cached setup
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
ComfyUI
|
||||
ComfyUI_frontend
|
||||
key: comfyui-setup-${{ needs.setup.outputs.cache-key }}
|
||||
|
||||
- name: Run Jest tests
|
||||
run: |
|
||||
npm run test:jest -- --verbose
|
||||
working-directory: ComfyUI_frontend
|
||||
|
||||
playwright-tests:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
4
.github/workflows/vitest.yaml
vendored
4
.github/workflows/vitest.yaml
vendored
@@ -22,4 +22,6 @@ jobs:
|
||||
run: npm ci
|
||||
|
||||
- name: Run Vitest tests
|
||||
run: npm run test:component
|
||||
run: |
|
||||
npm run test:component
|
||||
npm run test:unit
|
||||
|
||||
Reference in New Issue
Block a user