-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
827af29
commit 0446e1d
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
projects/nx-verdaccio/src/plugin/targets/environment.targets.unit-test.ts
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { describe } from 'vitest'; | ||
|
||
describe('isEnvProject', () => { | ||
//export function isEnvProject( | ||
// projectConfig: ProjectConfiguration, | ||
// options: NormalizedCreateNodeOptions['environments'] | ||
// ): boolean { | ||
// const { tags: existingTags = [], targets } = projectConfig; | ||
// const existingTargetNames = Object.keys(targets ?? {}); | ||
// const { | ||
// filterByTags: environmentsTagFilters, | ||
// targetNames: environmentTargetNames, | ||
// } = options; | ||
// | ||
|
||
|
||
// if (!existingTargetNames || !environmentTargetNames) { | ||
// return false; | ||
// } | ||
// | ||
// if ( | ||
// existingTargetNames.some((existingTarget) => | ||
// environmentTargetNames.includes(existingTarget) | ||
// ) | ||
// ) { | ||
// if (existingTags && environmentsTagFilters) { | ||
// return existingTags.some((existingTag) => | ||
// environmentsTagFilters.includes(existingTag) | ||
// ); | ||
// } | ||
// return true; | ||
// } | ||
// | ||
// return false; | ||
// } | ||
|
||
// IT test | ||
// if (!existingTargetNames || !environmentTargetNames) { | ||
// return false; | ||
// } | ||
|
||
// IT test | ||
// if ( | ||
// existingTargetNames.some((existingTarget) => | ||
// environmentTargetNames.includes(existingTarget) | ||
// ) | ||
// ) { | ||
// IT test | ||
// if (existingTags && environmentsTagFilters) { | ||
// return existingTags.some((existingTag) => | ||
// environmentsTagFilters.includes(existingTag) | ||
// ); | ||
// } | ||
|
||
// return true; | ||
// } | ||
// IT test | ||
// // return false; | ||
|
||
|
||
}) |