-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
src/platforms/workspaces/yarn/__snapshots__/index.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Workspaces Test should be that the package.json can be found 1`] = ` | ||
Array [ | ||
Object { | ||
"dependencies": Object {}, | ||
"name": "a", | ||
}, | ||
Object { | ||
"dependencies": Object { | ||
"a": "^1.0.0", | ||
}, | ||
"name": "b", | ||
}, | ||
Object { | ||
"dependencies": Object { | ||
"a": "^1.0.0", | ||
"b": "^1.0.0", | ||
}, | ||
"name": "c", | ||
}, | ||
Object { | ||
"dependencies": Object { | ||
"a": "^1.0.0", | ||
"b": "^1.0.0", | ||
"c": "^1.0.0", | ||
}, | ||
"name": "d", | ||
}, | ||
Object { | ||
"dependencies": Object { | ||
"a": "^1.0.0", | ||
"b": "^1.0.0", | ||
"c": "^1.0.0", | ||
"e": "^1.0.0", | ||
}, | ||
"name": "e", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Workspaces Test should return a dep tree 1`] = ` | ||
Array [ | ||
Object { | ||
"fanIn": 1, | ||
"fanOut": 0, | ||
"instable": 0, | ||
"label": "Stable", | ||
"name": "a", | ||
}, | ||
Object { | ||
"fanIn": 1, | ||
"fanOut": 1, | ||
"instable": 0.5, | ||
"label": "Normal", | ||
"name": "b", | ||
}, | ||
Object { | ||
"fanIn": 1, | ||
"fanOut": 2, | ||
"instable": 0.6666666666666666, | ||
"label": "Flexible", | ||
"name": "c", | ||
}, | ||
Object { | ||
"fanIn": 1, | ||
"fanOut": 3, | ||
"instable": 0.75, | ||
"label": "Flexible", | ||
"name": "d", | ||
}, | ||
Object { | ||
"fanIn": 1, | ||
"fanOut": 4, | ||
"instable": 0.8, | ||
"label": "Instable", | ||
"name": "e", | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* This is a sample test suite. | ||
* Replace this with your implementation. | ||
*/ | ||
import { isLocalPath } from './checkLocalPath'; | ||
|
||
describe('Utils Test', () => { | ||
it('should be false using invalid path', () => { | ||
expect(isLocalPath('./error-path')).toEqual(false); | ||
}); | ||
}); |