11 lines
435 B
TypeScript
11 lines
435 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { resolvePlaywrightMcpServer } from '@electron/opencode/playwright-mcp';
|
|
|
|
describe('Playwright MCP runtime resolution', () => {
|
|
it('fails closed instead of falling back to npx when the local package is missing', () => {
|
|
expect(() => resolvePlaywrightMcpServer(() => {
|
|
throw new Error('missing package');
|
|
})).toThrow('Bundled @playwright/mcp is missing');
|
|
});
|
|
});
|