@@ -28,23 +28,23 @@ describe('init', () => {
28
28
// Then
29
29
expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
30
30
choices : [
31
- { label : 'Build a Remix app (recommended)' , value : 'remix ' } ,
31
+ { label : 'Build a React Router app (recommended)' , value : 'reactRouter ' } ,
32
32
{ label : 'Build an extension-only app' , value : 'none' } ,
33
33
] ,
34
34
message : 'Get started building your app:' ,
35
- defaultValue : 'remix ' ,
35
+ defaultValue : 'reactRouter ' ,
36
36
} )
37
37
expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'none' , globalCLIResult} )
38
38
} )
39
39
40
40
test ( 'it renders branches for templates that have them' , async ( ) => {
41
41
const answers = {
42
- template : 'https://github.com/Shopify/shopify-app-template-remix #javascript' ,
42
+ template : 'https://github.com/Shopify/shopify-app-template-react-router #javascript' ,
43
43
}
44
44
const options : InitOptions = { }
45
45
46
46
// Given
47
- vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'remix ' )
47
+ vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'reactRouter ' )
48
48
vi . mocked ( renderSelectPrompt ) . mockResolvedValueOnce ( 'javascript' )
49
49
50
50
// When
@@ -53,19 +53,19 @@ describe('init', () => {
53
53
// Then
54
54
expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
55
55
choices : [
56
- { label : 'Build a Remix app (recommended)' , value : 'remix ' } ,
56
+ { label : 'Build a React Router app (recommended)' , value : 'reactRouter ' } ,
57
57
{ label : 'Build an extension-only app' , value : 'none' } ,
58
58
] ,
59
59
message : 'Get started building your app:' ,
60
- defaultValue : 'remix ' ,
60
+ defaultValue : 'reactRouter ' ,
61
61
} )
62
62
expect ( renderSelectPrompt ) . toHaveBeenCalledWith ( {
63
63
choices : [
64
64
{ label : 'JavaScript' , value : 'javascript' } ,
65
65
{ label : 'TypeScript' , value : 'main' } ,
66
66
] ,
67
- message : 'For your Remix template, which language do you want?' ,
67
+ message : 'For your React Router template, which language do you want?' ,
68
68
} )
69
- expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'remix ' , globalCLIResult} )
69
+ expect ( got ) . toEqual ( { ...options , ...answers , templateType : 'reactRouter ' , globalCLIResult} )
70
70
} )
71
71
} )
0 commit comments