@@ -46,7 +46,18 @@ describe("createRerunSuggestion", () => {
46
46
const actual = createRerunSuggestion ( options ) ;
47
47
48
48
expect ( actual ) . toMatchInlineSnapshot (
49
- `"npx create-typescript-app --mode create --base everything --access public --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --keywords "abc def ghi jkl mno pqr" --mode create --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
49
+ `"npx create-typescript-app --mode create --base everything --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --keywords "abc def ghi jkl mno pqr" --mode create --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
50
+ ) ;
51
+ } ) ;
52
+
53
+ it ( "includes a non-default value when specified" , ( ) => {
54
+ const actual = createRerunSuggestion ( {
55
+ ...options ,
56
+ access : "restricted" ,
57
+ } ) ;
58
+
59
+ expect ( actual ) . toMatchInlineSnapshot (
60
+ `"npx create-typescript-app --mode create --base everything --access restricted --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --keywords "abc def ghi jkl mno pqr" --mode create --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
50
61
) ;
51
62
} ) ;
52
63
@@ -61,7 +72,7 @@ describe("createRerunSuggestion", () => {
61
72
} ) ;
62
73
63
74
expect ( actual ) . toMatchInlineSnapshot (
64
- `"npx create-typescript-app --mode initialize --base everything --access public -- author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --guide https://example.com --guide-title "Test Title" --keywords "abc def ghi jkl mno pqr" --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
75
+ `"npx create-typescript-app --mode initialize --base everything --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --guide https://example.com --guide-title "Test Title" --keywords "abc def ghi jkl mno pqr" --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
65
76
) ;
66
77
} ) ;
67
78
@@ -76,7 +87,7 @@ describe("createRerunSuggestion", () => {
76
87
} ) ;
77
88
78
89
expect ( actual ) . toMatchInlineSnapshot (
79
- `"npx create-typescript-app --mode initialize --base everything --access public -- author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --keywords "abc def ghi jkl mno pqr" --logo test/src.png --logo-alt "Test alt." --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
90
+ `"npx create-typescript-app --mode initialize --base everything --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-package-json --exclude-lint-perfectionist --keywords "abc def ghi jkl mno pqr" --logo test/src.png --logo-alt "Test alt." --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
80
91
) ;
81
92
} ) ;
82
93
@@ -90,7 +101,7 @@ describe("createRerunSuggestion", () => {
90
101
} ) ;
91
102
92
103
expect ( actual ) . toMatchInlineSnapshot (
93
- `"npx create-typescript-app --mode initialize --base everything --access public -- author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-md --exclude-lint-package-json --exclude-lint-perfectionist --exclude-lint-spelling --keywords "abc def ghi jkl mno pqr" --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
104
+ `"npx create-typescript-app --mode initialize --base everything --author TestAuthor --description "Test description." --directory . --email-github [email protected] --email-npm [email protected] --exclude-all-contributors --exclude-compliance --exclude-lint-jsdoc --exclude-lint-json --exclude-lint-knip --exclude-lint-md --exclude-lint-package-json --exclude-lint-perfectionist --exclude-lint-spelling --keywords "abc def ghi jkl mno pqr" --mode initialize --owner TestOwner --repository test-repository --skip-github-api --skip-install --skip-removal --title "Test Title""` ,
94
105
) ;
95
106
} ) ;
96
107
@@ -102,7 +113,7 @@ describe("createRerunSuggestion", () => {
102
113
} ) ;
103
114
104
115
expect ( common ) . toMatchInlineSnapshot (
105
- ' "npx create-typescript-app --mode undefined --base common"' ,
116
+ ` "npx create-typescript-app --mode undefined --base common"` ,
106
117
) ;
107
118
} ) ;
108
119
@@ -114,7 +125,7 @@ describe("createRerunSuggestion", () => {
114
125
} ) ;
115
126
116
127
expect ( minimum ) . toMatchInlineSnapshot (
117
- ' "npx create-typescript-app --mode undefined --base minimum"' ,
128
+ ` "npx create-typescript-app --mode undefined --base minimum"` ,
118
129
) ;
119
130
} ) ;
120
131
} ) ;
0 commit comments