Skip to content

Commit

Permalink
tests: add tests structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianRomanski committed Dec 12, 2024
1 parent 827af29 commit 0446e1d
Showing 1 changed file with 61 additions and 0 deletions.
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;


})

0 comments on commit 0446e1d

Please sign in to comment.