(content, loaderContext)
| 25 | it("should as a function", async (t) => { |
| 26 | const testId = "./additional-data.styl"; |
| 27 | const additionalData = (content, loaderContext) => { |
| 28 | const { resourcePath, rootContext } = loaderContext; |
| 29 | |
| 30 | const relativePath = path.relative(rootContext, resourcePath); |
| 31 | |
| 32 | return ` |
| 33 | /* RelativePath: ${relativePath}; */ |
| 34 | |
| 35 | color = coral; |
| 36 | bg = gray; |
| 37 | |
| 38 | ${content} |
| 39 | |
| 40 | .custom-class |
| 41 | background: bg |
| 42 | `; |
| 43 | }; |
| 44 | const compiler = getCompiler(testId, { additionalData }); |
| 45 | const stats = await compile(compiler); |
| 46 | const codeFromBundle = getCodeFromBundle(stats, compiler); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…