MCPcopy Create free account
hub / github.com/GCWing/BitFun / createFixture

Function createFixture

scripts/audit-theme-colors.test.mjs:92–99  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

90}
91
92function 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
101function runAudit(args) {
102 return spawnSync(process.execPath, ['scripts/audit-theme-colors.mjs', ...args], {

Callers 1

Calls 2

writeTextFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected