Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jul 21, 2024
1 parent d2a4cbf commit 45ee3b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions packages/next-yak/loaders/__tests__/babel-swc-comparison.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ describe("should work", () => {
input,
)
.then((result) => result)
.catch((err) => {error: err.toString() });
.catch((err) => {
error: err.toString();
});

if (!output || output.error) {
expect(fs.existsSync(path.resolve(inputFile, "../output.stderr"))).toBe(true);
expect(fs.existsSync(path.resolve(inputFile, "../output.stderr"))).toBe(
true,
);
} else {
const outputFile = path.join(path.dirname(inputFile), "output.tsx");
const expectedOutput = fs.readFileSync(outputFile, "utf8");
Expand Down Expand Up @@ -83,4 +87,4 @@ const prettify = async (code: string) =>
{
parser: "typescript",
},
);
);
2 changes: 1 addition & 1 deletion packages/next-yak/withYak/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ export const withYak: {
};
}
return addYak(yakOptions, nextConfig);
};
};
6 changes: 3 additions & 3 deletions packages/next-yak/withYak/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export type {YakConfigOptions} from "./babel.js";
export {withYak} from "./babel.js";
export {withYak as withYakSwc} from "./swc.js";
export type { YakConfigOptions } from "./babel.js";
export { withYak } from "./babel.js";
export { withYak as withYakSwc } from "./swc.js";

0 comments on commit 45ee3b8

Please sign in to comment.