You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/__snapshots__/cli.test.ts.snap
+123Lines changed: 123 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -717,6 +717,35 @@ exports[`cli completion tests for commander > cli option value handling > should
717
717
"
718
718
`;
719
719
720
+
exports[`cli completion tests for commander > copy command argument handlers > should complete destination argument with build suggestions 1`] =`
721
+
"build/ Build output
722
+
release/ Release directory
723
+
backup/ Backup location
724
+
:4
725
+
"
726
+
`;
727
+
728
+
exports[`cli completion tests for commander > copy command argument handlers > should complete source argument with directory suggestions 1`] =`
729
+
"src/ Source directory
730
+
dist/ Distribution directory
731
+
public/ Public assets
732
+
:4
733
+
"
734
+
`;
735
+
736
+
exports[`cli completion tests for commander > copy command argument handlers > should filter destination suggestions when typing partial input 1`] =`
737
+
"build/ Build output
738
+
backup/ Backup location
739
+
:4
740
+
"
741
+
`;
742
+
743
+
exports[`cli completion tests for commander > copy command argument handlers > should filter source suggestions when typing partial input 1`] =`
744
+
"src/ Source directory
745
+
:4
746
+
"
747
+
`;
748
+
720
749
exports[`cli completion tests for commander > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space 1`] =`
721
750
"--port Specify port
722
751
:4
@@ -737,6 +766,96 @@ exports[`cli completion tests for commander > edge case completions for end with
737
766
"
738
767
`;
739
768
769
+
exports[`cli completion tests for commander > lint command argument handlers > should complete files argument with file suggestions 1`] =`
770
+
"main.ts Main file
771
+
index.ts Index file
772
+
:4
773
+
"
774
+
`;
775
+
776
+
exports[`cli completion tests for commander > lint command argument handlers > should continue completing variadic files argument after first file 1`] =`
777
+
"main.ts Main file
778
+
index.ts Index file
779
+
:4
780
+
"
781
+
`;
782
+
783
+
exports[`cli completion tests for commander > lint command argument handlers > should continue completing variadic suggestions after first file 1`] =`
784
+
"index.ts Index file
785
+
:4
786
+
"
787
+
`;
788
+
789
+
exports[`cli completion tests for commander > lint command argument handlers > should filter file suggestions when typing partial input 1`] =`
790
+
"main.ts Main file
791
+
:4
792
+
"
793
+
`;
794
+
795
+
exports[`cli completion tests for commander > positional argument completions > should complete multiple positional arguments when ending with part of the value 1`] =`
796
+
"index.ts Index file
797
+
:4
798
+
"
799
+
`;
800
+
801
+
exports[`cli completion tests for commander > positional argument completions > should complete multiple positional arguments when ending with space 1`] =`
802
+
"main.ts Main file
803
+
index.ts Index file
804
+
:4
805
+
"
806
+
`;
807
+
808
+
exports[`cli completion tests for commander > positional argument completions > should complete single positional argument when ending with space 1`] =`
809
+
"main.ts Main file
810
+
index.ts Index file
811
+
:4
812
+
"
813
+
`;
814
+
815
+
exports[`cli completion tests for commander > root command argument tests > should complete root command project argument 1`] =`
816
+
"dev Start dev server
817
+
serve Start the server
818
+
build Build the project
819
+
deploy Deploy the application
820
+
lint Lint source files
821
+
copy Copy files
822
+
my-app My application
823
+
my-lib My library
824
+
my-tool My tool
825
+
:4
826
+
"
827
+
`;
828
+
829
+
exports[`cli completion tests for commander > root command argument tests > should complete root command project argument after options 1`] =`
830
+
"dev Start dev server
831
+
serve Start the server
832
+
build Build the project
833
+
deploy Deploy the application
834
+
lint Lint source files
835
+
copy Copy files
836
+
my-app My application
837
+
my-lib My library
838
+
my-tool My tool
839
+
:4
840
+
"
841
+
`;
842
+
843
+
exports[`cli completion tests for commander > root command argument tests > should complete root command project argument with options and partial input 1`] =`
844
+
"my-app My application
845
+
my-lib My library
846
+
my-tool My tool
847
+
:4
848
+
"
849
+
`;
850
+
851
+
exports[`cli completion tests for commander > root command argument tests > should complete root command project argument with partial input 1`] =`
852
+
"my-app My application
853
+
my-lib My library
854
+
my-tool My tool
855
+
:4
856
+
"
857
+
`;
858
+
740
859
exports[`cli completion tests for commander > root command option tests > should complete root command --logLevel option values 1`] =`
0 commit comments