-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: arpit khare <[email protected]>
- Loading branch information
Showing
45 changed files
with
251 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ Array [ | |
Object { | ||
"name": "Magento 2.3.3 with Venia sample data installed", | ||
"short": "2.3.3-venia-cloud", | ||
"value": "https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/", | ||
"value": "https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/", | ||
}, | ||
Object { | ||
"name": "Other (I will provide my own backing Magento instance)", | ||
|
@@ -94,7 +94,7 @@ Array [ | |
" | ||
Running command: | ||
[97mbuildpack create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install[39m | ||
[97mbuildpack create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install[39m | ||
[97m[39m | ||
[97m[39m", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jest.mock('inquirer', () => ({ | |
author: 'Gooston <[email protected]>', | ||
template: '@magento/[email protected]', | ||
backendUrl: | ||
'https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/', | ||
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/', | ||
backendEdition: 'AC', | ||
braintreeToken: 'sandbox_8yrzsvtm_s2bg8fs563crhqzk', | ||
npmClient: 'yarn', | ||
|
@@ -65,7 +65,7 @@ beforeAll(() => { | |
description: | ||
'Magento 2.3.3 with Venia sample data installed', | ||
url: | ||
'https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/' | ||
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/' | ||
}, | ||
{ | ||
name: '2.3.4-venia-cloud', | ||
|
@@ -221,14 +221,14 @@ test('should execute buildpack with answers provided', async () => { | |
await createPWA(); | ||
|
||
expect(execa.shell.mock.calls[0][0]).toMatchInlineSnapshot( | ||
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"` | ||
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"` | ||
); | ||
}); | ||
|
||
test('should not include customBackendUrl in shell script', async () => { | ||
inquirer.prompt.mockResolvedValueOnce({ | ||
customBackendUrl: | ||
'https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/', | ||
'https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/', | ||
directory: 'test', | ||
name: 'test', | ||
author: 'Gooston <[email protected]>', | ||
|
@@ -242,7 +242,7 @@ test('should not include customBackendUrl in shell script', async () => { | |
await createPWA(); | ||
|
||
expect(execa.shell.mock.calls[0][0]).toMatchInlineSnapshot( | ||
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"` | ||
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <[email protected]>\\" --template \\"@magento/[email protected]\\" --backend-url \\"https://master-7rqtwti-c5v7sxvquxwl4.eu-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"` | ||
); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.