Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/test-root-matches-metadep.js

raw
1 // generated from test/fixtures/test-root-matches-metadep
2 module.exports = t => {
3 const path = t.testdir({
4 "README.md": `When a root node matches a metadep being added to the tree, the
5 loop-detection link deduplication made in a lot of problems as a result of
6 the link going to the root node from the /virtual-tree temp tree,
7 ultimately resulting in the root node being reified in place and deleting
8 its existing contents (which is very bad!)
9 `,
10 "do-not-delete-this-file": "",
11 "package.json": JSON.stringify({
12 "name": "test-root-matches-metadep",
13 "version": "1.0.1",
14 "dependencies": {
15 "test-root-matches-metadep-x": "1.0.0",
16 "test-root-matches-metadep-y": "1.0.0"
17 }
18 }),
19 "x": {
20 "package.json": JSON.stringify({
21 "name": "test-root-matches-metadep-x",
22 "version": "1.0.0",
23 "dependencies": {
24 "test-root-matches-metadep": "1.0.0"
25 }
26 })
27 },
28 "y": {
29 "package.json": JSON.stringify({
30 "name": "test-root-matches-metadep-y",
31 "version": "1.0.0",
32 "dependencies": {
33 "test-root-matches-metadep": "1.0.1"
34 }
35 })
36 }
37 })
38 return path
39 }