(files)
| 90 | } |
| 91 | |
| 92 | function createFixture(files) { |
| 93 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'bitfun-theme-audit-')); |
| 94 | const sourceRoot = path.join(dir, 'src', 'web-ui', 'src'); |
| 95 | for (const [relativePath, content] of Object.entries(files)) { |
| 96 | writeText(path.join(sourceRoot, relativePath), content); |
| 97 | } |
| 98 | return { dir, sourceRoot }; |
| 99 | } |
| 100 | |
| 101 | function runAudit(args) { |
| 102 | return spawnSync(process.execPath, ['scripts/audit-theme-colors.mjs', ...args], { |
no test coverage detected