Skip to content

Commit

Permalink
make test CI friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Apr 3, 2020
1 parent 28f8e0c commit dc0954f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ exports[`listPlugins should get plugins from local module 2`] = `
Array [
"Found the following plugins installed in your project:
- npm (../../../../some/folder/node_modules/@auto-it/npm)
- released (../../../../some/folder/node_modules/@auto-it/released)",
- npm (../some/folder/node_modules/@auto-it/npm)
- released (../some/folder/node_modules/@auto-it/released)",
]
`;

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/utils/__tests__/load-plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ describe("listPlugins", () => {
});

test("should get plugins from local module", async () => {
process.cwd = () => "/home";
exec.mockReturnValue(
"/some/folder/node_modules/@auto-it/npm\n/some/folder/node_modules/@auto-it/released"
);
Expand Down

0 comments on commit dc0954f

Please sign in to comment.