Skip to content

Commit

Permalink
Fix/vitest (#161)
Browse files Browse the repository at this point in the history
* added validation for test titles

* added vitest to analyzer and params tests
  • Loading branch information
DavertMik committed Jul 1, 2024
1 parent d36f463 commit a6ec73b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example/playwright/params.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { test, expect } from '@playwright/test';

const testCases = [1, 2, 3];
const pages = ['one', 'two'];

let i = 0;
test.describe('pages', () => {
testCases.forEach(() => {
i++;
pages.forEach((pageUrl: any) => {
i++;
test(`check ${i} on "${pageUrl}" page`, async ({}) => {});
});
});
});
1 change: 1 addition & 0 deletions src/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Analyzer {
break;
case 'jest':
case 'jestio':
case 'vitest':
this.frameworkParser = require('./lib/frameworks/jest');
break;
case 'newman':
Expand Down

0 comments on commit a6ec73b

Please sign in to comment.