Home / File/ error-sass.test.js — astro Source File

error-sass.test.js — astro Source File

Architecture documentation for error-sass.test.js, a javascript file in the astro codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  aac2b0a2_d24a_1e2c_7aec_479da770f566["error-sass.test.js"]
  2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"]
  aac2b0a2_d24a_1e2c_7aec_479da770f566 --> 2ca394f6_a63d_3921_1f12_c5a979ea0039
  e1e769bb_3791_17ce_1de0_e821705ee691["getErrorOverlayContent"]
  aac2b0a2_d24a_1e2c_7aec_479da770f566 --> e1e769bb_3791_17ce_1de0_e821705ee691
  e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory"]
  aac2b0a2_d24a_1e2c_7aec_479da770f566 --> e27f6887_ea47_dd44_7933_5faa0f6bcf4d
  f8fbe851_c5d6_c4ee_c044_67a751668c18["test"]
  aac2b0a2_d24a_1e2c_7aec_479da770f566 --> f8fbe851_c5d6_c4ee_c044_67a751668c18
  style aac2b0a2_d24a_1e2c_7aec_479da770f566 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { expect } from '@playwright/test';
import { getErrorOverlayContent, testFactory } from './test-utils.js';

const test = testFactory(import.meta.url, {
	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');
	});
});

Domain

Frequently Asked Questions

What does error-sass.test.js do?
error-sass.test.js is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain.
What does error-sass.test.js depend on?
error-sass.test.js imports 4 module(s): getErrorOverlayContent, test, test-utils.js, testFactory.
Where is error-sass.test.js in the architecture?
error-sass.test.js is located at packages/astro/e2e/error-sass.test.js (domain: E2ETesting, directory: packages/astro/e2e).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free