Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/features/features/app.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Feature: Apps
Background:
Given I have a working directory

Scenario: I scaffold ui, theme and function extensions in a remix app
And I create a remix app named MyExtendedApp with npm as package manager
Scenario: I scaffold ui, theme and function extensions in a react-router app
And I create a react-router app named MyExtendedApp with npm as package manager
# When I create an extension named TestPurchaseExtensionReact of type post_purchase_ui and flavor react
# Then I have an extension named TestPurchaseExtensionReact of type checkout_post_purchase and flavor react
# When I create an extension named TestThemeExtension of type theme_app_extension
Expand Down
11 changes: 5 additions & 6 deletions packages/features/steps/create-app.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ When(
/I create a (.+) app named (.+) with (.+) as package manager/,
{timeout: 5 * 60 * 1000},
async function (appType: string, appName: string, packageManager: string) {
let template
let templateArgs
switch (appType) {
case 'remix':
template = 'https://github.com/Shopify/shopify-app-template-remix'
case 'react-router':
templateArgs = ['--template', 'reactRouter', '--flavor', 'javascript']
break
case 'extension-only':
template = 'https://github.com/Shopify/shopify-app-template-none'
templateArgs = ['--template', 'none']
break
default:
throw new Error(`Unknown app type: ${appType}`)
Expand All @@ -73,8 +73,7 @@ When(
'--package-manager',
packageManager,
'--local',
'--template',
template,
...templateArgs,
],
{env: {...process.env, ...this.temporaryEnv, NODE_OPTIONS: '', FORCE_COLOR: '0'}},
)
Expand Down
Loading