mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-05-08 08:51:23 +00:00
21 lines
448 B
JavaScript
21 lines
448 B
JavaScript
import { setupTestEngine, expectThrowsAsync } from './test-helpers.js';
|
|
|
|
describe('Engine error', () => {
|
|
it('throws error on build', async () => {
|
|
const { build, cleanup } = await setupTestEngine(
|
|
'fixtures/06-error-handling/01-page-error/docs',
|
|
);
|
|
|
|
await expectThrowsAsync(
|
|
async () => {
|
|
await build();
|
|
},
|
|
{
|
|
errorMessage: 'foo is not defined',
|
|
},
|
|
);
|
|
|
|
await cleanup();
|
|
});
|
|
});
|