-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): replace empty preset with apps
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 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 |
---|---|---|
|
@@ -96,7 +96,7 @@ describe('create-nx-workspace', () => { | |
it('should be able to create an empty workspace built for apps', () => { | ||
const wsName = uniq('apps'); | ||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
preset: 'apps', | ||
packageManager, | ||
}); | ||
|
||
|
@@ -273,7 +273,7 @@ describe('create-nx-workspace', () => { | |
it('should be able to create a workspace with a custom base branch and HEAD', () => { | ||
const wsName = uniq('branch'); | ||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
preset: 'apps', | ||
base: 'main', | ||
packageManager, | ||
}); | ||
|
@@ -282,7 +282,7 @@ describe('create-nx-workspace', () => { | |
it('should be able to create a workspace with custom commit information', () => { | ||
const wsName = uniq('branch'); | ||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
preset: 'apps', | ||
extraArgs: | ||
'--commit.name="John Doe" --commit.email="[email protected]" --commit.message="Custom commit message!"', | ||
packageManager, | ||
|
@@ -307,8 +307,8 @@ describe('create-nx-workspace', () => { | |
process.env.SELECTED_PM = 'npm'; | ||
|
||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
packageManager, | ||
preset: 'apps', | ||
packageManager: 'npm', | ||
}); | ||
|
||
checkFilesDoNotExist('yarn.lock'); | ||
|
@@ -320,7 +320,7 @@ describe('create-nx-workspace', () => { | |
it('should return error when ci workflow is selected but no cloud is set up', () => { | ||
const wsName = uniq('github'); | ||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
preset: 'apps', | ||
packageManager, | ||
ci: 'circleci', | ||
}); | ||
|
@@ -332,7 +332,7 @@ describe('create-nx-workspace', () => { | |
function setupProject(envPm: 'npm' | 'yarn' | 'pnpm') { | ||
process.env.SELECTED_PM = envPm; | ||
runCreateWorkspace(uniq('pm'), { | ||
preset: 'empty', | ||
preset: 'apps', | ||
packageManager: envPm, | ||
useDetectedPm: true, | ||
}); | ||
|
@@ -379,7 +379,7 @@ describe('create-nx-workspace', () => { | |
|
||
describe('create-nx-workspace custom parent folder', () => { | ||
const tmpDir = `${e2eCwd}/${uniq('with space')}`; | ||
const wsName = uniq('empty'); | ||
const wsName = uniq('parent'); | ||
const packageManager = getSelectedPackageManager() || 'pnpm'; | ||
|
||
afterEach(() => cleanupProject({ cwd: `${tmpDir}/${wsName}` })); | ||
|
@@ -388,7 +388,7 @@ describe('create-nx-workspace custom parent folder', () => { | |
mkdirSync(tmpDir, { recursive: true }); | ||
|
||
runCreateWorkspace(wsName, { | ||
preset: 'empty', | ||
preset: 'apps', | ||
packageManager, | ||
cwd: tmpDir, | ||
}); | ||
|