Skip to content

Commit

Permalink
👹
Browse files Browse the repository at this point in the history
  • Loading branch information
samijaber committed Jan 15, 2025
1 parent 77fed82 commit ddec7a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/__tests__/qwik.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { writeFileSync } from 'fs';
import { mkdirSync, writeFileSync } from 'fs';
import { resolve } from 'path';
import stripAnsi from 'strip-ansi';
import { File } from '../generators/qwik';
import { componentToQwik } from '../generators/qwik/component-generator';
import { addComponent, createFileSet, FileSet } from '../generators/qwik/index';
import { FileSet, addComponent, createFileSet } from '../generators/qwik/index';
import { builderContentToMitosisComponent } from '../parsers/builder';
import { parseJsx } from '../parsers/jsx';
import {
Expand All @@ -27,6 +27,7 @@ const debugOutput = async (fileSet: FileSet) => {
if (debugFiles) {
for (const key in fileSet) {
const file = (fileSet as any)[key];
await mkdirSync(base, { recursive: true });
await writeFileSync(resolve(base, file.path), file.contents);
}
}
Expand Down

0 comments on commit ddec7a1

Please sign in to comment.