Skip to content

Commit

Permalink
fix: stub should call resolver at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
amphro committed Oct 1, 2020
1 parent 9b63445 commit 9002cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ export const instantiateContext = (sinon?: any) => {
inProject(inProject = true) {
testContext.SANDBOXES.PROJECT.restore();
if (inProject) {
testContext.SANDBOXES.PROJECT.stub(SfdxProject, 'resolveProjectPath').returns(
testContext.SANDBOXES.PROJECT.stub(SfdxProject, 'resolveProjectPath').callsFake(() =>
testContext.localPathRetriever(testContext.id)
);
testContext.SANDBOXES.PROJECT.stub(SfdxProject, 'resolveProjectPathSync').returns(
testContext.SANDBOXES.PROJECT.stub(SfdxProject, 'resolveProjectPathSync').callsFake(() =>
testContext.localPathRetrieverSync(testContext.id)
);
} else {
Expand Down

0 comments on commit 9002cbf

Please sign in to comment.