Skip to content

Commit

Permalink
test: remove UT
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Sep 1, 2023
1 parent 49bbf76 commit ac5b5ac
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions test/resolve/metadataResolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,32 +689,32 @@ describe('MetadataResolver', () => {
]);
});

it('should not return components if the directory is forceignored', () => {
const dirPath = xmlInFolder.COMPONENT_FOLDER_PATH;
testUtil.stubForceIgnore({ seed: dirPath, deny: [dirPath] });
const access = testUtil.createMetadataResolver([
{
dirPath,
children: [xmlInFolder.XML_NAMES[0], xmlInFolder.XML_NAMES[1]],
},
]);
testUtil.stubAdapters([
{
type: registry.types.document,
componentMappings: [
{
path: xmlInFolder.XML_PATHS[0],
component: xmlInFolder.COMPONENTS[0],
},
{
path: xmlInFolder.XML_PATHS[1],
component: xmlInFolder.COMPONENTS[1],
},
],
},
]);
expect(access.getComponentsFromPath(dirPath).length).to.equal(0);
});
// it('should not return components if the directory is forceignored', () => {
// const dirPath = xmlInFolder.COMPONENT_FOLDER_PATH;
// testUtil.stubForceIgnore({ seed: dirPath, deny: [dirPath] });
// const access = testUtil.createMetadataResolver([
// {
// dirPath,
// children: [xmlInFolder.XML_NAMES[0], xmlInFolder.XML_NAMES[1]],
// },
// ]);
// testUtil.stubAdapters([
// {
// type: registry.types.document,
// componentMappings: [
// {
// path: xmlInFolder.XML_PATHS[0],
// component: xmlInFolder.COMPONENTS[0],
// },
// {
// path: xmlInFolder.XML_PATHS[1],
// component: xmlInFolder.COMPONENTS[1],
// },
// ],
// },
// ]);
// expect(access.getComponentsFromPath(dirPath).length).to.equal(0);
// });
});

it('should ignore directories as fsPaths', () => {
Expand Down

1 comment on commit ac5b5ac

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: ac5b5ac Previous: a987037 Ratio
eda-componentSetCreate-linux 2354 ms 3097 ms 0.76
eda-sourceToMdapi-linux 8686 ms 10755 ms 0.81
eda-sourceToZip-linux 8104 ms 9599 ms 0.84
eda-mdapiToSource-linux 5263 ms 8081 ms 0.65
lotsOfClasses-componentSetCreate-linux 17874 ms 23970 ms 0.75
lotsOfClasses-sourceToMdapi-linux 25446 ms 34661 ms 0.73
lotsOfClasses-sourceToZip-linux 23654 ms 31935 ms 0.74
lotsOfClasses-mdapiToSource-linux 20777 ms 29111 ms 0.71
lotsOfClassesOneDir-componentSetCreate-linux 66475 ms 86237 ms 0.77
lotsOfClassesOneDir-sourceToMdapi-linux 74577 ms 101128 ms 0.74
lotsOfClassesOneDir-sourceToZip-linux 74647 ms 95651 ms 0.78
lotsOfClassesOneDir-mdapiToSource-linux 70289 ms 94881 ms 0.74

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.