Skip to content

Commit 81ce5a6

Browse files
committed
style: lint cli.style.ts
1 parent aced708 commit 81ce5a6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/openapi-typescript/test/cli.test.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ describe("CLI", () => {
106106
expect(stdout).toEqual(expect.stringMatching(/^v[\d.]+(-.*)?$/));
107107
});
108108

109-
test("--properties-required-by-default", async () => {
110-
const { stdout } = await execa(cmd, ["--properties-required-by-default=true", "./examples/github-api.yaml"], { cwd });
111-
expect(stdout).toMatchFileSnapshot(fileURLToPath(new URL("./examples/github-api-required.ts", root)));
112-
}, TIMEOUT)
109+
test(
110+
"--properties-required-by-default",
111+
async () => {
112+
const { stdout } = await execa(cmd, ["--properties-required-by-default=true", "./examples/github-api.yaml"], {
113+
cwd,
114+
});
115+
expect(stdout).toMatchFileSnapshot(fileURLToPath(new URL("./examples/github-api-required.ts", root)));
116+
},
117+
TIMEOUT,
118+
);
113119
});
114120

115121
describe("Redocly config", () => {

0 commit comments

Comments
 (0)