@@ -161,3 +161,44 @@ it('integration : webpack multi compiler : module-errors', async() => {
161161 '* ./non-existing in ./test/fixtures/multi-compiler-module-errors/index.js' ,
162162 ] ) ;
163163} ) ;
164+
165+ it ( 'integration : postcss-loader : warnings' , async ( ) => {
166+
167+ const logs = await executeAndGetLogs ( './fixtures/postcss-warnings/webpack.config' ) ;
168+ expect ( logs ) . toEqual ( [
169+ 'WARNING Compiled with 1 warnings' ,
170+ '' ,
171+ 'warning in ./test/fixtures/postcss-warnings/index.css' ,
172+ '' ,
173+ `Module Warning (from ./node_modules/postcss-loader/src/index.js):
174+ Warning
175+
176+ (3:2) grid-gap only works if grid-template(-areas) is being used` ,
177+ ''
178+ ] ) ;
179+ } ) ;
180+
181+ it ( 'integration : postcss-loader : warnings (multi-compiler version)' , async ( ) => {
182+
183+ const logs = await executeAndGetLogs ( './fixtures/multi-postcss-warnings/webpack.config' ) ;
184+ expect ( logs ) . toEqual ( [
185+ 'WARNING Compiled with 1 warnings' ,
186+ '' ,
187+ 'warning in ./test/fixtures/multi-postcss-warnings/index.css' ,
188+ '' ,
189+ `Module Warning (from ./node_modules/postcss-loader/src/index.js):
190+ Warning
191+
192+ (3:2) grid-gap only works if grid-template(-areas) is being used` ,
193+ '' ,
194+ 'WARNING Compiled with 1 warnings' ,
195+ '' ,
196+ 'warning in ./test/fixtures/multi-postcss-warnings/index2.css' ,
197+ '' ,
198+ `Module Warning (from ./node_modules/postcss-loader/src/index.js):
199+ Warning
200+
201+ (3:2) grid-auto-flow works only if grid-template-rows and grid-template-columns are present in the same rule` ,
202+ ''
203+ ] ) ;
204+ } ) ;
0 commit comments