Home / File/ basics.test.js — astro Source File

basics.test.js — astro Source File

Architecture documentation for basics.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  fa074a96_ee02_dea9_a044_6d4ae49e2ecc["basics.test.js"]
  6edce826_f6ba_1758_b163_54ce397ea33f["test-utils.js"]
  fa074a96_ee02_dea9_a044_6d4ae49e2ecc --> 6edce826_f6ba_1758_b163_54ce397ea33f
  635fda1a_dabb_b7fb_8ae7_bd460a659a81["prepareTestFactory"]
  fa074a96_ee02_dea9_a044_6d4ae49e2ecc --> 635fda1a_dabb_b7fb_8ae7_bd460a659a81
  f8fbe851_c5d6_c4ee_c044_67a751668c18["test"]
  fa074a96_ee02_dea9_a044_6d4ae49e2ecc --> f8fbe851_c5d6_c4ee_c044_67a751668c18
  style fa074a96_ee02_dea9_a044_6d4ae49e2ecc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { expect } from '@playwright/test';
import { prepareTestFactory } from './test-utils.js';

const { test } = prepareTestFactory({ root: './fixtures/basics/' });

test.describe('Basics', () => {
	test('Alpine is working', async ({ page, astro }) => {
		await page.goto(astro.resolveUrl('/'));

		const el = page.locator('#foo');
		expect(await el.textContent()).toBe('bar');
	});
});

Domain

Frequently Asked Questions

What does basics.test.js do?
basics.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does basics.test.js depend on?
basics.test.js imports 3 module(s): prepareTestFactory, test, test-utils.js.
Where is basics.test.js in the architecture?
basics.test.js is located at packages/integrations/alpinejs/test/basics.test.js (domain: CoreAstro, directory: packages/integrations/alpinejs/test).

Analyze Your Own Codebase

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

Try Supermodel Free