Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dependency-cruiser.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
"from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
from: {
path: "^(src|app|lib)",
pathNot: "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$",
pathNot: "(\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$|__tests__|[-.]test\\.ts$)",
},
to: {
dependencyTypes: ["npm-dev"],
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Test & Build
run: |
pnpm build
pnpm type-check
pnpm test:code:gen
pnpm test
env:
Expand Down
2 changes: 1 addition & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pre-commit:
commands:
format:
glob: "*.{js,jsx,json,yml,yaml,html,md,ts,tsx}"
run: biome format --no-errors-on-unmatched --write {staged_files}
run: pnpm exec biome format --no-errors-on-unmatched --write {staged_files}
stage_fixed: true
sort-package-json:
glob: "package.json"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"test:snapshot": "vitest run --config ./vitest.snapshot.config.ts",
"test:vitest": "vitest run --config ./vitest.config.ts --coverage",
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
"type-check": "tsc --noEmit",
"update:snapshot": "vitest run --config ./vitest.snapshot.config.ts --update",
"validate": "pnpm ts ./scripts/validate.ts",
"watch": "pnpm ts ./scripts/watch.ts"
Expand Down
4 changes: 2 additions & 2 deletions scripts/tools/shell.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ExecaChildProcess, execa } from "execa";
import { type ResultPromise, execa } from "execa";

export const shell = (command: string, cwd: string = process.cwd()): ExecaChildProcess<string> => {
export const shell = (command: string, cwd: string = process.cwd()): ResultPromise => {
return execa(command, {
stdio: ["pipe", "pipe", "inherit"],
shell: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import ts from "typescript";

import { TsGenerator } from "../../../../api";
Expand Down
1 change: 1 addition & 0 deletions src/code-templates/_shared/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as Utils from "../utils";

type OK = Utils.VariableElement;
Expand Down
2 changes: 1 addition & 1 deletion src/internal/OpenApiTools/Walker/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Store {
if (!result) {
throw new Error(`Not found ${localPath}`);
}
return result;
return result as OpenApi.Parameter;
}
public isAfterDefined(referencePath: string): boolean {
return !!DotProp.getProperty(this.state.document, referencePath.replace(/\//g, "."));
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/argo-rollout-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/cloudflare-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/format.domain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/kubernetes-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/multi-type.test.domain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/parameter-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/spit-code-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/template-only-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/typedef-only-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/typedef-with-template-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/class/unknown-schema-domain-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/client-generate-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import { CodeGenerator } from "../../src";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/currying-functional/coudflare-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/argo-rollout-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/coudflare-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/format.domain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/kubernetes-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/multi-type.test.domain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/parameter-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/spit-code-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/template-only-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/typedef-only-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/functional/typedef-with-template-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, test } from "vitest";
import * as fs from "fs";

import * as Utils from "../../utils";
Expand Down
11 changes: 0 additions & 11 deletions test/__tests__/functional/unknown-schema-domain-test copy.ts

This file was deleted.

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"ts-node": {
"esm": true,
"swc": true
}
},
"exclude": ["test/code", "examples/"]
}
Loading