Skip to content

Commit fac2b47

Browse files
asizikovCopilot
andcommitted
test: add vitest pipeline coverage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b715bd0 commit fac2b47

5 files changed

Lines changed: 381 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Lint
3434
run: npm run lint
3535

36+
- name: Test
37+
run: npm run test
38+
3639
- name: Build
3740
run: npm run build
3841

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A web application for previewing and comparing your future GitHub Copilot bills
2222
## Getting Started
2323

2424
### Prerequisites
25-
- Node.js 18+
25+
- Node.js 20+
2626
- npm or yarn
2727

2828
### Installation
@@ -47,6 +47,12 @@ npm run build
4747

4848
The production build will be created in the `dist/` directory.
4949

50+
### Test
51+
52+
```bash
53+
npm run test
54+
```
55+
5056
### Preview Production Build
5157

5258
```bash
@@ -60,7 +66,7 @@ npm run preview
6066
3. The app will parse the report and compare request-based and AI Credits-based billing signals
6167
4. Explore the visualizations and data views to preview how future bills may look after the AI Credits transition
6268

63-
Sample reports are available in the `examples/` directory. Older examples without `aic_quantity` still load, but AI Credits will remain `0` for those rows.
69+
Sample reports are available in the `examples/` directory. The current app expects the current CSV format, including `aic_quantity` and `aic_gross_amount`.
6470

6571
## CSV Report Format
6672

@@ -82,8 +88,6 @@ The application expects CSV files with the following required columns:
8288
- `organization` - Organization slug
8389
- `cost_center_name` - Optional cost center identifier
8490

85-
Newer exports may also include these AI Credit columns:
86-
8791
- `aic_quantity` - AI Credits for the same usage row
8892
- `aic_gross_amount` - AI Credit gross cost for the same usage row
8993

0 commit comments

Comments
 (0)