Skip to content

Commit 7c311ff

Browse files
committed
refactor: de-duplicate the split tests
(following the verbatim copy in #418) - removes the tests that depend on unit-test-input yaml from unit - removes the tests that don't depend on this from integration
1 parent 60c3f4d commit 7c311ff

File tree

7 files changed

+7
-4772
lines changed

7 files changed

+7
-4772
lines changed

packages/openapi-code-generator/src/test/input.test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {OpenapiValidator} from "../core/openapi-validator"
1212

1313
export type OpenApiVersion = "3.0.x" | "3.1.x"
1414

15-
function getTestVersions(): OpenApiVersion[] {
15+
function getTestVersions(): [OpenApiVersion, ...OpenApiVersion[]] {
1616
if (process.argv.find((arg) => ["--updateSnapshot", "-u"].includes(arg))) {
1717
logger.warn("Running with --updateSnapshot - only testing one version")
1818
return ["3.0.x"]

0 commit comments

Comments
 (0)