@changesets/get-dependents-graph
Advanced tools
Comparing version 1.3.0 to 1.3.1
# @changesets/get-dependents-graph | ||
## 1.3.1 | ||
### Patch Changes | ||
- Updated dependencies [[`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15)]: | ||
- @changesets/types@4.1.0 | ||
## 1.3.0 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@changesets/get-dependents-graph", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Get the graph of dependents in a monorepo", | ||
@@ -10,3 +10,3 @@ "main": "dist/get-dependents-graph.cjs.js", | ||
"dependencies": { | ||
"@changesets/types": "^4.0.2", | ||
"@changesets/types": "^4.1.0", | ||
"@manypkg/get-packages": "^1.1.3", | ||
@@ -16,3 +16,6 @@ "chalk": "^2.1.0", | ||
"semver": "^5.4.1" | ||
}, | ||
"devDependencies": { | ||
"@changesets/test-utils": "*" | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
import { temporarilySilenceLogs } from "@changesets/test-utils"; | ||
import getDependencyGraph from "./get-dependency-graph"; | ||
@@ -5,7 +6,7 @@ | ||
beforeEach(async () => { | ||
beforeEach(() => { | ||
console.error = jest.fn(); | ||
}); | ||
afterEach(async () => { | ||
afterEach(() => { | ||
console.error = consoleError; | ||
@@ -79,31 +80,33 @@ }); | ||
it("should set valid to false if the link protocol is used in a non-dev dep", function() { | ||
const { valid } = getDependencyGraph({ | ||
root: { | ||
dir: ".", | ||
packageJson: { name: "root", version: "1.0.0" } | ||
}, | ||
packages: [ | ||
{ | ||
dir: "foo", | ||
packageJson: { | ||
name: "foo", | ||
version: "1.0.0", | ||
dependencies: { | ||
bar: "link:../bar" | ||
it( | ||
"should set valid to false if the link protocol is used in a non-dev dep", | ||
temporarilySilenceLogs(() => { | ||
const { valid } = getDependencyGraph({ | ||
root: { | ||
dir: ".", | ||
packageJson: { name: "root", version: "1.0.0" } | ||
}, | ||
packages: [ | ||
{ | ||
dir: "foo", | ||
packageJson: { | ||
name: "foo", | ||
version: "1.0.0", | ||
dependencies: { | ||
bar: "link:../bar" | ||
} | ||
} | ||
}, | ||
{ | ||
dir: "bar", | ||
packageJson: { | ||
name: "bar", | ||
version: "1.0.0" | ||
} | ||
} | ||
}, | ||
{ | ||
dir: "bar", | ||
packageJson: { | ||
name: "bar", | ||
version: "1.0.0" | ||
} | ||
} | ||
], | ||
tool: "pnpm" | ||
}); | ||
expect(valid).toBeFalsy(); | ||
expect((console.error as any).mock.calls).toMatchInlineSnapshot(` | ||
], | ||
tool: "pnpm" | ||
}); | ||
expect(valid).toBeFalsy(); | ||
expect((console.error as any).mock.calls).toMatchInlineSnapshot(` | ||
Array [ | ||
@@ -115,3 +118,4 @@ Array [ | ||
`); | ||
}); | ||
}) | ||
); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27556
601
1
Updated@changesets/types@^4.1.0