File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
packages/enhanced/test/configCases/sharing/layers-share-plugin Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import './tests/different-layer.test' ;
2
2
import './tests/explicit.test' ;
3
+ import './tests/unlayered.test' ;
3
4
4
5
// Test non-layered functionality
5
6
it ( 'should provide and consume a normal library async in a separate shareScope' , async ( ) => {
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Tests for modules shared with different-layer configuration
3
+ */
1
4
it ( 'should provide and consume lib1 in different-layer' , async ( ) => {
2
5
const { default : value , layer } = await import ( 'lib1' ) ;
3
6
expect ( value ) . toBe ( 'lib1' ) ;
Original file line number Diff line number Diff line change @@ -82,6 +82,15 @@ module.exports = {
82
82
version : '0' ,
83
83
layer : 'required-layer' ,
84
84
} ,
85
+ lib4 : {
86
+ version : '1.0.0' ,
87
+ requiredVersion : '^1.0.0' ,
88
+ strictVersion : true ,
89
+ } ,
90
+ './relative3' : {
91
+ import : './relative3' ,
92
+ version : false ,
93
+ } ,
85
94
} ,
86
95
} ) ,
87
96
] ,
You can’t perform that action at this time.
0 commit comments