@@ -42,11 +42,6 @@ const options = {
42
42
title : "Test Title" ,
43
43
} satisfies Options ;
44
44
45
- const opts = {
46
- ...options ,
47
- excludeLintKnip : undefined ,
48
- } ;
49
-
50
45
describe ( "createRerunSuggestion" , ( ) => {
51
46
it ( "includes key-value pairs with mixed truthy and falsy values" , ( ) => {
52
47
const actual = createRerunSuggestion ( options ) ;
@@ -102,25 +97,25 @@ describe("createRerunSuggestion", () => {
102
97
103
98
it ( "does not list all excludes when using common base" , ( ) => {
104
99
const common = createRerunSuggestion ( {
105
- ...opts ,
106
100
base : "common" ,
107
101
...getExclusions ( options , "common" ) ,
102
+ excludeLintKnip : undefined ,
108
103
} ) ;
109
104
110
105
expect ( common ) . toMatchInlineSnapshot (
111
- '"npx create-typescript-app --mode create --base common --access public --author TestAuthor --description \\"Test description.\\" --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors true --keywords \\"abc def ghi jkl mno pqr\\" --mode create --owner TestOwner --repository test-repository --skip-github-api true --skip-install true --skip-removal true --title \\"Test Title\\" "' ,
106
+ '"npx create-typescript-app --mode undefined --base common"' ,
112
107
) ;
113
108
} ) ;
114
109
115
110
it ( "does not list all excludes when using minimum base" , ( ) => {
116
111
const minimum = createRerunSuggestion ( {
117
- ...opts ,
118
112
base : "minimum" ,
119
113
...getExclusions ( options , "minimum" ) ,
114
+ excludeLintKnip : undefined ,
120
115
} ) ;
121
116
122
117
expect ( minimum ) . toMatchInlineSnapshot (
123
- '"npx create-typescript-app --mode create --base minimum --access public --author TestAuthor --description \\"Test description.\\" --directory . --email-github [email protected] --email-npm [email protected] --keywords \\"abc def ghi jkl mno pqr\\" --mode create --owner TestOwner --repository test-repository --skip-github-api true --skip-install true --skip-removal true --title \\"Test Title\\" "' ,
118
+ '"npx create-typescript-app --mode undefined --base minimum"' ,
124
119
) ;
125
120
} ) ;
126
121
} ) ;
0 commit comments