mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
6063f56573
* feat(vercel): Add support for image optimization API * chore: changeset * feat: implement image service * feat: dev service * feat: full local service * fix: move assets check to astro:config:done * feat: update with new settings * fix: remove unused param * test: add tsets * fix: rename to imageService * docs: add docs * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs(vercel): Add Added In mentions --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
18 lines
447 B
JavaScript
18 lines
447 B
JavaScript
import { expect } from 'chai';
|
|
import { loadFixture } from './test-utils.js';
|
|
|
|
describe('Serverless prerender', () => {
|
|
/** @type {import('./test-utils').Fixture} */
|
|
let fixture;
|
|
|
|
before(async () => {
|
|
fixture = await loadFixture({
|
|
root: './fixtures/serverless-prerender/',
|
|
});
|
|
});
|
|
|
|
it('build successful', async () => {
|
|
await fixture.build();
|
|
expect(await fixture.readFile('../.vercel/output/static/index.html')).to.be.ok;
|
|
});
|
|
});
|