Skip to content

Commit

Permalink
chore: migrate to vitest for 10x faster tests (mckaywrigley#257)
Browse files Browse the repository at this point in the history
* chore migrate to vitest

* chore: cleanup jest stuff

* chore: install the coverage dep
  • Loading branch information
srsholmes authored Mar 28, 2023
1 parent 11d6172 commit 3749c9b
Show file tree
Hide file tree
Showing 7 changed files with 6,160 additions and 10,422 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/run-test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Run Jest Tests

name: Run Unit Tests
on:
push:
branches:
Expand All @@ -21,11 +20,5 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run Jest Test Suite
- name: Run Vitest Suite
run: npm test

- name: Publish Test Report
if: always()
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: test-results/**/results.xml
2 changes: 2 additions & 0 deletions __tests__/utils/app/importExports.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ExportFormatV1, ExportFormatV2 } from '@/types/export';
import { OpenAIModels, OpenAIModelID } from '@/types/openai';
import { DEFAULT_SYSTEM_PROMPT } from '@/utils/app/const';
import { it, describe, expect } from 'vitest';

import {
cleanData,
isExportFormatV1,
Expand Down
22 changes: 0 additions & 22 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 3749c9b

Please sign in to comment.