summaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/test/no-output.test.js
blob: 2320e05597db5adbeff8f1cc05462896b3dc9868 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { expect } from 'chai';
import { fileURLToPath } from 'node:url';
import { astroCli } from './_test-utils.js';

const root = new URL('./fixtures/no-output/', import.meta.url);

describe('Missing output config', () => {
	it('throws during the build', async () => {
		let error = undefined;
		try {
			await astroCli(fileURLToPath(root), 'build');
		} catch (err) {
			error = err;
		}
		expect(error).to.not.be.equal(undefined);
		expect(error.message).to.include(`output: "server"`);
	});
});