@featurevisor/core 0.60.1 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/index.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/parsers.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/projectConfig.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/adapter.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/filesystemAdapter.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/init/index.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"30","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"31","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"32","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore/index.ts":"33","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts":"34","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts":"35","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts":"36","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts":"37","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts":"38","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts":"39","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts":"40","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts":"41","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts":"42","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts":"43","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.spec.ts":"44","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts":"45","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts":"46","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts":"47","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts":"48","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts":"49","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts":"50","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"51"},{"size":3214,"mtime":1699980005501,"results":"52","hashOfConfig":"53"},{"size":1014,"mtime":1699980005501,"results":"54","hashOfConfig":"53"},{"size":8468,"mtime":1699980005501,"results":"55","hashOfConfig":"53"},{"size":1359,"mtime":1699980005501,"results":"56","hashOfConfig":"53"},{"size":1755,"mtime":1699980005501,"results":"57","hashOfConfig":"53"},{"size":65,"mtime":1699980005501,"results":"58","hashOfConfig":"53"},{"size":12889,"mtime":1699980005501,"results":"59","hashOfConfig":"53"},{"size":4799,"mtime":1699980005501,"results":"60","hashOfConfig":"53"},{"size":60,"mtime":1699980005505,"results":"61","hashOfConfig":"53"},{"size":1035,"mtime":1699980005505,"results":"62","hashOfConfig":"53"},{"size":3464,"mtime":1699980005505,"results":"63","hashOfConfig":"53"},{"size":1089,"mtime":1699980005505,"results":"64","hashOfConfig":"53"},{"size":4650,"mtime":1699980005505,"results":"65","hashOfConfig":"53"},{"size":4874,"mtime":1699980005505,"results":"66","hashOfConfig":"53"},{"size":94,"mtime":1699980005505,"results":"67","hashOfConfig":"53"},{"size":279,"mtime":1699980005505,"results":"68","hashOfConfig":"53"},{"size":1033,"mtime":1699980005505,"results":"69","hashOfConfig":"53"},{"size":540,"mtime":1699980005505,"results":"70","hashOfConfig":"53"},{"size":1476,"mtime":1699980005505,"results":"71","hashOfConfig":"53"},{"size":6250,"mtime":1699980005505,"results":"72","hashOfConfig":"53"},{"size":318,"mtime":1699980005505,"results":"73","hashOfConfig":"53"},{"size":1308,"mtime":1699980005505,"results":"74","hashOfConfig":"53"},{"size":341,"mtime":1699980005505,"results":"75","hashOfConfig":"53"},{"size":1119,"mtime":1699980005505,"results":"76","hashOfConfig":"53"},{"size":3003,"mtime":1699980005505,"results":"77","hashOfConfig":"53"},{"size":5841,"mtime":1699980005505,"results":"78","hashOfConfig":"53"},{"size":2103,"mtime":1699980005505,"results":"79","hashOfConfig":"53"},{"size":31,"mtime":1699980005505,"results":"80","hashOfConfig":"53"},{"size":4376,"mtime":1699980005505,"results":"81","hashOfConfig":"53"},{"size":323,"mtime":1699980005505,"results":"82","hashOfConfig":"53"},{"size":368,"mtime":1699980005505,"results":"83","hashOfConfig":"53"},{"size":1248,"mtime":1699980005505,"results":"84","hashOfConfig":"53"},{"size":641,"mtime":1699980005505,"results":"85","hashOfConfig":"53"},{"size":1524,"mtime":1699980005505,"results":"86","hashOfConfig":"53"},{"size":2854,"mtime":1699980005505,"results":"87","hashOfConfig":"53"},{"size":6187,"mtime":1699980005505,"results":"88","hashOfConfig":"53"},{"size":516,"mtime":1699980005505,"results":"89","hashOfConfig":"53"},{"size":496,"mtime":1699980005505,"results":"90","hashOfConfig":"53"},{"size":607,"mtime":1699980005505,"results":"91","hashOfConfig":"53"},{"size":1560,"mtime":1699980005505,"results":"92","hashOfConfig":"53"},{"size":59,"mtime":1699980005505,"results":"93","hashOfConfig":"53"},{"size":1681,"mtime":1699980005505,"results":"94","hashOfConfig":"53"},{"size":298,"mtime":1699980005505,"results":"95","hashOfConfig":"53"},{"size":932,"mtime":1699980005505,"results":"96","hashOfConfig":"53"},{"size":468,"mtime":1699980005505,"results":"97","hashOfConfig":"53"},{"size":156,"mtime":1699980005505,"results":"98","hashOfConfig":"53"},{"size":31,"mtime":1699980005505,"results":"99","hashOfConfig":"53"},{"size":5247,"mtime":1699980005505,"results":"100","hashOfConfig":"53"},{"size":1950,"mtime":1699980005505,"results":"101","hashOfConfig":"53"},{"size":1316,"mtime":1699980005505,"results":"102","hashOfConfig":"53"},{"size":1993,"mtime":1699980005505,"results":"103","hashOfConfig":"53"},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1haxrgn",{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/projectConfig.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/adapter.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/filesystemAdapter.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["257"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"258","severity":2,"message":"259","line":51,"column":10,"nodeType":"260","messageId":"261","endLine":51,"endColumn":38,"suppressions":"262"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["263"],{"kind":"264","justification":"265"},"directive",""]
1
+ [{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/index.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/parsers.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/config/projectConfig.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/adapter.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/filesystemAdapter.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/init/index.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"30","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"31","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"32","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore/index.ts":"33","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts":"34","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts":"35","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts":"36","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts":"37","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts":"38","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts":"39","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts":"40","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts":"41","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts":"42","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts":"43","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.spec.ts":"44","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts":"45","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts":"46","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts":"47","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts":"48","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts":"49","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts":"50","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"51"},{"size":3214,"mtime":1699985857282,"results":"52","hashOfConfig":"53"},{"size":1014,"mtime":1699985857282,"results":"54","hashOfConfig":"53"},{"size":8468,"mtime":1699985857282,"results":"55","hashOfConfig":"53"},{"size":1359,"mtime":1699985857282,"results":"56","hashOfConfig":"53"},{"size":1755,"mtime":1699985857282,"results":"57","hashOfConfig":"53"},{"size":65,"mtime":1699985857282,"results":"58","hashOfConfig":"53"},{"size":12889,"mtime":1699985857282,"results":"59","hashOfConfig":"53"},{"size":4799,"mtime":1699985857282,"results":"60","hashOfConfig":"53"},{"size":60,"mtime":1699985857282,"results":"61","hashOfConfig":"53"},{"size":1035,"mtime":1699985857282,"results":"62","hashOfConfig":"53"},{"size":3464,"mtime":1699985857282,"results":"63","hashOfConfig":"53"},{"size":1089,"mtime":1699985857282,"results":"64","hashOfConfig":"53"},{"size":4650,"mtime":1699985857282,"results":"65","hashOfConfig":"53"},{"size":4874,"mtime":1699985857282,"results":"66","hashOfConfig":"53"},{"size":94,"mtime":1699985857282,"results":"67","hashOfConfig":"53"},{"size":279,"mtime":1699985857282,"results":"68","hashOfConfig":"53"},{"size":1033,"mtime":1699985857282,"results":"69","hashOfConfig":"53"},{"size":540,"mtime":1699985857282,"results":"70","hashOfConfig":"53"},{"size":1476,"mtime":1699985857282,"results":"71","hashOfConfig":"53"},{"size":6250,"mtime":1699985857282,"results":"72","hashOfConfig":"53"},{"size":318,"mtime":1699985857282,"results":"73","hashOfConfig":"53"},{"size":1308,"mtime":1699985857282,"results":"74","hashOfConfig":"53"},{"size":341,"mtime":1699985857282,"results":"75","hashOfConfig":"53"},{"size":1119,"mtime":1699985857282,"results":"76","hashOfConfig":"53"},{"size":3003,"mtime":1699985857282,"results":"77","hashOfConfig":"53"},{"size":5841,"mtime":1699985857282,"results":"78","hashOfConfig":"53"},{"size":2103,"mtime":1699985857282,"results":"79","hashOfConfig":"53"},{"size":31,"mtime":1699985857282,"results":"80","hashOfConfig":"53"},{"size":4376,"mtime":1699985857282,"results":"81","hashOfConfig":"53"},{"size":323,"mtime":1699985857282,"results":"82","hashOfConfig":"53"},{"size":368,"mtime":1699985857282,"results":"83","hashOfConfig":"53"},{"size":1248,"mtime":1699985857282,"results":"84","hashOfConfig":"53"},{"size":641,"mtime":1699985857282,"results":"85","hashOfConfig":"53"},{"size":1524,"mtime":1699985857282,"results":"86","hashOfConfig":"53"},{"size":2854,"mtime":1699985857282,"results":"87","hashOfConfig":"53"},{"size":6187,"mtime":1699985857282,"results":"88","hashOfConfig":"53"},{"size":516,"mtime":1699985857282,"results":"89","hashOfConfig":"53"},{"size":496,"mtime":1699985857282,"results":"90","hashOfConfig":"53"},{"size":607,"mtime":1699985857282,"results":"91","hashOfConfig":"53"},{"size":1560,"mtime":1699985857282,"results":"92","hashOfConfig":"53"},{"size":59,"mtime":1699985857282,"results":"93","hashOfConfig":"53"},{"size":1681,"mtime":1699985857282,"results":"94","hashOfConfig":"53"},{"size":298,"mtime":1699985857282,"results":"95","hashOfConfig":"53"},{"size":932,"mtime":1699985857282,"results":"96","hashOfConfig":"53"},{"size":468,"mtime":1699985857282,"results":"97","hashOfConfig":"53"},{"size":156,"mtime":1699985857282,"results":"98","hashOfConfig":"53"},{"size":31,"mtime":1699985857282,"results":"99","hashOfConfig":"53"},{"size":5412,"mtime":1699985857282,"results":"100","hashOfConfig":"53"},{"size":2628,"mtime":1699985857282,"results":"101","hashOfConfig":"53"},{"size":1441,"mtime":1699985857282,"results":"102","hashOfConfig":"53"},{"size":1993,"mtime":1699985857282,"results":"103","hashOfConfig":"53"},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1haxrgn",{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config/projectConfig.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/adapter.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/filesystemAdapter.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["257"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"258","severity":2,"message":"259","line":51,"column":10,"nodeType":"260","messageId":"261","endLine":51,"endColumn":38,"suppressions":"262"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["263"],{"kind":"264","justification":"265"},"directive",""]
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.61.0](https://github.com/featurevisor/featurevisor/compare/v0.60.1...v0.61.0) (2023-11-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * filter tests and support verbosity for debugging ([#212](https://github.com/featurevisor/featurevisor/issues/212)) ([414ef6d](https://github.com/featurevisor/featurevisor/commit/414ef6dd7ad47d287a91088aab474216361ee6c6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.60.1](https://github.com/featurevisor/featurevisor/compare/v0.60.0...v0.60.1) (2023-11-14)
7
18
 
8
19
 
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1699980178169" clover="3.2.0">
3
- <project timestamp="1699980178169" name="All files">
2
+ <coverage generated="1699986032940" clover="3.2.0">
3
+ <project timestamp="1699986032940" name="All files">
4
4
  <metrics statements="201" coveredstatements="191" conditionals="110" coveredconditionals="92" methods="30" coveredmethods="30" elements="341" coveredelements="313" complexity="0" loc="201" ncloc="201" packages="4" files="6" classes="6"/>
5
5
  <package name="lib.builder">
6
6
  <metrics statements="90" coveredstatements="86" conditionals="48" coveredconditionals="39" methods="14" coveredmethods="14"/>
@@ -146,7 +146,7 @@
146
146
  <div class='footer quiet pad2 space-top1 center small'>
147
147
  Code coverage generated by
148
148
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149
- at 2023-11-14T16:42:58.144Z
149
+ at 2023-11-14T18:20:32.925Z
150
150
  </div>
151
151
  <script src="prettify.js"></script>
152
152
  <script>
@@ -175,7 +175,7 @@ exports.getUpdatedAvailableRangesAfterFilling = getUpdatedAvailableRangesAfterFi
175
175
  <div class='footer quiet pad2 space-top1 center small'>
176
176
  Code coverage generated by
177
177
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
178
- at 2023-11-14T16:42:58.144Z
178
+ at 2023-11-14T18:20:32.925Z
179
179
  </div>
180
180
  <script src="../../prettify.js"></script>
181
181
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2023-11-14T16:42:58.144Z
119
+ at 2023-11-14T18:20:32.925Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -442,7 +442,7 @@ exports.getTraffic = getTraffic;
442
442
  <div class='footer quiet pad2 space-top1 center small'>
443
443
  Code coverage generated by
444
444
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
445
- at 2023-11-14T16:42:58.144Z
445
+ at 2023-11-14T18:20:32.925Z
446
446
  </div>
447
447
  <script src="../../prettify.js"></script>
448
448
  <script>
@@ -139,7 +139,7 @@ exports.checkIfObjectsAreEqual = checkIfObjectsAreEqual;
139
139
  <div class='footer quiet pad2 space-top1 center small'>
140
140
  Code coverage generated by
141
141
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
142
- at 2023-11-14T16:42:58.144Z
142
+ at 2023-11-14T18:20:32.925Z
143
143
  </div>
144
144
  <script src="../../prettify.js"></script>
145
145
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2023-11-14T16:42:58.144Z
104
+ at 2023-11-14T18:20:32.925Z
105
105
  </div>
106
106
  <script src="../../prettify.js"></script>
107
107
  <script>
@@ -193,7 +193,7 @@ export function getUpdatedAvailableRangesAfterFilling(
193
193
  <div class='footer quiet pad2 space-top1 center small'>
194
194
  Code coverage generated by
195
195
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
196
- at 2023-11-14T16:42:58.144Z
196
+ at 2023-11-14T18:20:32.925Z
197
197
  </div>
198
198
  <script src="../../prettify.js"></script>
199
199
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2023-11-14T16:42:58.144Z
119
+ at 2023-11-14T18:20:32.925Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -553,7 +553,7 @@ export function getTraffic(
553
553
  <div class='footer quiet pad2 space-top1 center small'>
554
554
  Code coverage generated by
555
555
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
556
- at 2023-11-14T16:42:58.144Z
556
+ at 2023-11-14T18:20:32.925Z
557
557
  </div>
558
558
  <script src="../../prettify.js"></script>
559
559
  <script>
@@ -142,7 +142,7 @@
142
142
  <div class='footer quiet pad2 space-top1 center small'>
143
143
  Code coverage generated by
144
144
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
145
- at 2023-11-14T16:42:58.144Z
145
+ at 2023-11-14T18:20:32.925Z
146
146
  </div>
147
147
  <script src="../../prettify.js"></script>
148
148
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2023-11-14T16:42:58.144Z
104
+ at 2023-11-14T18:20:32.925Z
105
105
  </div>
106
106
  <script src="../../prettify.js"></script>
107
107
  <script>
@@ -1,4 +1,6 @@
1
1
  import { TestFeature } from "@featurevisor/types";
2
2
  import { Datasource } from "../datasource";
3
3
  import { ProjectConfig } from "../config";
4
- export declare function testFeature(datasource: Datasource, projectConfig: ProjectConfig, test: TestFeature): Promise<boolean>;
4
+ export declare function testFeature(datasource: Datasource, projectConfig: ProjectConfig, test: TestFeature, options: {
5
+ verbose?: boolean;
6
+ }, patterns: any): Promise<boolean>;
@@ -43,7 +43,8 @@ var config_1 = require("../config");
43
43
  var checkIfArraysAreEqual_1 = require("./checkIfArraysAreEqual");
44
44
  var checkIfObjectsAreEqual_1 = require("./checkIfObjectsAreEqual");
45
45
  var cliFormat_1 = require("./cliFormat");
46
- function testFeature(datasource, projectConfig, test) {
46
+ function testFeature(datasource, projectConfig, test, options, patterns) {
47
+ if (options === void 0) { options = {}; }
47
48
  return __awaiter(this, void 0, void 0, function () {
48
49
  var hasError, featureKey, _loop_1, aIndex;
49
50
  return __generator(this, function (_a) {
@@ -58,8 +59,11 @@ function testFeature(datasource, projectConfig, test) {
58
59
  switch (_b.label) {
59
60
  case 0:
60
61
  assertion = test.assertions[aIndex];
61
- description = assertion.description || "at ".concat(assertion.at, "%");
62
- console.log(" Assertion #".concat(aIndex + 1, ": (").concat(assertion.environment, ") ").concat(description));
62
+ description = " Assertion #".concat(aIndex + 1, ": (").concat(assertion.environment, ") ").concat(assertion.description || "at ".concat(assertion.at, "%"));
63
+ if (patterns.assertionPattern && !patterns.assertionPattern.test(description)) {
64
+ return [2 /*return*/, "continue"];
65
+ }
66
+ console.log(description);
63
67
  return [4 /*yield*/, datasource.getRequiredFeaturesChain(test.feature)];
64
68
  case 1:
65
69
  requiredChain = _b.sent();
@@ -80,10 +84,10 @@ function testFeature(datasource, projectConfig, test) {
80
84
  configureBucketValue: function () {
81
85
  return assertion.at * (sdk_1.MAX_BUCKETED_NUMBER / 100);
82
86
  },
83
- // logger: createLogger({
84
- // levels: ["debug", "info", "warn", "error"],
85
- // }),
86
87
  });
88
+ if (options.verbose) {
89
+ sdk.setLogLevels(["debug", "info", "warn", "error"]);
90
+ }
87
91
  // isEnabled
88
92
  if ("expectedToBeEnabled" in assertion) {
89
93
  isEnabled = sdk.isEnabled(featureKey, assertion.context);
@@ -1 +1 @@
1
- {"version":3,"file":"testFeature.js","sourceRoot":"","sources":["../../src/tester/testFeature.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAwE;AAIxE,sCAA2C;AAC3C,oCAA2C;AAE3C,iEAAgE;AAChE,mEAAkE;AAClE,yCAA8D;AAE9D,SAAsB,WAAW,CAC/B,UAAsB,EACtB,aAA4B,EAC5B,IAAiB;;;;;;oBAEb,QAAQ,GAAG,KAAK,CAAC;oBACf,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;oBAEhC,OAAO,CAAC,GAAG,CAAC,2BAAe,EAAE,sBAAc,UAAU,QAAI,CAAC,CAAC;wCAElD,MAAM;;;;;oCACP,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;oCACpC,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,aAAM,SAAS,CAAC,EAAE,MAAG,CAAC;oCAEnE,OAAO,CAAC,GAAG,CAAC,uBAAgB,MAAM,GAAG,CAAC,gBAAM,SAAS,CAAC,WAAW,eAAK,WAAW,CAAE,CAAC,CAAC;oCAE/D,qBAAM,UAAU,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;oCAAvE,aAAa,GAAG,SAAuD;oCACvE,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;oCAE9B,qBAAM,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,EAAA;;oCAAjE,aAAa,GAAG,SAAiD;oCAC/C,qBAAM,IAAA,uBAAa,EACzC,aAAa,EACb,UAA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B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAE,CAAC,CAAC;oDAClF,OAAO,CAAC,KAAK,CAAC,0BAAc,EAAE,0BAAmB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAE,CAAC,CAAC;iDACjF;6CACF;4CAED,IAAI,CAAC,MAAM,EAAE;gDACX,QAAQ,GAAG,IAAI,CAAC;6CACjB;wCACH,CAAC,CAAC,CAAC;qCACJ;;;;;oBA1IM,MAAM,GAAG,CAAC;;;yBAAE,CAAA,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAA;kDAA3C,MAAM;;;;;oBAAuC,MAAM,EAAE,CAAA;;wBA6I9D,sBAAO,QAAQ,EAAC;;;;CACjB;AA1JD,kCA0JC"}
@@ -1,2 +1,7 @@
1
1
  import { Dependencies } from "../dependencies";
2
- export declare function testProject(deps: Dependencies): Promise<boolean>;
2
+ export interface TestProjectOptions {
3
+ keyPattern?: string;
4
+ assertionPattern?: string;
5
+ verbose?: boolean;
6
+ }
7
+ export declare function testProject(deps: Dependencies, options?: TestProjectOptions): Promise<boolean>;
@@ -41,9 +41,10 @@ var fs = require("fs");
41
41
  var testSegment_1 = require("./testSegment");
42
42
  var testFeature_1 = require("./testFeature");
43
43
  var cliFormat_1 = require("./cliFormat");
44
- function testProject(deps) {
44
+ function testProject(deps, options) {
45
+ if (options === void 0) { options = {}; }
45
46
  return __awaiter(this, void 0, void 0, function () {
46
- var rootDirectoryPath, projectConfig, datasource, hasError, testFiles, _i, testFiles_1, testFile, testFilePath, t, test_1, segmentHasError, test_2, featureHasError;
47
+ var rootDirectoryPath, projectConfig, datasource, hasError, testFiles, patterns, _i, testFiles_1, testFile, testFilePath, t, test_1, segmentHasError, test_2, featureHasError;
47
48
  return __generator(this, function (_a) {
48
49
  switch (_a.label) {
49
50
  case 0:
@@ -62,20 +63,26 @@ function testProject(deps) {
62
63
  hasError = true;
63
64
  return [2 /*return*/, hasError];
64
65
  }
66
+ patterns = {
67
+ keyPattern: options.keyPattern ? new RegExp(options.keyPattern) : undefined,
68
+ assertionPattern: options.assertionPattern ? new RegExp(options.assertionPattern) : undefined,
69
+ };
65
70
  _i = 0, testFiles_1 = testFiles;
66
71
  _a.label = 2;
67
72
  case 2:
68
73
  if (!(_i < testFiles_1.length)) return [3 /*break*/, 9];
69
74
  testFile = testFiles_1[_i];
70
75
  testFilePath = datasource.getTestSpecName(testFile);
71
- console.log("");
72
- console.log(cliFormat_1.CLI_FORMAT_BOLD, "Testing: ".concat(testFilePath.replace(rootDirectoryPath, "")));
73
76
  return [4 /*yield*/, datasource.readTest(testFile)];
74
77
  case 3:
75
78
  t = _a.sent();
76
79
  if (!t.segment) return [3 /*break*/, 5];
77
80
  test_1 = t;
78
- return [4 /*yield*/, (0, testSegment_1.testSegment)(datasource, test_1)];
81
+ if (patterns.keyPattern && !patterns.keyPattern.test(test_1.segment)) {
82
+ return [3 /*break*/, 8];
83
+ }
84
+ console.log(cliFormat_1.CLI_FORMAT_BOLD, "\nTesting: ".concat(testFilePath.replace(rootDirectoryPath, "")));
85
+ return [4 /*yield*/, (0, testSegment_1.testSegment)(datasource, test_1, patterns)];
79
86
  case 4:
80
87
  segmentHasError = _a.sent();
81
88
  if (segmentHasError) {
@@ -85,7 +92,11 @@ function testProject(deps) {
85
92
  case 5:
86
93
  if (!t.feature) return [3 /*break*/, 7];
87
94
  test_2 = t;
88
- return [4 /*yield*/, (0, testFeature_1.testFeature)(datasource, projectConfig, test_2)];
95
+ if (patterns.keyPattern && !patterns.keyPattern.test(test_2.feature)) {
96
+ return [3 /*break*/, 8];
97
+ }
98
+ console.log(cliFormat_1.CLI_FORMAT_BOLD, "\nTesting: ".concat(testFilePath.replace(rootDirectoryPath, "")));
99
+ return [4 /*yield*/, (0, testFeature_1.testFeature)(datasource, projectConfig, test_2, options, patterns)];
89
100
  case 6:
90
101
  featureHasError = _a.sent();
91
102
  if (featureHasError) {
@@ -1 +1 @@
1
- {"version":3,"file":"testProject.js","sour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AAkB,CAAC,CAAC;qBACnD;oBACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBAEhB,sBAAO,QAAQ,EAAC;;;;CACjB;AA/ED,kCA+EC"}
@@ -1,3 +1,3 @@
1
1
  import { TestSegment } from "@featurevisor/types";
2
2
  import { Datasource } from "../datasource";
3
- export declare function testSegment(datasource: Datasource, test: TestSegment): Promise<boolean>;
3
+ export declare function testSegment(datasource: Datasource, test: TestSegment, patterns: any): Promise<boolean>;
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.testSegment = void 0;
40
40
  var sdk_1 = require("@featurevisor/sdk");
41
41
  var cliFormat_1 = require("./cliFormat");
42
- function testSegment(datasource, test) {
42
+ function testSegment(datasource, test, patterns) {
43
43
  return __awaiter(this, void 0, void 0, function () {
44
44
  var hasError, segmentKey, segmentExists, parsedSegment, conditions;
45
45
  return __generator(this, function (_a) {
@@ -61,8 +61,11 @@ function testSegment(datasource, test) {
61
61
  parsedSegment = _a.sent();
62
62
  conditions = parsedSegment.conditions;
63
63
  test.assertions.forEach(function (assertion, aIndex) {
64
- var description = assertion.description || "#".concat(aIndex + 1);
65
- console.log(" Assertion #".concat(aIndex + 1, ": ").concat(description));
64
+ var description = " Assertion #".concat(aIndex + 1, ": ").concat(assertion.description || "#".concat(aIndex + 1));
65
+ if (patterns.assertionPattern && !patterns.assertionPattern.test(description)) {
66
+ return;
67
+ }
68
+ console.log(description);
66
69
  var expected = assertion.expectedToMatch;
67
70
  var actual = (0, sdk_1.allConditionsAreMatched)(conditions, assertion.context);
68
71
  if (actual !== expected) {
@@ -1 +1 @@
1
- {"version":3,"file":"testSegment.js","sourceRoot":"","sources":["../../src/tester/testSegment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAA4D;AAI5D,yCAA8D;AAE9D,SAAsB,WAAW,CAAC,UAAsB,EAAE,IAAiB;;;;;;oBACrE,QAAQ,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AK,QAAQ,EAAE;4BACvB,QAAQ,GAAG,IAAI,CAAC;4BAEhB,OAAO,CAAC,KAAK,CAAC,0BAAc,EAAE,yCAAiC,QAAQ,uBAAW,MAAM,OAAG,CAAC,CAAC;yBAC9F;oBACH,CAAC,CAAC,CAAC;oBAEH,sBAAO,QAAQ,EAAC;;;;CACjB;AA3CD,kCA2CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/core",
3
- "version": "0.60.1",
3
+ "version": "0.61.0",
4
4
  "description": "Core package of Featurevisor for Node.js usage",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
- "@featurevisor/sdk": "^0.60.1",
48
- "@featurevisor/site": "^0.60.0",
49
- "@featurevisor/types": "^0.60.0",
47
+ "@featurevisor/sdk": "^0.61.0",
48
+ "@featurevisor/site": "^0.61.0",
49
+ "@featurevisor/types": "^0.61.0",
50
50
  "axios": "^1.3.4",
51
51
  "joi": "^17.8.3",
52
52
  "js-yaml": "^4.1.0",
@@ -57,5 +57,5 @@
57
57
  "@types/js-yaml": "^4.0.5",
58
58
  "@types/tar": "^6.1.4"
59
59
  },
60
- "gitHead": "f6c5b34eb63599914cc26efadf87bbad810a89fa"
60
+ "gitHead": "c781bff1767a1c1680995e7e00b4aad7f0e5c58e"
61
61
  }
@@ -14,6 +14,8 @@ export async function testFeature(
14
14
  datasource: Datasource,
15
15
  projectConfig: ProjectConfig,
16
16
  test: TestFeature,
17
+ options: { verbose?: boolean } = {},
18
+ patterns,
17
19
  ): Promise<boolean> {
18
20
  let hasError = false;
19
21
  const featureKey = test.feature;
@@ -22,9 +24,15 @@ export async function testFeature(
22
24
 
23
25
  for (let aIndex = 0; aIndex < test.assertions.length; aIndex++) {
24
26
  const assertion = test.assertions[aIndex];
25
- const description = assertion.description || `at ${assertion.at}%`;
27
+ const description = ` Assertion #${aIndex + 1}: (${assertion.environment}) ${
28
+ assertion.description || `at ${assertion.at}%`
29
+ }`;
26
30
 
27
- console.log(` Assertion #${aIndex + 1}: (${assertion.environment}) ${description}`);
31
+ if (patterns.assertionPattern && !patterns.assertionPattern.test(description)) {
32
+ continue;
33
+ }
34
+
35
+ console.log(description);
28
36
 
29
37
  const requiredChain = await datasource.getRequiredFeaturesChain(test.feature);
30
38
  const featuresToInclude = Array.from(requiredChain);
@@ -47,11 +55,12 @@ export async function testFeature(
47
55
  configureBucketValue: () => {
48
56
  return assertion.at * (MAX_BUCKETED_NUMBER / 100);
49
57
  },
50
- // logger: createLogger({
51
- // levels: ["debug", "info", "warn", "error"],
52
- // }),
53
58
  });
54
59
 
60
+ if (options.verbose) {
61
+ sdk.setLogLevels(["debug", "info", "warn", "error"]);
62
+ }
63
+
55
64
  // isEnabled
56
65
  if ("expectedToBeEnabled" in assertion) {
57
66
  const isEnabled = sdk.isEnabled(featureKey, assertion.context);
@@ -7,7 +7,16 @@ import { testFeature } from "./testFeature";
7
7
  import { CLI_FORMAT_BOLD, CLI_FORMAT_GREEN, CLI_FORMAT_RED } from "./cliFormat";
8
8
  import { Dependencies } from "../dependencies";
9
9
 
10
- export async function testProject(deps: Dependencies): Promise<boolean> {
10
+ export interface TestProjectOptions {
11
+ keyPattern?: string;
12
+ assertionPattern?: string;
13
+ verbose?: boolean;
14
+ }
15
+
16
+ export async function testProject(
17
+ deps: Dependencies,
18
+ options: TestProjectOptions = {},
19
+ ): Promise<boolean> {
11
20
  const { rootDirectoryPath, projectConfig, datasource } = deps;
12
21
 
13
22
  let hasError = false;
@@ -28,19 +37,27 @@ export async function testProject(deps: Dependencies): Promise<boolean> {
28
37
  return hasError;
29
38
  }
30
39
 
40
+ const patterns = {
41
+ keyPattern: options.keyPattern ? new RegExp(options.keyPattern) : undefined,
42
+ assertionPattern: options.assertionPattern ? new RegExp(options.assertionPattern) : undefined,
43
+ };
44
+
31
45
  for (const testFile of testFiles) {
32
46
  const testFilePath = datasource.getTestSpecName(testFile);
33
47
 
34
- console.log("");
35
- console.log(CLI_FORMAT_BOLD, `Testing: ${testFilePath.replace(rootDirectoryPath, "")}`);
36
-
37
48
  const t = await datasource.readTest(testFile);
38
49
 
39
50
  if ((t as TestSegment).segment) {
40
51
  // segment testing
41
52
  const test = t as TestSegment;
42
53
 
43
- const segmentHasError = await testSegment(datasource, test);
54
+ if (patterns.keyPattern && !patterns.keyPattern.test(test.segment)) {
55
+ continue;
56
+ }
57
+
58
+ console.log(CLI_FORMAT_BOLD, `\nTesting: ${testFilePath.replace(rootDirectoryPath, "")}`);
59
+
60
+ const segmentHasError = await testSegment(datasource, test, patterns);
44
61
 
45
62
  if (segmentHasError) {
46
63
  hasError = true;
@@ -49,7 +66,13 @@ export async function testProject(deps: Dependencies): Promise<boolean> {
49
66
  // feature testing
50
67
  const test = t as TestFeature;
51
68
 
52
- const featureHasError = await testFeature(datasource, projectConfig, test);
69
+ if (patterns.keyPattern && !patterns.keyPattern.test(test.feature)) {
70
+ continue;
71
+ }
72
+
73
+ console.log(CLI_FORMAT_BOLD, `\nTesting: ${testFilePath.replace(rootDirectoryPath, "")}`);
74
+
75
+ const featureHasError = await testFeature(datasource, projectConfig, test, options, patterns);
53
76
 
54
77
  if (featureHasError) {
55
78
  hasError = true;
@@ -5,7 +5,11 @@ import { Datasource } from "../datasource";
5
5
 
6
6
  import { CLI_FORMAT_BOLD, CLI_FORMAT_RED } from "./cliFormat";
7
7
 
8
- export async function testSegment(datasource: Datasource, test: TestSegment): Promise<boolean> {
8
+ export async function testSegment(
9
+ datasource: Datasource,
10
+ test: TestSegment,
11
+ patterns,
12
+ ): Promise<boolean> {
9
13
  let hasError = false;
10
14
 
11
15
  const segmentKey = test.segment;
@@ -25,9 +29,13 @@ export async function testSegment(datasource: Datasource, test: TestSegment): Pr
25
29
  const conditions = parsedSegment.conditions as Condition | Condition[];
26
30
 
27
31
  test.assertions.forEach(function (assertion, aIndex) {
28
- const description = assertion.description || `#${aIndex + 1}`;
32
+ const description = ` Assertion #${aIndex + 1}: ${assertion.description || `#${aIndex + 1}`}`;
29
33
 
30
- console.log(` Assertion #${aIndex + 1}: ${description}`);
34
+ if (patterns.assertionPattern && !patterns.assertionPattern.test(description)) {
35
+ return;
36
+ }
37
+
38
+ console.log(description);
31
39
 
32
40
  const expected = assertion.expectedToMatch;
33
41
  const actual = allConditionsAreMatched(conditions, assertion.context);