|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`builtin node:path => true 1`] = ` |
| 4 | +{ |
| 5 | + "expected": true, |
| 6 | + "requireResolve": "node:path", |
| 7 | + "source": "node:path", |
| 8 | +} |
| 9 | +`; |
| 10 | + |
| 11 | +exports[`builtin node:path => true 2`] = ` |
| 12 | +{ |
| 13 | + "expected": true, |
| 14 | + "result": { |
| 15 | + "found": true, |
| 16 | + "path": null, |
| 17 | + }, |
| 18 | + "source": "node:path", |
| 19 | +} |
| 20 | +`; |
| 21 | + |
| 22 | +exports[`builtin path => true 1`] = ` |
| 23 | +{ |
| 24 | + "expected": true, |
| 25 | + "requireResolve": "path", |
| 26 | + "source": "path", |
| 27 | +} |
| 28 | +`; |
| 29 | + |
| 30 | +exports[`builtin path => true 2`] = ` |
| 31 | +{ |
| 32 | + "expected": true, |
| 33 | + "result": { |
| 34 | + "found": true, |
| 35 | + "path": null, |
| 36 | + }, |
| 37 | + "source": "path", |
| 38 | +} |
| 39 | +`; |
| 40 | + |
| 41 | +exports[`modules @sukka/does-not-exists => false 1`] = ` |
| 42 | +{ |
| 43 | + "expected": false, |
| 44 | + "requireResolve": undefined, |
| 45 | + "source": "@sukka/does-not-exists", |
| 46 | +} |
| 47 | +`; |
| 48 | + |
| 49 | +exports[`modules @sukka/does-not-exists => false 2`] = ` |
| 50 | +{ |
| 51 | + "expected": false, |
| 52 | + "result": { |
| 53 | + "found": false, |
| 54 | + }, |
| 55 | + "source": "@sukka/does-not-exists", |
| 56 | +} |
| 57 | +`; |
| 58 | + |
| 59 | +exports[`modules jest => true 1`] = ` |
| 60 | +{ |
| 61 | + "expected": true, |
| 62 | + "requireResolve": "<ROOT>/node_modules/jest/build/index.js", |
| 63 | + "source": "jest", |
| 64 | +} |
| 65 | +`; |
| 66 | + |
| 67 | +exports[`modules jest => true 2`] = ` |
| 68 | +{ |
| 69 | + "expected": true, |
| 70 | + "result": { |
| 71 | + "found": true, |
| 72 | + "path": "<ROOT>/node_modules/jest/build/index.js", |
| 73 | + }, |
| 74 | + "source": "jest", |
| 75 | +} |
| 76 | +`; |
| 77 | + |
| 78 | +exports[`relative ../.github/dependabot.yml => false 1`] = ` |
| 79 | +{ |
| 80 | + "expected": false, |
| 81 | + "requireResolve": undefined, |
| 82 | + "source": "../.github/dependabot.yml", |
| 83 | +} |
| 84 | +`; |
| 85 | + |
| 86 | +exports[`relative ../.github/dependabot.yml => false 2`] = ` |
| 87 | +{ |
| 88 | + "expected": false, |
| 89 | + "result": { |
| 90 | + "found": false, |
| 91 | + }, |
| 92 | + "source": "../.github/dependabot.yml", |
| 93 | +} |
| 94 | +`; |
| 95 | + |
| 96 | +exports[`relative ../babel.config.js => babel.config.js 1`] = ` |
| 97 | +{ |
| 98 | + "expected": "babel.config.js", |
| 99 | + "requireResolve": "<ROOT>/babel.config.js", |
| 100 | + "source": "../babel.config.js", |
| 101 | +} |
| 102 | +`; |
| 103 | + |
| 104 | +exports[`relative ../babel.config.js => babel.config.js 2`] = ` |
| 105 | +{ |
| 106 | + "expected": "babel.config.js", |
| 107 | + "result": { |
| 108 | + "found": true, |
| 109 | + "path": "<ROOT>/babel.config.js", |
| 110 | + }, |
| 111 | + "source": "../babel.config.js", |
| 112 | +} |
| 113 | +`; |
| 114 | + |
| 115 | +exports[`relative ../inexistent.js => false 1`] = ` |
| 116 | +{ |
| 117 | + "expected": false, |
| 118 | + "requireResolve": undefined, |
| 119 | + "source": "../inexistent.js", |
| 120 | +} |
| 121 | +`; |
| 122 | + |
| 123 | +exports[`relative ../inexistent.js => false 2`] = ` |
| 124 | +{ |
| 125 | + "expected": false, |
| 126 | + "result": { |
| 127 | + "found": false, |
| 128 | + }, |
| 129 | + "source": "../inexistent.js", |
| 130 | +} |
| 131 | +`; |
| 132 | + |
| 133 | +exports[`relative ../package.json => package.json 1`] = ` |
| 134 | +{ |
| 135 | + "expected": "package.json", |
| 136 | + "requireResolve": "<ROOT>/package.json", |
| 137 | + "source": "../package.json", |
| 138 | +} |
| 139 | +`; |
| 140 | + |
| 141 | +exports[`relative ../package.json => package.json 2`] = ` |
| 142 | +{ |
| 143 | + "expected": "package.json", |
| 144 | + "result": { |
| 145 | + "found": true, |
| 146 | + "path": "<ROOT>/package.json", |
| 147 | + }, |
| 148 | + "source": "../package.json", |
| 149 | +} |
| 150 | +`; |
| 151 | + |
| 152 | +exports[`relative ../test => test/index.js 1`] = ` |
| 153 | +{ |
| 154 | + "expected": "test/index.js", |
| 155 | + "requireResolve": "<ROOT>/test/index.js", |
| 156 | + "source": "../test", |
| 157 | +} |
| 158 | +`; |
| 159 | + |
| 160 | +exports[`relative ../test => test/index.js 2`] = ` |
| 161 | +{ |
| 162 | + "expected": "test/index.js", |
| 163 | + "result": { |
| 164 | + "found": true, |
| 165 | + "path": "<ROOT>/test/index.js", |
| 166 | + }, |
| 167 | + "source": "../test", |
| 168 | +} |
| 169 | +`; |
| 170 | + |
| 171 | +exports[`relative ../test/ => test/index.js 1`] = ` |
| 172 | +{ |
| 173 | + "expected": "test/index.js", |
| 174 | + "requireResolve": "<ROOT>/test/index.js", |
| 175 | + "source": "../test/", |
| 176 | +} |
| 177 | +`; |
| 178 | + |
| 179 | +exports[`relative ../test/ => test/index.js 2`] = ` |
| 180 | +{ |
| 181 | + "expected": "test/index.js", |
| 182 | + "result": { |
| 183 | + "found": true, |
| 184 | + "path": "<ROOT>/test/index.js", |
| 185 | + }, |
| 186 | + "source": "../test/", |
| 187 | +} |
| 188 | +`; |
| 189 | + |
| 190 | +exports[`relative ../test/index.js => test/index.js 1`] = ` |
| 191 | +{ |
| 192 | + "expected": "test/index.js", |
| 193 | + "requireResolve": "<ROOT>/test/index.js", |
| 194 | + "source": "../test/index.js", |
| 195 | +} |
| 196 | +`; |
| 197 | + |
| 198 | +exports[`relative ../test/index.js => test/index.js 2`] = ` |
| 199 | +{ |
| 200 | + "expected": "test/index.js", |
| 201 | + "result": { |
| 202 | + "found": true, |
| 203 | + "path": "<ROOT>/test/index.js", |
| 204 | + }, |
| 205 | + "source": "../test/index.js", |
| 206 | +} |
| 207 | +`; |
0 commit comments