8fb28648f6
* feat: unflag `--experimental-error-overlay` * feat: unflag `--experimental-prerender` * chore: add changeset * Update chilled-geese-worry.md * test: update test to use `mjs` * Update .changeset/chilled-geese-worry.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update chilled-geese-worry.md Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
26 lines
621 B
JavaScript
26 lines
621 B
JavaScript
import { expect } from '@playwright/test';
|
|
import { testFactory, getErrorOverlayContent } from './test-utils.js';
|
|
|
|
const test = testFactory({
|
|
root: './fixtures/error-sass/',
|
|
});
|
|
|
|
let devServer;
|
|
|
|
test.beforeAll(async ({ astro }) => {
|
|
devServer = await astro.startDevServer();
|
|
});
|
|
|
|
test.afterAll(async ({ astro }) => {
|
|
await devServer.stop();
|
|
astro.resetAllFiles();
|
|
});
|
|
|
|
test.describe('Error: Sass', () => {
|
|
test('overlay', async ({ page, astro }) => {
|
|
await page.goto(astro.resolveUrl('/'));
|
|
|
|
const message = (await getErrorOverlayContent(page)).message;
|
|
expect(message).toMatch('Undefined variable');
|
|
});
|
|
});
|