File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
testing/test-nx-utils/src/lib/utils Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,22 @@ describe('createNodesContext', () => {
1111 workspaceRoot : 'root' ,
1212 nxJsonConfiguration : { plugins : [ ] } ,
1313 } ) ;
14- expect ( context ) . toEqual ( {
15- workspaceRoot : 'root' ,
16- nxJsonConfiguration : { plugins : [ ] } ,
17- } ) ;
14+ expect ( context ) . toStrictEqual (
15+ expect . objectContaining ( {
16+ workspaceRoot : 'root' ,
17+ nxJsonConfiguration : { plugins : [ ] } ,
18+ } ) ,
19+ ) ;
1820 } ) ;
1921
2022 it ( 'should return a context with defaults' , ( ) => {
2123 const context = createNodesContext ( ) ;
22- expect ( context ) . toEqual ( {
23- workspaceRoot : process . cwd ( ) ,
24- nxJsonConfiguration : { } ,
25- } ) ;
24+ expect ( context ) . toStrictEqual (
25+ expect . objectContaining ( {
26+ workspaceRoot : process . cwd ( ) ,
27+ nxJsonConfiguration : { } ,
28+ } ) ,
29+ ) ;
2630 } ) ;
2731} ) ;
2832
You can’t perform that action at this time.
0 commit comments