@@ -1796,7 +1796,6 @@ test('variants can be defined as a function', () => {
1796
1796
rotate : [ 'responsive' , 'focus' ] ,
1797
1797
cursor : [ 'focus' , 'checked' , 'hover' ] ,
1798
1798
} ,
1799
- plugins : userConfig . plugins ,
1800
1799
} )
1801
1800
} )
1802
1801
@@ -1831,6 +1830,12 @@ test('core plugin configurations stack', () => {
1831
1830
corePlugins : { display : false } ,
1832
1831
}
1833
1832
1833
+ const otherConfig = {
1834
+ corePlugins : ( { corePlugins } ) => {
1835
+ return [ ...corePlugins , 'margin' ]
1836
+ } ,
1837
+ }
1838
+
1834
1839
const defaultConfig = {
1835
1840
prefix : '' ,
1836
1841
important : false ,
@@ -1840,14 +1845,14 @@ test('core plugin configurations stack', () => {
1840
1845
corePlugins : [ 'float' , 'display' , 'padding' ] ,
1841
1846
}
1842
1847
1843
- const result = resolveConfig ( [ userConfig , defaultConfig ] )
1848
+ const result = resolveConfig ( [ userConfig , otherConfig , defaultConfig ] )
1844
1849
1845
1850
expect ( result ) . toMatchObject ( {
1846
1851
prefix : '' ,
1847
1852
important : false ,
1848
1853
separator : ':' ,
1849
1854
theme : { } ,
1850
1855
variants : { } ,
1851
- corePlugins : [ 'float' , 'padding' ] ,
1856
+ corePlugins : [ 'float' , 'padding' , 'margin' ] ,
1852
1857
} )
1853
1858
} )
0 commit comments