Skip to content

Commit 7aecfa4

Browse files
committed
test(project): Add missing test case for 'component' type
1 parent 1e864e3 commit 7aecfa4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/project/test/lib/build/TaskRunner.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,17 @@ test("getRequiredDependencies: Default application", async (t) => {
14481448
"Default application project does not require dependencies");
14491449
});
14501450

1451+
test("getRequiredDependencies: Default component", async (t) => {
1452+
const {graph, taskUtil, taskRepository, TaskRunner, projectBuildLogger} = t.context;
1453+
const project = getMockProject("component");
1454+
project.getBundles = () => [];
1455+
const taskRunner = new TaskRunner({
1456+
project, graph, taskUtil, taskRepository, log: projectBuildLogger, buildConfig
1457+
});
1458+
t.deepEqual(await taskRunner.getRequiredDependencies(), new Set([]),
1459+
"Default component project does not require dependencies");
1460+
});
1461+
14511462
test("getRequiredDependencies: Default library", async (t) => {
14521463
const {graph, taskUtil, taskRepository, TaskRunner, projectBuildLogger} = t.context;
14531464
const project = getMockProject("library");

0 commit comments

Comments
 (0)