|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Works with test-loader: errors 1`] = ` |
| 4 | +[ |
| 5 | + [ModuleError: Module Error (from ../../dist/index.js): |
| 6 | +Test Message Error], |
| 7 | +] |
| 8 | +`; |
| 9 | + |
| 10 | +exports[`Works with test-loader: result 1`] = ` |
| 11 | +{ |
| 12 | + "addBuildDependency": "function", |
| 13 | + "addContextDependency": "function", |
| 14 | + "addDependency": "function", |
| 15 | + "addMissingDependency": "function", |
| 16 | + "async": "function", |
| 17 | + "cacheable": "function", |
| 18 | + "callback": "function", |
| 19 | + "clearDependencies": "function", |
| 20 | + "context": "<cwd>/test/basic-loader-test", |
| 21 | + "currentRequest": "<cwd>/test/basic-loader-test/test-loader.js??ruleSet[1].rules[0].use[1]!<cwd>/test/basic-loader-test/file.js?q=1#hash", |
| 22 | + "data": null, |
| 23 | + "dependency": "function", |
| 24 | + "emitError": "function", |
| 25 | + "emitFile": "undefined", |
| 26 | + "emitWarning": "function", |
| 27 | + "environment": { |
| 28 | + "arrowFunction": true, |
| 29 | + "asyncFunction": true, |
| 30 | + "const": true, |
| 31 | + "destructuring": true, |
| 32 | + "forOf": true, |
| 33 | + "optionalChaining": true, |
| 34 | + "templateLiteral": true, |
| 35 | + }, |
| 36 | + "getContextDependencies": "function", |
| 37 | + "getContextDependenciesResult": [ |
| 38 | + "<cwd>/test/basic-loader-test/directory", |
| 39 | + ], |
| 40 | + "getDependencies": "function", |
| 41 | + "getDependenciesResult": [ |
| 42 | + "<cwd>/test/basic-loader-test/file.js", |
| 43 | + "<cwd>/test/basic-loader-test/dep1.js", |
| 44 | + "<cwd>/test/basic-loader-test/dep.js", |
| 45 | + ], |
| 46 | + "getLogger": "function", |
| 47 | + "getMissingDependencies": "function", |
| 48 | + "getMissingDependenciesResult": [], |
| 49 | + "getOptions": "function", |
| 50 | + "getResolve": "function", |
| 51 | + "importModule": "function", |
| 52 | + "importModuleResult1": { |
| 53 | + "default": "http://test.com/first/777312cffc01c1457868.less", |
| 54 | + }, |
| 55 | + "importModuleResult2": { |
| 56 | + "default": "http://test.com/first/777312cffc01c1457868.less", |
| 57 | + }, |
| 58 | + "loadModule": "function", |
| 59 | + "loadModuleResult": { |
| 60 | + "map": null, |
| 61 | + "source": "const test = require('./mod1'); |
| 62 | +
|
| 63 | +module.exports = new URL('./style.less', import.meta.url); |
| 64 | +", |
| 65 | + }, |
| 66 | + "loaderIndex": 0, |
| 67 | + "loaders": [ |
| 68 | + { |
| 69 | + "data": null, |
| 70 | + "fragment": "", |
| 71 | + "ident": "ruleSet[1].rules[0].use[1]", |
| 72 | + "normalExecuted": true, |
| 73 | + "options": { |
| 74 | + "test": {}, |
| 75 | + }, |
| 76 | + "path": "<cwd>/test/basic-loader-test/test-loader.js", |
| 77 | + "pitchExecuted": true, |
| 78 | + "query": "??ruleSet[1].rules[0].use[1]", |
| 79 | + "request": "<cwd>/test/basic-loader-test/test-loader.js??ruleSet[1].rules[0].use[1]", |
| 80 | + }, |
| 81 | + ], |
| 82 | + "mode": "none", |
| 83 | + "options": { |
| 84 | + "test": {}, |
| 85 | + }, |
| 86 | + "previousRequest": "", |
| 87 | + "query": { |
| 88 | + "test": {}, |
| 89 | + }, |
| 90 | + "remainingRequest": "<cwd>/test/basic-loader-test/file.js?q=1#hash", |
| 91 | + "request": "<cwd>/test/basic-loader-test/test-loader.js??ruleSet[1].rules[0].use[1]!<cwd>/test/basic-loader-test/file.js?q=1#hash", |
| 92 | + "resolve": "function", |
| 93 | + "resource": "<cwd>/test/basic-loader-test/file.js?q=1#hash", |
| 94 | + "resourceFragment": "#hash", |
| 95 | + "resourcePath": "<cwd>/test/basic-loader-test/file.js", |
| 96 | + "resourceQuery": "?q=1", |
| 97 | + "rootContext": "<cwd>/test/basic-loader-test", |
| 98 | + "sourceMap": false, |
| 99 | + "target": "web", |
| 100 | + "utils": { |
| 101 | + "absolutify": "undefined", |
| 102 | + "contextify": "undefined", |
| 103 | + "createHash": "undefined", |
| 104 | + }, |
| 105 | + "version": 2, |
| 106 | + "webpack": true, |
| 107 | +} |
| 108 | +`; |
| 109 | + |
| 110 | +exports[`Works with test-loader: warnings 1`] = ` |
| 111 | +[ |
| 112 | + [ModuleWarning: Module Warning (from ../../dist/index.js): |
| 113 | +Test Message Warning], |
| 114 | +] |
| 115 | +`; |
0 commit comments