/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/edge.js TAP > clobbered and detached 1`] = `
Edge {
  "dev": false,
  "error": "DETACHED",
  "from": null,
  "invalid": false,
  "missing": false,
  "name": "aa",
  "optional": false,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "",
  "to": null,
  "type": "prod",
  "valid": false,
  "workspace": false,
}
`

exports[`test/edge.js TAP > clobbered edge 1`] = `
Edge {
  "dev": false,
  "error": "DETACHED",
  "from": null,
  "invalid": false,
  "missing": false,
  "name": "b",
  "optional": false,
  "peer": true,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "1.2.3",
  "to": null,
  "type": "peer",
  "valid": false,
  "workspace": false,
}
`

exports[`test/edge.js TAP > clobbering edge 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "b" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "a",
    "package": Object {
      "name": "a",
      "version": "1.2.3",
    },
    "packageName": "a",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "root": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "b",
  "optional": false,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "*",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "b",
      "version": "1.2.3",
    },
    "packageName": "b",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "prod",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > invalid dependency 1`] = `
Edge {
  "dev": false,
  "error": "INVALID",
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "b" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "a",
    "package": Object {
      "name": "a",
      "version": "1.2.3",
    },
    "packageName": "a",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "root": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "version": "1.2.3",
  },
  "invalid": true,
  "missing": false,
  "name": "b",
  "optional": true,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "1.69.420-nice",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "b",
      "version": "1.2.3",
    },
    "packageName": "b",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "optional",
  "valid": false,
  "workspace": false,
}
`

exports[`test/edge.js TAP > missing optional dep is fine 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "missing" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": true,
    "name": "top",
    "package": Object {
      "name": "top",
      "version": "1.2.3",
    },
    "packageName": "top",
    "parent": null,
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "missing",
  "optional": true,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "",
  "to": null,
  "type": "optional",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > new location, found dep 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "aa" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "bb",
      "version": "1.2.3",
    },
    "packageName": "bb",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "b" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": false,
      "name": "a",
      "package": Object {
        "name": "a",
        "version": "1.2.3",
      },
      "packageName": "a",
      "parent": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "resolve": Function resolve(n),
      "root": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "aa",
  "optional": false,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "aa",
    "package": Object {
      "name": "aa",
      "version": "1.2.3",
    },
    "packageName": "aa",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "b" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": false,
      "name": "a",
      "package": Object {
        "name": "a",
        "version": "1.2.3",
      },
      "packageName": "a",
      "parent": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "resolve": Function resolve(n),
      "root": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "prod",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > new location, missing dep again 1`] = `
Edge {
  "dev": false,
  "error": "MISSING",
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "aa" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "bb",
      "version": "1.2.3",
    },
    "packageName": "bb",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": true,
  "name": "aa",
  "optional": false,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "",
  "to": null,
  "type": "prod",
  "valid": false,
  "workspace": false,
}
`

exports[`test/edge.js TAP > old location, missing dep 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "aa" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "bb",
      "version": "1.2.3",
    },
    "packageName": "bb",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {
        Edge {
          "peerConflicted": false,
        },
      },
      "edgesOut": Map {},
      "explain": Function explain(),
      "isTop": false,
      "name": "b",
      "package": Object {
        "name": "b",
        "version": "1.2.3",
      },
      "packageName": "b",
      "parent": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "aa",
  "optional": false,
  "peer": false,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "aa",
    "package": Object {
      "name": "aa",
      "version": "1.2.3",
    },
    "packageName": "aa",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "b" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": false,
      "name": "a",
      "package": Object {
        "name": "a",
        "version": "1.2.3",
      },
      "packageName": "a",
      "parent": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "resolve": Function resolve(n),
      "root": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "prod",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > peer dep at top level, nesting is ok 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "a" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": true,
    "name": "top",
    "package": Object {
      "name": "top",
      "version": "1.2.3",
    },
    "packageName": "top",
    "parent": null,
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "a",
  "optional": false,
  "peer": true,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "1.2.3",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "a",
    "package": Object {
      "name": "a",
      "version": "1.2.3",
    },
    "packageName": "a",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "a" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "root": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "a" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "version": "1.2.3",
  },
  "type": "peer",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > peer dep below top level, nesting not ok 1`] = `
Edge {
  "dev": false,
  "error": "PEER LOCAL",
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "aa" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "a",
    "package": Object {
      "name": "a",
      "version": "1.2.3",
    },
    "packageName": "a",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "root": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "aa",
  "optional": false,
  "peer": true,
  "peerConflicted": false,
  "peerLocal": true,
  "spec": "1.2.3",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "aa",
    "package": Object {
      "name": "aa",
      "version": "1.2.3",
    },
    "packageName": "aa",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "aa" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": false,
      "name": "a",
      "package": Object {
        "name": "a",
        "version": "1.2.3",
      },
      "packageName": "a",
      "parent": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "resolve": Function resolve(n),
      "root": Object {
        "addEdgeIn": Function addEdgeIn(edge),
        "addEdgeOut": Function addEdgeOut(edge),
        "deleteEdgeIn": Function deleteEdgeIn(edge),
        "edgesIn": Set {},
        "edgesOut": Map {
          "missing" => Edge {
            "peerConflicted": false,
          },
        },
        "explain": Function explain(),
        "isTop": true,
        "name": "top",
        "package": Object {
          "name": "top",
          "version": "1.2.3",
        },
        "packageName": "top",
        "parent": null,
        "resolve": Function resolve(n),
        "version": "1.2.3",
      },
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "peer",
  "valid": false,
  "workspace": false,
}
`

exports[`test/edge.js TAP > peer dep below top level, parallel ok 1`] = `
Edge {
  "dev": false,
  "error": null,
  "from": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {},
    "edgesOut": Map {
      "b" => Edge {
        "peerConflicted": false,
      },
    },
    "explain": Function explain(),
    "isTop": false,
    "name": "a",
    "package": Object {
      "name": "a",
      "version": "1.2.3",
    },
    "packageName": "a",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "root": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "version": "1.2.3",
  },
  "invalid": false,
  "missing": false,
  "name": "b",
  "optional": false,
  "peer": true,
  "peerConflicted": false,
  "peerLocal": false,
  "spec": "1.2.3",
  "to": Object {
    "addEdgeIn": Function addEdgeIn(edge),
    "addEdgeOut": Function addEdgeOut(edge),
    "deleteEdgeIn": Function deleteEdgeIn(edge),
    "edgesIn": Set {
      Edge {
        "peerConflicted": false,
      },
    },
    "edgesOut": Map {},
    "explain": Function explain(),
    "isTop": false,
    "name": "b",
    "package": Object {
      "name": "b",
      "version": "1.2.3",
    },
    "packageName": "b",
    "parent": Object {
      "addEdgeIn": Function addEdgeIn(edge),
      "addEdgeOut": Function addEdgeOut(edge),
      "deleteEdgeIn": Function deleteEdgeIn(edge),
      "edgesIn": Set {},
      "edgesOut": Map {
        "missing" => Edge {
          "peerConflicted": false,
        },
      },
      "explain": Function explain(),
      "isTop": true,
      "name": "top",
      "package": Object {
        "name": "top",
        "version": "1.2.3",
      },
      "packageName": "top",
      "parent": null,
      "resolve": Function resolve(n),
      "version": "1.2.3",
    },
    "resolve": Function resolve(n),
    "version": "1.2.3",
  },
  "type": "peer",
  "valid": true,
  "workspace": false,
}
`

exports[`test/edge.js TAP > printableEdge does not show non-applicable override 1`] = `
ArboristEdge {
  "error": "MISSING",
  "name": "c",
  "spec": "2.x",
  "type": "prod",
}
`

exports[`test/edge.js TAP > printableEdge shows overrides 1`] = `
ArboristEdge {
  "error": "MISSING",
  "name": "c",
  "overridden": "2.x",
  "spec": "2.x",
  "type": "prod",
}
`

exports[`test/edge.js TAP > return a human-readable representation of the edge obj, peerConflicted=true 1`] = `
{
name: 'b',
spec: '1.2.3',
type: 'prod',
from: '',
to: '/node_modules/b',
peerConflicted: true }
`

exports[`test/edge.js TAP > should return a human-readable representation of the edge obj 1`] = `
{
name: 'b',
spec: '1.2.3',
type: 'prod',
from: '',
to: '/node_modules/b' }
`

exports[`test/edge.js TAP convenience type getter flags > explanation 1`] = `
Object {
  "from": "a explanation",
  "name": "foo",
  "spec": "*",
  "type": "peerOptional",
}
`
