File tree 2 files changed +31
-1
lines changed
packages/resolve-url-loader
2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const logToTestHarness = require('./lib/log-to-test-harness');
20
20
const DEPRECATED_OPTIONS = {
21
21
engine : [
22
22
'DEP_RESOLVE_URL_LOADER_OPTION_ENGINE' ,
23
- 'the "engine" option has been removed, " postcss" is the only available parser'
23
+ '"engine" option has been removed, postcss is the only parser used '
24
24
] ,
25
25
keepQuery : [
26
26
'DEP_RESOLVE_URL_LOADER_OPTION_KEEP_QUERY' ,
Original file line number Diff line number Diff line change @@ -53,6 +53,36 @@ module.exports = test(
53
53
env ( {
54
54
ENTRY : join ( 'src' , 'index.scss' )
55
55
} ) ,
56
+ testWithOption ( { engine : 'postcss' } ) (
57
+ testDefault (
58
+ buildDevNormal (
59
+ assertWebpackOk ,
60
+ assertNoErrors ,
61
+ assertDeprecationWarning ( '"engine" option has been removed' ) ,
62
+ assertContentDev
63
+ ) ,
64
+ buildProdNormal (
65
+ assertWebpackOk ,
66
+ assertNoErrors ,
67
+ assertDeprecationWarning ( '"engine" option has been removed' ) ,
68
+ assertContentProd
69
+ )
70
+ ) ,
71
+ testSilent (
72
+ buildDevNormal (
73
+ assertWebpackOk ,
74
+ assertNoErrors ,
75
+ assertSilence ,
76
+ assertContentDev
77
+ ) ,
78
+ buildProdNormal (
79
+ assertWebpackOk ,
80
+ assertNoErrors ,
81
+ assertSilence ,
82
+ assertContentProd
83
+ )
84
+ )
85
+ ) ,
56
86
testWithOption ( { attempts : 1 } ) (
57
87
testDefault (
58
88
buildDevNormal (
You can’t perform that action at this time.
0 commit comments