mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 22:46:32 +00:00
77dddd5e8a
Release branch for 4.0.0.
11 lines
522 B
TypeScript
11 lines
522 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
|
|
// Guards the lifecycle option in tests/setup.ts: a cross-origin call nobody mocked must
|
|
// fail here rather than actually leaving the runner (see msw/handlers/external.ts for the
|
|
// FX widget that once did, and answered after its test environment was gone).
|
|
describe('msw unhandled requests', () => {
|
|
it('FE-MSW-EGRESS-001: an unmocked cross-origin request is refused', async () => {
|
|
await expect(fetch('https://unmocked.example/rates')).rejects.toThrow();
|
|
});
|
|
});
|