@@ -26,35 +26,36 @@ import { productName } from "../../../plugins/plugin-client-default/config.d/nam
2626import { Tree } from "./Input"
2727
2828function githubActionsOS ( ) {
29- return process . env . RUNNER_OS
30- . replace ( / m a c O S / , "darwin" )
29+ return process . env . RUNNER_OS . replace ( / m a c O S / , "darwin" )
3130 . replace ( / L i n u x / , "linux" )
3231 . replace ( / W i n d o w s / , "win32" )
3332}
3433
3534function githubActionsArch ( ) {
36- return process . env . RUNNER_ARCH
37- . replace ( / X 6 4 / , 'x64' )
38- . replace ( / A R M 6 4 / , 'arm64' )
35+ return process . env . RUNNER_ARCH . replace ( / X 6 4 / , "x64" ) . replace ( / A R M 6 4 / , "arm64" )
3936}
4037
4138function electronProductionPath ( ) {
42- return process . platform === 'linux' ? productName
43- : process . platform === 'win32' ? `${ productName } .exe`
39+ return process . platform === "linux"
40+ ? productName
41+ : process . platform === "win32"
42+ ? `${ productName } .exe`
4443 : join ( productName + ".app" , "Contents/MacOS" , productName )
4544}
4645
4746async function startElectron ( ) {
4847 // Launch Electron app; "shell" tells Kui to ignore the command line
4948 // and just launch a plain shell
50- const executablePath = ! process . env . EXECUTABLE_PATH ? undefined
49+ const executablePath = ! process . env . EXECUTABLE_PATH
50+ ? undefined
5151 : process . env . EXECUTABLE_PATH !== "github-actions-production"
5252 ? process . env . EXECUTABLE_PATH
53- : join ( process . env . GITHUB_WORKSPACE ,
54- 'dist/electron' ,
55- `${ productName } -${ githubActionsOS ( ) } -${ githubActionsArch ( ) } ` ,
56- electronProductionPath ( )
57- )
53+ : join (
54+ process . env . GITHUB_WORKSPACE ,
55+ "dist/electron" ,
56+ `${ productName } -${ githubActionsOS ( ) } -${ githubActionsArch ( ) } ` ,
57+ electronProductionPath ( )
58+ )
5859
5960 const app = await electron . launch ( { args : [ main , "shell" ] , executablePath } )
6061
@@ -122,7 +123,9 @@ export default function doPlan(markdown: Input) {
122123
123124 // the path.relative is not needed, but we are using it to test
124125 // that relative paths work
125- await page . keyboard . type ( `plan -u ${ slash ( relative ( process . cwd ( ) , join ( __dirname , "../markdowns" , markdown . input ) ) ) } ` )
126+ await page . keyboard . type (
127+ `plan -u ${ slash ( relative ( process . cwd ( ) , join ( __dirname , "../markdowns" , markdown . input ) ) ) } `
128+ )
126129 await page . keyboard . press ( "Enter" )
127130
128131 const tree = markdown . tree ( "guide" )
0 commit comments