Skip to content

Commit

Permalink
feat(core): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Oct 11, 2023
1 parent 9a8a667 commit af94cfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/nx/src/tasks-runner/tasks-schedule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function createMockTask(id: string): Task {
project,
target,
},
outputs: [],
overrides: {},
};
}
Expand Down
8 changes: 4 additions & 4 deletions packages/nx/src/tasks-runner/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ describe('utils', () => {
task.target,
task.overrides,
getNode({
outputs: ['dist'],
outputs: ['{workspaceRoot}/dist'],
})
)
).toEqual(['dist']);
Expand All @@ -346,7 +346,7 @@ describe('utils', () => {
task.target,
task.overrides,
getNode({
outputs: ['dist/{projectRoot}'],
outputs: ['{workspaceRoot}/dist/{projectRoot}'],
})
)
).toEqual(['dist/myapp']);
Expand All @@ -358,7 +358,7 @@ describe('utils', () => {
task.target,
task.overrides,
getNode({
outputs: ['./sub'],
outputs: ['{projectRoot}/sub'],
})
)
).toEqual(['myapp/sub']);
Expand All @@ -370,7 +370,7 @@ describe('utils', () => {
task.target,
task.overrides,
getNode({
outputs: ['/dist'],
outputs: ['{workspaceRoot}/dist'],
})
)
).toEqual(['dist']);
Expand Down

0 comments on commit af94cfa

Please sign in to comment.