Skip to content

Commit 54e7bc0

Browse files
Update validate-plugin-options.test.js.snap
1 parent fce0465 commit 54e7bc0

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

test/__snapshots__/validate-plugin-options.test.js.snap

+14-8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ exports[`validate options should throw an error on the "chunkFilename" option wi
1616
* options.chunkFilename should be an instance of function."
1717
`;
1818

19+
exports[`validate options should throw an error on the "emitFile" option with "1" value 1`] = `
20+
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
21+
- options.emitFile should be a boolean.
22+
-> If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file. It is often useful to disable this option for server-side packages. (https://github.com/webpack-contrib/mini-css-extract-plugin#emitFile)."
23+
`;
24+
1925
exports[`validate options should throw an error on the "filename" option with "true" value 1`] = `
2026
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
2127
- options.filename should be one of these:
@@ -99,47 +105,47 @@ exports[`validate options should throw an error on the "linkType" option with "i
99105
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
100106
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
101107
- options has an unknown property 'unknown'. These properties are valid:
102-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
108+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
103109
`;
104110
105111
exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = `
106112
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
107113
- options has an unknown property 'unknown'. These properties are valid:
108-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
114+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
109115
`;
110116
111117
exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = `
112118
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
113119
- options has an unknown property 'unknown'. These properties are valid:
114-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
120+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
115121
`;
116122
117123
exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = `
118124
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
119125
- options has an unknown property 'unknown'. These properties are valid:
120-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
126+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
121127
`;
122128
123129
exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = `
124130
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
125131
- options has an unknown property 'unknown'. These properties are valid:
126-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
132+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
127133
`;
128134
129135
exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = `
130136
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
131137
- options has an unknown property 'unknown'. These properties are valid:
132-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
138+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
133139
`;
134140
135141
exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = `
136142
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
137143
- options has an unknown property 'unknown'. These properties are valid:
138-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
144+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
139145
`;
140146
141147
exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = `
142148
"Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
143149
- options has an unknown property 'unknown'. These properties are valid:
144-
object { filename?, chunkFilename?, ignoreOrder?, insert?, attributes?, linkType? }"
150+
object { filename?, chunkFilename?, emitFile?, ignoreOrder?, insert?, attributes?, linkType? }"
145151
`;

0 commit comments

Comments
 (0)