-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathvalidate-options.test.js.snap
More file actions
150 lines (139 loc) · 6.57 KB
/
validate-options.test.js.snap
File metadata and controls
150 lines (139 loc) · 6.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`validation validation 1`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.test should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#test
Details:
* options.test should be an array:
[RegExp | non-empty string, ...]
* options.test should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.test should be an instance of RegExp.
* options.test should be a non-empty string."
`;
exports[`validation validation 2`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.test should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#test
Details:
* options.test[0] should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.test[0] should be an instance of RegExp.
* options.test[0] should be a non-empty string."
`;
exports[`validation validation 3`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.include should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#include
Details:
* options.include should be an array:
[RegExp | non-empty string, ...]
* options.include should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.include should be an instance of RegExp.
* options.include should be a non-empty string."
`;
exports[`validation validation 4`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.include should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#include
Details:
* options.include[0] should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.include[0] should be an instance of RegExp.
* options.include[0] should be a non-empty string."
`;
exports[`validation validation 5`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.exclude should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#exclude
Details:
* options.exclude should be an array:
[RegExp | non-empty string, ...]
* options.exclude should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.exclude should be an instance of RegExp.
* options.exclude should be a non-empty string."
`;
exports[`validation validation 6`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.exclude should be one of these:
[RegExp | non-empty string, ...] | RegExp | non-empty string
-> Filtering rules.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#exclude
Details:
* options.exclude[0] should be one of these:
RegExp | non-empty string
-> Filtering rule as regex or string.
Details:
* options.exclude[0] should be an instance of RegExp.
* options.exclude[0] should be a non-empty string."
`;
exports[`validation validation 7`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.minimizerOptions should be one of these:
object { … } | [object { … }, ...] (should not have fewer than 1 item)
-> Options for \`cssMinimizerOptions\`.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#minimizeroptions
Details:
* options.minimizerOptions should be an object:
object { … }
* options.minimizerOptions should be an array:
[object { … }, ...] (should not have fewer than 1 item)"
`;
exports[`validation validation 8`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.parallel should be one of these:
boolean | integer
-> Use multi-process parallel running to improve the build speed.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#parallel
Details:
* options.parallel should be a boolean.
* options.parallel should be an integer."
`;
exports[`validation validation 9`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.parallel should be one of these:
boolean | integer
-> Use multi-process parallel running to improve the build speed.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#parallel
Details:
* options.parallel should be a boolean.
* options.parallel should be an integer."
`;
exports[`validation validation 10`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options.minify should be one of these:
function | [function, ...] (should not have fewer than 1 item)
-> Allows you to override default minify function.
-> Read more at https://github.com/webpack/css-minimizer-webpack-plugin/#minify
Details:
* options.minify should be an instance of function.
* options.minify should be an array:
[function, ...] (should not have fewer than 1 item)"
`;
exports[`validation validation 11`] = `
"Invalid options object. Css Minimizer Plugin has been initialized using an options object that does not match the API schema.
- options has an unknown property 'unknown'. These properties are valid:
object { test?, include?, exclude?, minimizerOptions?, parallel?, warningsFilter?, minify? }"
`;