ts-resolution.test.js — astro Source File
Architecture documentation for ts-resolution.test.js, a javascript file in the astro codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR eab129dc_0fd6_187a_65b0_2b7df04c646b["ts-resolution.test.js"] 2ca394f6_a63d_3921_1f12_c5a979ea0039["test-utils.js"] eab129dc_0fd6_187a_65b0_2b7df04c646b --> 2ca394f6_a63d_3921_1f12_c5a979ea0039 e27f6887_ea47_dd44_7933_5faa0f6bcf4d["testFactory"] eab129dc_0fd6_187a_65b0_2b7df04c646b --> e27f6887_ea47_dd44_7933_5faa0f6bcf4d c373140e_7fdf_7fff_8884_991b85bc22b5["waitForHydrate"] eab129dc_0fd6_187a_65b0_2b7df04c646b --> c373140e_7fdf_7fff_8884_991b85bc22b5 f8fbe851_c5d6_c4ee_c044_67a751668c18["test"] eab129dc_0fd6_187a_65b0_2b7df04c646b --> f8fbe851_c5d6_c4ee_c044_67a751668c18 style eab129dc_0fd6_187a_65b0_2b7df04c646b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { expect } from '@playwright/test';
import { testFactory, waitForHydrate } from './test-utils.js';
const test = testFactory(import.meta.url, { root: './fixtures/ts-resolution/' });
function runTest(it) {
it('client:idle', async ({ page, astro }) => {
await page.goto(astro.resolveUrl('/'));
const counter = page.locator('#client-idle');
await expect(counter, 'component is visible').toBeVisible();
const count = counter.locator('pre');
await expect(count, 'initial count is 0').toHaveText('0');
await waitForHydrate(page, counter);
const inc = counter.locator('.increment');
await inc.click();
await expect(count, 'count incremented by 1').toHaveText('1');
});
}
test.describe('TypeScript resolution -', () => {
test.describe('Development', () => {
let devServer;
test.beforeAll(async ({ astro }) => {
devServer = await astro.startDevServer();
});
test.afterAll(async () => {
await devServer.stop();
});
runTest(test);
});
test.describe('Production', () => {
let previewServer;
test.beforeAll(async ({ astro }) => {
await astro.build();
previewServer = await astro.preview();
});
test.afterAll(async () => {
await previewServer.stop();
});
runTest(test);
});
});
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does ts-resolution.test.js do?
ts-resolution.test.js is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain, TestFixtures subdomain.
What functions are defined in ts-resolution.test.js?
ts-resolution.test.js defines 1 function(s): runTest.
What does ts-resolution.test.js depend on?
ts-resolution.test.js imports 4 module(s): test, test-utils.js, testFactory, waitForHydrate.
Where is ts-resolution.test.js in the architecture?
ts-resolution.test.js is located at packages/astro/e2e/ts-resolution.test.js (domain: E2ETesting, subdomain: TestFixtures, directory: packages/astro/e2e).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free