* @param {string} content content * @param {RawSourceMap} sourceMap source map * @returns {string} code for tests
(content, sourceMap)
| 6 | * @returns {string} code for tests |
| 7 | */ |
| 8 | function testLoader(content, sourceMap) { |
| 9 | const result = { css: content }; |
| 10 | |
| 11 | if (sourceMap) { |
| 12 | result.map = sourceMap; |
| 13 | } |
| 14 | |
| 15 | return `export default ${JSON.stringify(result)}`; |
| 16 | } |
| 17 | |
| 18 | module.exports = testLoader; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…