Home / File/ bin.test.ts — astro Source File

bin.test.ts — astro Source File

Architecture documentation for bin.test.ts, a typescript file in the astro codebase. 4 imports, 0 dependents.

File typescript 4 imports

Entity Profile

Dependency Diagram

graph LR
  ba560d59_97b6_a68b_dad2_c8a73c115b34["bin.test.ts"]
  db323e8c_04ef_9777_0487_224de5819a30["node:assert"]
  ba560d59_97b6_a68b_dad2_c8a73c115b34 --> db323e8c_04ef_9777_0487_224de5819a30
  dc804f3e_b1ea_df4a_3cc9_40b536be6a5d["node:child_process"]
  ba560d59_97b6_a68b_dad2_c8a73c115b34 --> dc804f3e_b1ea_df4a_3cc9_40b536be6a5d
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  ba560d59_97b6_a68b_dad2_c8a73c115b34 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"]
  ba560d59_97b6_a68b_dad2_c8a73c115b34 --> d9a92db9_c95e_9165_13ac_24b3d859d946
  style ba560d59_97b6_a68b_dad2_c8a73c115b34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import assert from 'node:assert';
import { spawnSync } from 'node:child_process';
import { describe, it } from 'node:test';
import { fileURLToPath } from 'node:url';

describe('astro-check - binary', async () => {
	it('Can run the binary', async () => {
		const childProcess = spawnSync('node', ['../bin/astro-check.js', '--root', './fixture'], {
			cwd: fileURLToPath(new URL('./', import.meta.url)),
		});

		assert.strictEqual(childProcess.status, 1);
		assert.ok(childProcess.stdout.toString().includes('Getting diagnostics for Astro files in'));
		assert.ok(childProcess.stdout.toString().includes('1 error'));
		assert.ok(childProcess.stdout.toString().includes('1 warning'));
		assert.ok(childProcess.stdout.toString().includes('1 hint'));
	});
});

Dependencies

  • node:assert
  • node:child_process
  • node:test
  • node:url

Frequently Asked Questions

What does bin.test.ts do?
bin.test.ts is a source file in the astro codebase, written in typescript.
What does bin.test.ts depend on?
bin.test.ts imports 4 module(s): node:assert, node:child_process, node:test, node:url.
Where is bin.test.ts in the architecture?
bin.test.ts is located at packages/language-tools/astro-check/test/bin.test.ts (directory: packages/language-tools/astro-check/test).

Analyze Your Own Codebase

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

Try Supermodel Free