|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`validate options 1`] = ` |
| 4 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 5 | + - options.name should be one of these: |
| 6 | + string | function |
| 7 | + -> The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name). |
| 8 | + Details: |
| 9 | + * options.name should be a string. |
| 10 | + * options.name should be an instance of function." |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`validate options 2`] = ` |
| 14 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 15 | + - options.outputPath should be one of these: |
| 16 | + string | function |
| 17 | + -> A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath). |
| 18 | + Details: |
| 19 | + * options.outputPath should be a string. |
| 20 | + * options.outputPath should be an instance of function." |
| 21 | +`; |
| 22 | + |
| 23 | +exports[`validate options 3`] = ` |
| 24 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 25 | + - options.publicPath should be one of these: |
| 26 | + string | function |
| 27 | + -> A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath). |
| 28 | + Details: |
| 29 | + * options.publicPath should be a string. |
| 30 | + * options.publicPath should be an instance of function." |
| 31 | +`; |
| 32 | + |
| 33 | +exports[`validate options 4`] = ` |
| 34 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 35 | + - options.context should be a string. |
| 36 | + -> A custom file context (https://github.com/webpack-contrib/file-loader#context)." |
| 37 | +`; |
| 38 | + |
| 39 | +exports[`validate options 5`] = ` |
| 40 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 41 | + - options.emitFile should be a boolean. |
| 42 | + -> Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile)." |
| 43 | +`; |
| 44 | + |
| 45 | +exports[`validate options 6`] = ` |
| 46 | +"Invalid options object. File Loader has been initialised using an options object that does not match the API schema. |
| 47 | + - options.regExp should be one of these: |
| 48 | + string | RegExp |
| 49 | + -> A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp). |
| 50 | + Details: |
| 51 | + * options.regExp should be a string. |
| 52 | + * options.regExp should be an instance of RegExp." |
| 53 | +`; |
0 commit comments