1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` validate options 1` ] = `
3
+ exports [` validate options should throw an error on the "implementation" option with "string" value 1` ] = `
4
4
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
5
5
- options.implementation should be an object:
6
6
object { … }
7
7
-> The implementation of the sass to be used (https://github.com/webpack-contrib/sass-loader#implementation)."
8
8
` ;
9
9
10
- exports [` validate options 2` ] = `
10
+ exports [` validate options should throw an error on the "implementation" option with "true" value 1` ] = `
11
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
12
+ - options.implementation should be an object:
13
+ object { … }
14
+ -> The implementation of the sass to be used (https://github.com/webpack-contrib/sass-loader#implementation)."
15
+ ` ;
16
+
17
+ exports [` validate options should throw an error on the "prependData" option with "true" value 1` ] = `
18
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
19
+ - options.prependData should be one of these:
20
+ string | function
21
+ -> Prepends \` Sass\` /\` SCSS\` code before the actual entry file (https://github.com/webpack-contrib/sass-loader#prependdata).
22
+ Details:
23
+ * options.prependData should be a string.
24
+ * options.prependData should be an instance of function."
25
+ ` ;
26
+
27
+ exports [` validate options should throw an error on the "sassOptions" option with "string" value 1` ] = `
11
28
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
12
29
- options.sassOptions should be one of these:
13
30
object { … } | function
@@ -18,24 +35,73 @@ exports[`validate options 2`] = `
18
35
* options.sassOptions should be an instance of function."
19
36
` ;
20
37
21
- exports [` validate options 3 ` ] = `
38
+ exports [` validate options should throw an error on the "sassOptions" option with "true" value 1 ` ] = `
22
39
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
23
- - options.prependData should be one of these:
24
- string | function
25
- -> Prepends \` Sass \` / \` SCSS \` code before the actual entry file (https://github.com/webpack-contrib/sass-loader#prependdata ).
40
+ - options.sassOptions should be one of these:
41
+ object { … } | function
42
+ -> Options for \` node-sass \` or \` sass \` ( \` Dart Sass \` ) implementation. (https://github.com/webpack-contrib/sass-loader#implementation ).
26
43
Details:
27
- * options.prependData should be a string.
28
- * options.prependData should be an instance of function."
44
+ * options.sassOptions should be an object:
45
+ object { … }
46
+ * options.sassOptions should be an instance of function."
29
47
` ;
30
48
31
- exports [` validate options 4 ` ] = `
49
+ exports [` validate options should throw an error on the "sourceMap" option with "string" value 1 ` ] = `
32
50
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
33
- - options.webpackImporter should be a boolean.
34
- -> Enables/Disables default \` webpack\` importer (https://github.com/webpack-contrib/sass-loader#webpackimporter)."
51
+ - options.sourceMap should be a boolean.
52
+ -> Enables/Disables generation of source maps (https://github.com/webpack-contrib/sass-loader#sourcemap)."
53
+ ` ;
54
+
55
+ exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
56
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
57
+ - options has an unknown property 'unknown'. These properties are valid:
58
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
59
+ `;
60
+
61
+ exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
62
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
63
+ - options has an unknown property 'unknown'. These properties are valid:
64
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
65
+ `;
66
+
67
+ exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
68
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
69
+ - options has an unknown property 'unknown'. These properties are valid:
70
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
71
+ `;
72
+
73
+ exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
74
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
75
+ - options has an unknown property 'unknown'. These properties are valid:
76
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
77
+ `;
78
+
79
+ exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
80
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
81
+ - options has an unknown property 'unknown'. These properties are valid:
82
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
35
83
`;
36
84
37
- exports [` validate options 5 ` ] = `
85
+ exports [` validate options should throw an error on the "unknown" option with "false" value 1 ` ] = `
38
86
"Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
39
87
- options has an unknown property 'unknown'. These properties are valid:
40
88
object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
41
89
`;
90
+
91
+ exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
92
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
93
+ - options has an unknown property 'unknown'. These properties are valid:
94
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
95
+ `;
96
+
97
+ exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
98
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
99
+ - options has an unknown property 'unknown'. These properties are valid:
100
+ object { implementation ? , sassOptions ? , prependData ? , sourceMap ? , webpackImporter ? }"
101
+ `;
102
+
103
+ exports [` validate options should throw an error on the "webpackImporter" option with "string" value 1` ] = `
104
+ "Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
105
+ - options.webpackImporter should be a boolean.
106
+ -> Enables/Disables default \` webpack\` importer (https://github.com/webpack-contrib/sass-loader#webpackimporter)."
107
+ ` ;
0 commit comments