@@ -2,13 +2,13 @@ import assert from 'node:assert/strict';
22import { promises as fs , readFileSync } from 'node:fs' ;
33import { isIPv4 } from 'node:net' ;
44import { join } from 'node:path' ;
5+ import { platform } from 'node:process' ;
56import { Writable } from 'node:stream' ;
67import { describe , it } from 'node:test' ;
78import { fileURLToPath } from 'node:url' ;
89import { stripVTControlCharacters } from 'node:util' ;
9- import { cli , cliServerLogSetup , loadFixture , parseCliDevStart } from './test-utils.js' ;
1010import { readFromClipboard } from '../dist/cli/info/index.js' ;
11- import { platform } from 'node:process ' ;
11+ import { cli , cliServerLogSetup , loadFixture , parseCliDevStart } from './test-utils.js ' ;
1212
1313describe ( 'astro cli' , ( ) => {
1414 const cliServerLogSetupWithFixture = ( flags , cmd ) => {
@@ -88,14 +88,16 @@ describe('astro cli', () => {
8888 assert . equal ( proc . exitCode , 0 ) ;
8989
9090 // On Linux we only check if we have Wayland or x11. In Codespaces it falsely reports that it does have x11
91- if ( platform === 'linux' && ( ( ! process . env . WAYLAND_DISPLAY && ! process . env . DISPLAY ) || process . env . CODESPACES ) ) {
91+ if (
92+ platform === 'linux' &&
93+ ( ( ! process . env . WAYLAND_DISPLAY && ! process . env . DISPLAY ) || process . env . CODESPACES )
94+ ) {
9295 assert . ok ( proc . stdout . includes ( 'Please manually copy the text above' ) ) ;
9396 } else {
9497 assert . ok ( proc . stdout . includes ( 'Copied to clipboard!' ) ) ;
9598 const clipboardContent = await readFromClipboard ( ) ;
9699 assert . ok ( clipboardContent . includes ( `v${ pkgVersion } ` ) ) ;
97100 }
98-
99101 } ) ;
100102
101103 it (
0 commit comments