Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
workspaces wip: top level snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Mar 12, 2020
1 parent 7239a30 commit 4224a20
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions tap-snapshots/test-arborist-build-ideal-tree.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46650,6 +46650,48 @@ Node {
}
`

exports[`test/arborist/build-ideal-tree.js TAP workspaces should link top level nested workspaces > expect resolving Promise 1`] = `
Node {
"children": Map {
"a" => Link {
"edgesIn": Set {
Edge {
"from": "",
"name": "a",
"spec": "file:{CWD}/test/fixtures/workspaces-top-level-link/packages/a",
"type": "workspace",
},
},
"location": "node_modules/a",
"name": "a",
"resolved": "file:../packages/a",
"target": Object {
"name": "a",
"parent": null,
},
},
},
"edgesOut": Map {
"a" => Edge {
"name": "a",
"spec": "file:{CWD}/test/fixtures/workspaces-top-level-link/packages/a",
"to": "node_modules/a",
"type": "workspace",
},
},
"fsChildren": Set {
Node {
"location": "packages/a",
"name": "a",
"resolved": null,
},
},
"location": "",
"name": "workspaces-top-level-link",
"resolved": null,
}
`

exports[`test/arborist/build-ideal-tree.js TAP workspaces should prefer linking nested workspaces > expect resolving Promise 1`] = `
Node {
"children": Map {
Expand Down
4 changes: 2 additions & 2 deletions test/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,9 @@ t.test('workspaces', t => {
return t.resolveMatchSnapshot(printIdeal(path))
})

t.skip('should link top level nested workspaces', t => {
t.test('should link top level nested workspaces', t => {
const path = resolve(__dirname, '../fixtures/workspaces-top-level-link')
return printIdeal(path).then(console.log)
return t.resolveMatchSnapshot(printIdeal(path))
})

t.skip('should install workspace transitive dependencies', t => {
Expand Down

0 comments on commit 4224a20

Please sign in to comment.