Skip to content

Commit

Permalink
Fix broken project CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Castro, Mario committed Dec 5, 2024
1 parent 66dee18 commit 0fdc542
Showing 1 changed file with 46 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,20 @@ describe('Project', () => {
it('should create a new project using short flags to configure it', async () => {
const projectName = 'cart-demo-short-flags'
const flags = [
`-a "${AUTHOR}"`,
`-d "${DESCRIPTION}"`,
`-H "${HOMEPAGE}"`,
`-l "${LICENSE}"`,
`-p "${PROVIDER}"`,
`-r "${REPO_URL}"`,
`-v "${VERSION}"`,
'-a',
AUTHOR,
'-d',
DESCRIPTION,
'-H',
HOMEPAGE,
'-l',
LICENSE,
'-p',
PROVIDER,
'-r',
REPO_URL,
'-v',
VERSION,
// We skip dependencies and git installation to make this test faster
'--skipInstall',
'--skipGit',
Expand All @@ -261,13 +268,20 @@ describe('Project', () => {
it('should create a new project using long flags to configure it', async () => {
const projectName = 'cart-demo-long-flags'
const flags = [
`--author "${AUTHOR}"`,
`--description "${DESCRIPTION}"`,
`--homepage "${HOMEPAGE}"`,
`--license "${LICENSE}"`,
`--providerPackageName "${PROVIDER}"`,
`--repository "${REPO_URL}"`,
`--version "${VERSION}"`,
'--author',
AUTHOR,
'--description',
DESCRIPTION,
'--homepage',
HOMEPAGE,
'--license',
LICENSE,
'--providerPackageName',
PROVIDER,
'--repository',
REPO_URL,
'--version',
VERSION,
// We skip dependencies and git installation to make this test faster
'--skipInstall',
'--skipGit',
Expand Down Expand Up @@ -374,8 +388,10 @@ describe('Project', () => {
license: LICENSE,
}
const flags = [
`--providerPackageName "${PROVIDER}"`,
`--repository "${REPO_URL}"`,
'--providerPackageName',
PROVIDER,
'--repository',
REPO_URL,
// We skip dependencies and git installation to make this test faster
'--skipInstall',
'--skipGit',
Expand Down Expand Up @@ -403,13 +419,20 @@ describe('Project', () => {
)

const flags = [
`--author "${AUTHOR}"`,
`--description "${DESCRIPTION}"`,
`--homepage "${HOMEPAGE}"`,
`--license "${LICENSE}"`,
'--providerPackageName "invalid-provider"',
`--repository "${REPO_URL}"`,
`--version "${VERSION}"`,
'--author ',
AUTHOR,
'--description',
DESCRIPTION,
'--homepage',
HOMEPAGE,
'--license',
LICENSE,
'--providerPackageName',
'invalid-provider',
'--repository',
REPO_URL,
'--version',
VERSION,
// We skip dependencies and git installation to make this test faster
'--skipInstall',
'--skipGit',
Expand Down

0 comments on commit 0fdc542

Please sign in to comment.