Skip to content
Snippets Groups Projects
Commit 3df26450 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

chore: add warning if yarn workspaces found (#599)

parent 7ff5780a
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,10 @@ async function renovatePackageFile(packageFileConfig) {
return [config];
}
if (packageContent.workspaces) {
logger.warn('Found workspaces');
}
// Check for renovate config inside the package.json
if (packageContent.renovate) {
logger.trace(
......
......@@ -65,7 +65,7 @@ describe('packageFileWorker', () => {
expect(res).toEqual([]);
});
it('calls depTypeWorker', async () => {
config.api.getFileJson.mockReturnValueOnce({});
config.api.getFileJson.mockReturnValueOnce({ workspaces: true });
depTypeWorker.renovateDepType.mockReturnValueOnce([{}]);
depTypeWorker.renovateDepType.mockReturnValueOnce([{}, {}]);
depTypeWorker.renovateDepType.mockReturnValueOnce([]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment