@@ -2,8 +2,8 @@ import { type MockInstance, expect, vi } from 'vitest';
22import { osAgnosticPath } from '@code-pushup/test-utils' ;
33import type { Command } from '../internal/types.js' ;
44import {
5- parseAutorunExecutorOnlyOptions ,
6- parseAutorunExecutorOptions ,
5+ parseCliExecutorOnlyOptions ,
6+ parseCliExecutorOptions ,
77 parsePrintConfigExecutorOptions ,
88} from './utils.js' ;
99
@@ -23,57 +23,57 @@ describe('parsePrintConfigExecutorOptions', () => {
2323 } ) ;
2424} ) ;
2525
26- describe ( 'parseAutorunExecutorOnlyOptions ' , ( ) => {
26+ describe ( 'parseCliExecutorOnlyOptions ' , ( ) => {
2727 it ( 'should provide NO default projectPrefix' , ( ) => {
28- expect ( parseAutorunExecutorOnlyOptions ( { } ) ) . toStrictEqual (
28+ expect ( parseCliExecutorOnlyOptions ( { } ) ) . toStrictEqual (
2929 expect . not . objectContaining ( { projectPrefix : expect . anything ( ) } ) ,
3030 ) ;
3131 } ) ;
3232
3333 it ( 'should process given projectPrefix' , ( ) => {
34- expect (
35- parseAutorunExecutorOnlyOptions ( { projectPrefix : 'cli' } ) ,
36- ) . toStrictEqual ( expect . objectContaining ( { projectPrefix : 'cli' } ) ) ;
34+ expect ( parseCliExecutorOnlyOptions ( { projectPrefix : 'cli' } ) ) . toStrictEqual (
35+ expect . objectContaining ( { projectPrefix : 'cli' } ) ,
36+ ) ;
3737 } ) ;
3838
3939 it ( 'should provide NO default dryRun' , ( ) => {
40- expect ( parseAutorunExecutorOnlyOptions ( { } ) ) . toStrictEqual (
40+ expect ( parseCliExecutorOnlyOptions ( { } ) ) . toStrictEqual (
4141 expect . not . objectContaining ( { dryRun : expect . anything ( ) } ) ,
4242 ) ;
4343 } ) ;
4444
4545 it ( 'should process given dryRun' , ( ) => {
46- expect ( parseAutorunExecutorOnlyOptions ( { dryRun : false } ) ) . toStrictEqual (
46+ expect ( parseCliExecutorOnlyOptions ( { dryRun : false } ) ) . toStrictEqual (
4747 expect . objectContaining ( { dryRun : false } ) ,
4848 ) ;
4949 } ) ;
5050
5151 it ( 'should provide default onlyPlugins' , ( ) => {
52- expect ( parseAutorunExecutorOnlyOptions ( { } ) ) . toStrictEqual (
52+ expect ( parseCliExecutorOnlyOptions ( { } ) ) . toStrictEqual (
5353 expect . not . objectContaining ( { onlyPlugins : [ 'json' ] } ) ,
5454 ) ;
5555 } ) ;
5656
5757 it ( 'should process given onlyPlugins' , ( ) => {
5858 expect (
59- parseAutorunExecutorOnlyOptions ( { onlyPlugins : [ 'md' , 'json' ] } ) ,
59+ parseCliExecutorOnlyOptions ( { onlyPlugins : [ 'md' , 'json' ] } ) ,
6060 ) . toStrictEqual ( expect . objectContaining ( { onlyPlugins : [ 'md' , 'json' ] } ) ) ;
6161 } ) ;
6262
6363 it ( 'should log env variables options if given' , async ( ) => {
6464 expect (
65- parseAutorunExecutorOnlyOptions ( { env : { TEST_ENV_VAR : '42' } } ) ,
65+ parseCliExecutorOnlyOptions ( { env : { TEST_ENV_VAR : '42' } } ) ,
6666 ) . toStrictEqual ( expect . objectContaining ( { env : { TEST_ENV_VAR : '42' } } ) ) ;
6767 } ) ;
6868
6969 it ( 'should process given bin' , ( ) => {
70- expect ( parseAutorunExecutorOnlyOptions ( { bin : 'index.js' } ) ) . toStrictEqual (
70+ expect ( parseCliExecutorOnlyOptions ( { bin : 'index.js' } ) ) . toStrictEqual (
7171 expect . objectContaining ( { bin : 'index.js' } ) ,
7272 ) ;
7373 } ) ;
7474} ) ;
7575
76- describe ( 'parseAutorunExecutorOptions ' , ( ) => {
76+ describe ( 'parseCliExecutorOptions ' , ( ) => {
7777 let processEnvSpy : MockInstance < [ ] , NodeJS . ProcessEnv > ;
7878
7979 beforeAll ( ( ) => {
@@ -86,7 +86,7 @@ describe('parseAutorunExecutorOptions', () => {
8686
8787 it ( 'should leverage other config helper to assemble the executor config' , ( ) => {
8888 const projectName = 'my-app' ;
89- const executorOptions = parseAutorunExecutorOptions (
89+ const executorOptions = parseCliExecutorOptions (
9090 {
9191 persist : {
9292 filename : 'from-options' ,
@@ -130,7 +130,7 @@ describe('parseAutorunExecutorOptions', () => {
130130 TSX_TSCONFIG_PATH : 'tsconfig.base.json' ,
131131 } ;
132132
133- const executorOptions = parseAutorunExecutorOptions (
133+ const executorOptions = parseCliExecutorOptions (
134134 { env } ,
135135 {
136136 projectName,
@@ -149,7 +149,7 @@ describe('parseAutorunExecutorOptions', () => {
149149 'should include upload config for command %s if API key is provided' ,
150150 command => {
151151 const projectName = 'my-app' ;
152- const executorOptions = parseAutorunExecutorOptions (
152+ const executorOptions = parseCliExecutorOptions (
153153 {
154154 command,
155155 upload : {
@@ -178,7 +178,7 @@ describe('parseAutorunExecutorOptions', () => {
178178 'should not include upload config for command %s' ,
179179 command => {
180180 const projectName = 'my-app' ;
181- const executorOptions = parseAutorunExecutorOptions (
181+ const executorOptions = parseCliExecutorOptions (
182182 {
183183 command,
184184 upload : {
0 commit comments