Skip to main content

Unit Testing

Vanilla

import { test, expect } from 'xbell';

test('unit testing', async ({ page }) => {
const result = await page.evalute(async () => {
const { add } = await import('./add');
return add(1, 1);
});

expect(result).toBe(2);
});