Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tjosepo committed Jul 4, 2024
1 parent 695e648 commit 88d8c48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/create-schemas/tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe.concurrent("config", () => {
"-c",
"config",
"--cwd",
"cwd",
"cwd"
]);
expect(config.input).toMatch("input");
expect(config.output).toMatch("output");
Expand All @@ -30,7 +30,7 @@ describe.concurrent("config", () => {

const config = await resolveConfig({
root: tempFolder,
input: "input",
input: "input"
});

expect(config.input).toMatch("input");
Expand All @@ -45,7 +45,7 @@ describe.concurrent("config", () => {

const configFileContent = `export default ${JSON.stringify({
input,
output,
output
} satisfies UserConfig)};`;

await writeFile(configFilePath, configFileContent);
Expand All @@ -67,22 +67,22 @@ describe.concurrent("config", () => {

test("inline config takes precedence over config file", async ({
expect,
onTestFinished,
onTestFinished
}) => {
const tempFolder = await createTemporaryFolder({ onTestFinished });

const configFilePath = join(tempFolder, "create-schemas.config.ts");

const configFileContent = `export default ${JSON.stringify({
input: "config-file-input",
output: "config-file-output",
output: "config-file-output"
} satisfies UserConfig)};`;

await writeFile(configFilePath, configFileContent);

const config = await resolveConfig({
root: tempFolder,
input: "inline-input",
input: "inline-input"
});

expect(config.input).toMatch("inline-input");
Expand Down

0 comments on commit 88d8c48

Please sign in to comment.