diff --git a/packages/nx/src/tasks-runner/tasks-schedule.spec.ts b/packages/nx/src/tasks-runner/tasks-schedule.spec.ts index 2839ca98525c1f..ea8b6dc8be23bc 100644 --- a/packages/nx/src/tasks-runner/tasks-schedule.spec.ts +++ b/packages/nx/src/tasks-runner/tasks-schedule.spec.ts @@ -13,6 +13,7 @@ function createMockTask(id: string): Task { project, target, }, + outputs: [], overrides: {}, }; } diff --git a/packages/nx/src/tasks-runner/utils.spec.ts b/packages/nx/src/tasks-runner/utils.spec.ts index 3c3109bacfed63..438cbf0f365307 100644 --- a/packages/nx/src/tasks-runner/utils.spec.ts +++ b/packages/nx/src/tasks-runner/utils.spec.ts @@ -335,7 +335,7 @@ describe('utils', () => { task.target, task.overrides, getNode({ - outputs: ['dist'], + outputs: ['{workspaceRoot}/dist'], }) ) ).toEqual(['dist']); @@ -346,7 +346,7 @@ describe('utils', () => { task.target, task.overrides, getNode({ - outputs: ['dist/{projectRoot}'], + outputs: ['{workspaceRoot}/dist/{projectRoot}'], }) ) ).toEqual(['dist/myapp']); @@ -358,7 +358,7 @@ describe('utils', () => { task.target, task.overrides, getNode({ - outputs: ['./sub'], + outputs: ['{projectRoot}/sub'], }) ) ).toEqual(['myapp/sub']); @@ -370,7 +370,7 @@ describe('utils', () => { task.target, task.overrides, getNode({ - outputs: ['/dist'], + outputs: ['{workspaceRoot}/dist'], }) ) ).toEqual(['dist']);