diff --git a/.prettierignore b/.prettierignore index 24d0dc128..7a5cd9cea 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,2 @@ package.json test/valid-data/**/*.json -babel.config.cjs -jest.config.cjs diff --git a/.vscode/settings.json b/.vscode/settings.json index 0e20a9a33..f709a38c2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,5 @@ "source.fixAll.eslint": "explicit" }, "eslint.experimental.useFlatConfig": true, - "jest.runMode": "on-demand", "javascript.preferences.importModuleSpecifierEnding": "js" } diff --git a/babel.config.cjs b/babel.config.cjs deleted file mode 100644 index 9545b5983..000000000 --- a/babel.config.cjs +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: [["@babel/preset-env", { targets: { node: "current" } }], "@babel/preset-typescript"], -}; diff --git a/eslint.config.mjs b/eslint.config.mjs index 804688655..40b4073a5 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -71,7 +71,6 @@ export default tseslint.config( files: ["test/**/*.test.ts"], languageOptions: { globals: { - ...globals.jest, ...globals.commonjs, }, }, diff --git a/factory/program.ts b/factory/program.ts index a107d3fb8..6b049ee2c 100644 --- a/factory/program.ts +++ b/factory/program.ts @@ -1,10 +1,10 @@ -import { globSync } from "glob"; import * as path from "node:path"; import normalize from "normalize-path"; import type { CompilerOptions } from "typescript"; import ts from "typescript"; import type { CompletedConfig, Config } from "../src/Config.js"; import { BuildError } from "../src/Error/Errors.js"; +import fs from "node:fs"; function loadTsConfigFile(configFile: string) { const raw = ts.sys.readFile(configFile); @@ -68,7 +68,7 @@ function getTsConfig(config: Config) { export function createProgram(config: CompletedConfig): ts.Program { const rootNamesFromPath = config.path - ? globSync(normalize(path.resolve(config.path))).map((rootName) => normalize(rootName)) + ? fs.globSync(normalize(path.resolve(config.path))).map((rootName) => normalize(rootName)) : []; const tsconfig = getTsConfig(config); const rootNames = rootNamesFromPath.length ? rootNamesFromPath : tsconfig.fileNames; diff --git a/jest.config.cjs b/jest.config.cjs deleted file mode 100644 index 9b551660c..000000000 --- a/jest.config.cjs +++ /dev/null @@ -1,17 +0,0 @@ -/** @type {import('jest').Config} */ -const config = { - testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", - moduleFileExtensions: ["js", "ts", "json"], - testPathIgnorePatterns: ["/dist/", "/node_modules/", "/build/"], - coverageDirectory: "./coverage/", - collectCoverage: false, - testEnvironment: "node", - transform: { - ".*": "babel-jest", - }, - moduleNameMapper: { - "^(\\.{1,2}/.*)\\.js$": "$1", - }, -}; - -module.exports = config; diff --git a/package-lock.json b/package-lock.json index 994c7bdf7..f468e723e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,9 +10,7 @@ "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.15", - "@typescript/vfs": "1.6.2", "commander": "^14.0.2", - "glob": "^13.0.0", "json5": "^2.2.3", "normalize-path": "^3.0.0", "safe-stable-stringify": "^2.5.0", @@ -25,18 +23,15 @@ "devDependencies": { "@auto-it/conventional-commits": "^11.3.6", "@auto-it/first-time-contributor": "^11.3.6", - "@babel/core": "^7.28.5", - "@babel/preset-env": "^7.28.5", - "@babel/preset-typescript": "^7.28.5", "@eslint/js": "^9.39.1", "@types/eslint": "^9.6.1", "@types/node": "^24.10.1", "@types/normalize-path": "^3.0.2", + "@typescript/vfs": "1.6.2", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "auto": "^11.3.6", "c8": "^10.1.3", - "chai": "^6.2.1", "cross-env": "^10.1.0", "eslint": "9.39.1", "eslint-config-prettier": "^10.1.8", @@ -311,303 +306,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/compat-data": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", - "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", - "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", - "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", - "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { - "version": "5.1.1", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { - "version": "3.1.1", - "dev": true, - "license": "ISC" - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.5.tgz", - "integrity": "sha512-q3WC4JfdODypvxArsJQROfupPBq9+lMwjKq7C33GhbFYJsufD0yd/ziwD+hJucLeWsnFPWZjsU2DNFqBPE7jwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-member-expression-to-functions": "^7.28.5", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/traverse": "^7.28.5", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.1.tgz", - "integrity": "sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "regexpu-core": "^6.2.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.5.tgz", - "integrity": "sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "debug": "^4.4.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.22.10" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", - "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", - "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", - "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", - "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-wrap-function": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", - "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.27.1", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", - "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-validator-identifier": { "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", @@ -618,1277 +316,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.27.1.tgz", - "integrity": "sha512-NFJK2sHUvrjo8wAU/nQTWU890/zB2jj0qBcCbZbbf+005cAsv6tMjXz31fBign6M5ov1o0Bllu+9nbqkfsjjJQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.1", - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", - "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", - "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.5" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.28.5.tgz", - "integrity": "sha512-87GDMS3tsmMSi/3bWOte1UblL+YUTFMV8SZPZ2eSEL17s74Cw/l63rR6NmGVKMYW2GYi85nE+/d6Hw5N0bEk2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", - "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", - "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", - "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.3.tgz", - "integrity": "sha512-b6YTX108evsvE4YgWyQ921ZAFFQm3Bn+CA3+ZXlNVnPhx+UfsVURoPjfGAPCjBgrqo30yX/C2nZGX96DxvR9Iw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", - "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", - "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", - "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", - "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", - "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.28.0.tgz", - "integrity": "sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1", - "@babel/traverse": "^7.28.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", - "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", - "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.5.tgz", - "integrity": "sha512-45DmULpySVvmq9Pj3X9B+62Xe+DJGov27QravQJU1LLcapR6/10i+gYVAucGGJpHBp5mYxIMK4nDAT/QDLr47g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.27.1.tgz", - "integrity": "sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.3.tgz", - "integrity": "sha512-LtPXlBbRoc4Njl/oh1CeD/3jC+atytbnf/UqLoqTDcEYGUPj022+rvfkbDYieUrSj3CaV4yHDByPE+T2HwfsJg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.4.tgz", - "integrity": "sha512-cFOlhIYPBv/iBoc+KS3M6et2XPtbT2HiCRfBXWtfpc9OAyostldxIf9YAYB6ypURBBbx+Qv6nyrLzASfJe+hBA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-globals": "^7.28.0", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/traverse": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", - "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/template": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", - "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", - "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", - "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz", - "integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", - "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-explicit-resource-management": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.28.0.tgz", - "integrity": "sha512-K8nhUcn3f6iB+P3gwCv/no7OdzOZQcKchW6N389V6PD8NUWKZHzndOd9sPDVbMoBsbmjMqlB4L9fm+fEFNVlwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.28.5.tgz", - "integrity": "sha512-D4WIMaFtwa2NizOp+dnoFjRez/ClKiC2BqqImwKd1X28nqBtZEyCYJ2ozQrrzlxAFrcrjxo39S6khe9RNDlGzw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", - "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", - "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", - "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz", - "integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", - "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.28.5.tgz", - "integrity": "sha512-axUuqnUTBuXyHGcJEVVh9pORaN6wC5bYfE7FGzPiaWa3syib9m7g+/IT/4VgCOe2Upef43PHzeAvcrVek6QuuA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", - "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", - "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", - "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.28.5.tgz", - "integrity": "sha512-vn5Jma98LCOeBy/KpeQhXcV2WZgaRUtjwQmjoBuLNlOmkg0fB5pdvYVeWRYI69wWKwK2cD1QbMiUQnoujWvrew==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", - "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", - "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", - "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.27.1.tgz", - "integrity": "sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.27.1.tgz", - "integrity": "sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.4.tgz", - "integrity": "sha512-373KA2HQzKhQCYiRVIRr+3MjpCObqzDlyrM6u4I201wL8Mp2wHf7uB8GhDwis03k2ti8Zr65Zyyqs1xOxUF/Ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/traverse": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", - "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.27.1.tgz", - "integrity": "sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.5.tgz", - "integrity": "sha512-N6fut9IZlPnjPwgiQkXNhb+cT8wQKFlJNqcZkWlcTqkcqx6/kU4ynGmLFoa4LViBSirn05YAwk+sQBbPfxtYzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.27.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", - "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz", - "integrity": "sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.27.1.tgz", - "integrity": "sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", - "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.4.tgz", - "integrity": "sha512-+ZEdQlBoRg9m2NnzvEeLgtvBMO4tkFBw5SQIUgLICgTrumLoU7lr+Oghi6km2PFj+dbUt2u1oby2w3BDO9YQnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regexp-modifiers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.27.1.tgz", - "integrity": "sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", - "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", - "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", - "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", - "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", - "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", - "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.28.5.tgz", - "integrity": "sha512-x2Qa+v/CuEoX7Dr31iAfr0IhInrVOWZU/2vJMJ00FOR/2nM0BcBEclpaf9sWCDc+v5e9dMrhSH8/atq/kX7+bA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-create-class-features-plugin": "^7.28.5", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/plugin-syntax-typescript": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", - "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz", - "integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", - "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz", - "integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.28.5.tgz", - "integrity": "sha512-S36mOoi1Sb6Fz98fBfE+UZSpYw5mJm0NUHtIKrOuNcqeFauy1J6dIvXm2KRVKobOSaGq4t/hBXdN4HGU3wL9Wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-option": "^7.27.1", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.3", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.27.1", - "@babel/plugin-syntax-import-attributes": "^7.27.1", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-async-generator-functions": "^7.28.0", - "@babel/plugin-transform-async-to-generator": "^7.27.1", - "@babel/plugin-transform-block-scoped-functions": "^7.27.1", - "@babel/plugin-transform-block-scoping": "^7.28.5", - "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/plugin-transform-class-static-block": "^7.28.3", - "@babel/plugin-transform-classes": "^7.28.4", - "@babel/plugin-transform-computed-properties": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.5", - "@babel/plugin-transform-dotall-regex": "^7.27.1", - "@babel/plugin-transform-duplicate-keys": "^7.27.1", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-dynamic-import": "^7.27.1", - "@babel/plugin-transform-explicit-resource-management": "^7.28.0", - "@babel/plugin-transform-exponentiation-operator": "^7.28.5", - "@babel/plugin-transform-export-namespace-from": "^7.27.1", - "@babel/plugin-transform-for-of": "^7.27.1", - "@babel/plugin-transform-function-name": "^7.27.1", - "@babel/plugin-transform-json-strings": "^7.27.1", - "@babel/plugin-transform-literals": "^7.27.1", - "@babel/plugin-transform-logical-assignment-operators": "^7.28.5", - "@babel/plugin-transform-member-expression-literals": "^7.27.1", - "@babel/plugin-transform-modules-amd": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/plugin-transform-modules-systemjs": "^7.28.5", - "@babel/plugin-transform-modules-umd": "^7.27.1", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-new-target": "^7.27.1", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1", - "@babel/plugin-transform-numeric-separator": "^7.27.1", - "@babel/plugin-transform-object-rest-spread": "^7.28.4", - "@babel/plugin-transform-object-super": "^7.27.1", - "@babel/plugin-transform-optional-catch-binding": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.28.5", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/plugin-transform-private-methods": "^7.27.1", - "@babel/plugin-transform-private-property-in-object": "^7.27.1", - "@babel/plugin-transform-property-literals": "^7.27.1", - "@babel/plugin-transform-regenerator": "^7.28.4", - "@babel/plugin-transform-regexp-modifiers": "^7.27.1", - "@babel/plugin-transform-reserved-words": "^7.27.1", - "@babel/plugin-transform-shorthand-properties": "^7.27.1", - "@babel/plugin-transform-spread": "^7.27.1", - "@babel/plugin-transform-sticky-regex": "^7.27.1", - "@babel/plugin-transform-template-literals": "^7.27.1", - "@babel/plugin-transform-typeof-symbol": "^7.27.1", - "@babel/plugin-transform-unicode-escapes": "^7.27.1", - "@babel/plugin-transform-unicode-property-regex": "^7.27.1", - "@babel/plugin-transform-unicode-regex": "^7.27.1", - "@babel/plugin-transform-unicode-sets-regex": "^7.27.1", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.14", - "babel-plugin-polyfill-corejs3": "^0.13.0", - "babel-plugin-polyfill-regenerator": "^0.6.5", - "core-js-compat": "^3.43.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.28.5.tgz", - "integrity": "sha512-+bQy5WOI2V6LJZpPVxY+yp66XdZ2yifu0Mc1aP5CQKgjn4QM5IN2i5fAZ4xKop47pr8rpVhiAeu+nDQa12C8+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-option": "^7.27.1", - "@babel/plugin-syntax-jsx": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/plugin-transform-typescript": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", - "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.5", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", - "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@bcoe/v8-coverage": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", @@ -2662,27 +1089,6 @@ "node": ">=6.9.0" } }, - "node_modules/@isaacs/balanced-match": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", - "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", - "license": "MIT", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", - "license": "MIT", - "dependencies": { - "@isaacs/balanced-match": "^4.0.1" - }, - "engines": { - "node": "20 || >=22" - } - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -2796,28 +1202,6 @@ "node": ">=8" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", "dev": true, @@ -2888,6 +1272,7 @@ "version": "3.6.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", @@ -3084,6 +1469,7 @@ "version": "9.6.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -3125,6 +1511,7 @@ "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -3190,6 +1577,7 @@ "integrity": "sha512-jCzKdm/QK0Kg4V4IK/oMlRZlY+QOcdjv89U2NgKHZk1CYTj82/RVSx1mV/0gqCVMJ/DA+Zf/S4NBWNF8GQ+eqQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.48.0", "@typescript-eslint/types": "8.48.0", @@ -3408,6 +1796,7 @@ "version": "1.6.2", "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.2.tgz", "integrity": "sha512-hoBwJwcbKHmvd2QVebiytN1aELvpk9B74B4L1mFm/XT1Q/VOYAWl2vQ9AWRFtQq8zmz6enTpfTV8WRc4ATjW/g==", + "dev": true, "license": "MIT", "dependencies": { "debug": "^4.1.1" @@ -3422,6 +1811,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3707,48 +2097,6 @@ "node": ">=6.0.0" } }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", - "integrity": "sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.7", - "@babel/helper-define-polyfill-provider": "^0.6.5", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.13.0.tgz", - "integrity": "sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.5", - "core-js-compat": "^3.43.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.5.tgz", - "integrity": "sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.5" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "dev": true, @@ -3785,39 +2133,6 @@ "node": ">=8" } }, - "node_modules/browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "dev": true, @@ -4042,37 +2357,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chai": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.1.tgz", - "integrity": "sha512-p4Z49OGG5W/WBCPSS/dH3jQ73kD6tiMmUM+bckNK6Jr5JHMG3k9bg/BvKR8lKmtVBKmOiuVaV2ws8s9oSbwysg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, "node_modules/chalk": { "version": "4.1.2", "dev": true, @@ -4423,20 +2707,6 @@ "dev": true, "license": "MIT" }, - "node_modules/core-js-compat": { - "version": "3.43.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.43.0.tgz", - "integrity": "sha512-2GML2ZsCc5LR7hZYz4AXmjQw8zuy2T//2QntwdnpuYI7jteT6GVYJL7F6C2C57R7gSYrcqVW3lAALefdbhBLDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "browserslist": "^4.25.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-util-is": { "version": "1.0.3", "dev": true, @@ -4446,6 +2716,7 @@ "version": "7.0.0", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", @@ -4844,6 +3115,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -5004,13 +3276,6 @@ "dev": true, "license": "MIT" }, - "node_modules/electron-to-chromium": { - "version": "1.5.179", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.179.tgz", - "integrity": "sha512-UWKi/EbBopgfFsc5k61wFpV7WrnnSlSzW/e2XcBmS6qKYTivZlLtoll5/rdqRTxGglGHkmkW0j0pFNJG10EUIQ==", - "dev": true, - "license": "ISC" - }, "node_modules/emoji-regex": { "version": "8.0.0", "dev": true, @@ -5252,6 +3517,7 @@ "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -5312,6 +3578,7 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -5715,7 +3982,8 @@ "node_modules/fp-ts": { "version": "2.16.7", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/fromentries": { "version": "1.3.2", @@ -5786,14 +4054,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "dev": true, @@ -6022,17 +4282,22 @@ } }, "node_modules/glob": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", - "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", - "license": "BlueOak-1.0.0", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", "dependencies": { - "minimatch": "^10.1.1", - "minipass": "^7.1.2", - "path-scurry": "^2.0.0" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": "20 || >=22" + "node": "*" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -6049,21 +4314,6 @@ "node": ">=10.13.0" } }, - "node_modules/glob/node_modules/minimatch": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", - "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/globals": { "version": "16.5.0", "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", @@ -6110,28 +4360,6 @@ "node": ">=4" } }, - "node_modules/globby/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/globby/node_modules/ignore": { "version": "3.3.10", "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", @@ -6833,17 +5061,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsesc": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/json-buffer": { "version": "3.0.1", "dev": true, @@ -6997,13 +5214,6 @@ "dev": true, "license": "MIT" }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true, - "license": "MIT" - }, "node_modules/lodash.get": { "version": "4.4.2", "dev": true, @@ -7320,6 +5530,7 @@ }, "node_modules/minipass": { "version": "7.1.2", + "dev": true, "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" @@ -7342,6 +5553,7 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -7380,13 +5592,6 @@ } } }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" - }, "node_modules/normalize-package-data": { "version": "2.5.0", "dev": true, @@ -7661,31 +5866,6 @@ "dev": true, "license": "MIT" }, - "node_modules/path-scurry": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz", - "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==", - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.2.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz", - "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==", - "license": "BlueOak-1.0.0", - "engines": { - "node": "20 || >=22" - } - }, "node_modules/path-type": { "version": "3.0.0", "dev": true, @@ -7818,6 +5998,7 @@ "integrity": "sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -8043,26 +6224,6 @@ "node": ">=6" } }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true, - "license": "MIT" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", - "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", - "dev": true, - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/regexp.prototype.flags": { "version": "1.5.2", "dev": true, @@ -8080,24 +6241,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpu-core": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz", - "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", - "dev": true, - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.0", - "regjsgen": "^0.8.0", - "regjsparser": "^0.12.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/registry-url": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", @@ -8111,26 +6254,6 @@ "node": ">=8" } }, - "node_modules/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/regjsparser": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", - "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "jsesc": "~3.0.2" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, "node_modules/remove-markdown": { "version": "0.3.0", "dev": true, @@ -8954,6 +7077,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -9192,6 +7316,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -9270,86 +7395,11 @@ "dev": true, "license": "MIT" }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", - "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", - "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/universal-user-agent": { "version": "6.0.1", "dev": true, "license": "ISC" }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, "node_modules/uri-js": { "version": "4.4.1", "dev": true, @@ -9416,6 +7466,7 @@ "integrity": "sha512-BIwalIcEGysJdQDjeVUmMWB3e50jPDNAMfLJscjEvpunU9bSt7X1OYnQxkg3uBwuRRI4nWfFZO9uIW910nLeGw==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "dependencies": { "vega-crossfilter": "~5.1.0", "vega-dataflow": "~6.1.0", diff --git a/package.json b/package.json index eb6d95a89..55920cf2f 100644 --- a/package.json +++ b/package.json @@ -58,9 +58,7 @@ }, "dependencies": { "@types/json-schema": "^7.0.15", - "@typescript/vfs": "1.6.2", "commander": "^14.0.2", - "glob": "^13.0.0", "json5": "^2.2.3", "normalize-path": "^3.0.0", "safe-stable-stringify": "^2.5.0", @@ -70,18 +68,15 @@ "devDependencies": { "@auto-it/conventional-commits": "^11.3.6", "@auto-it/first-time-contributor": "^11.3.6", - "@babel/core": "^7.28.5", - "@babel/preset-env": "^7.28.5", - "@babel/preset-typescript": "^7.28.5", "@eslint/js": "^9.39.1", "@types/eslint": "^9.6.1", "@types/node": "^24.10.1", "@types/normalize-path": "^3.0.2", + "@typescript/vfs": "1.6.2", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "auto": "^11.3.6", "c8": "^10.1.3", - "chai": "^6.2.1", "cross-env": "^10.1.0", "eslint": "9.39.1", "eslint-config-prettier": "^10.1.8", @@ -96,6 +91,6 @@ }, "packageManager": "npm@11.6.4", "engines": { - "node": ">=18.0.0" + "node": ">=22.0.0" } } diff --git a/test/config.test.ts b/test/config.test.ts deleted file mode 100644 index a192cd9a1..000000000 --- a/test/config.test.ts +++ /dev/null @@ -1,546 +0,0 @@ -import Ajv from "ajv"; -import addFormats from "ajv-formats"; -import fs from "fs"; -import assert from "node:assert"; -import { describe, it, type TestFn } from "node:test"; -import path from "path"; -import stringify from "safe-stable-stringify"; -import { t } from "try"; -import ts from "typescript"; -import type { FormatterAugmentor } from "../factory/formatter"; -import { createFormatter } from "../factory/formatter"; -import type { ParserAugmentor } from "../factory/parser"; -import { createParser } from "../factory/parser"; -import { createProgram } from "../factory/program"; -import type { BaseType, Context, ReferenceType, SubNodeParser } from "../index"; -import { BaseError, DefinitionType } from "../index"; -import type { CompletedConfig, Config } from "../src/Config.js"; -import { DEFAULT_CONFIG } from "../src/Config.js"; -import type { Definition } from "../src/Schema/Definition.js"; -import { SchemaGenerator } from "../src/SchemaGenerator.js"; -import type { SubTypeFormatter } from "../src/SubTypeFormatter.js"; -import { EnumType } from "../src/Type/EnumType.js"; -import { FunctionType } from "../src/Type/FunctionType.js"; -import { StringType } from "../src/Type/StringType.js"; -import type { TypeFormatter } from "../src/TypeFormatter.js"; -import { uniqueArray } from "../src/Utils/uniqueArray.js"; - -const basePath = "test/config"; - -function assertSchema( - name: string, - userConfig: Config & { type: string | string[] }, - tsconfig?: boolean, - formatterAugmentor?: FormatterAugmentor, - parserAugmentor?: ParserAugmentor, -): TestFn { - return async () => { - const config: CompletedConfig = { - ...DEFAULT_CONFIG, - ...userConfig, - skipTypeCheck: !!process.env.FAST_TEST, - }; - if (tsconfig) { - config.tsconfig = path.resolve(basePath, name, "tsconfig.json"); - } else { - config.path = path.resolve(basePath, name, "*.ts"); - } - - const program: ts.Program = createProgram(config); - - const [ok, error, generator] = t( - () => - new SchemaGenerator( - program, - createParser(program, config, parserAugmentor), - createFormatter(config, formatterAugmentor), - config, - ), - ); - - if (!ok) { - if (error instanceof BaseError) { - console.error(error.format(true)); - } - - throw error; - } - - const schema = generator.createSchema(config.type); - const schemaFile = path.resolve(basePath, name, "schema.json"); - - if (process.env.UPDATE_SCHEMA) { - await fs.promises.writeFile(schemaFile, stringify(schema, null, 2) + "\n", "utf8"); - } - - const expected: any = JSON.parse(await fs.promises.readFile(schemaFile, "utf8")); - const actual: any = JSON.parse(JSON.stringify(schema)); - - assert.equal(typeof actual, "object"); - assert.deepStrictEqual(actual, expected); - - const keywords: string[] = []; - if (config.markdownDescription) keywords.push("markdownDescription"); - if (config.fullDescription) keywords.push("fullDescription"); - - const validator = new Ajv({ - // skip full check if we are not encoding refs - validateFormats: config.encodeRefs === false ? undefined : true, - keywords: keywords.length ? keywords : undefined, - }); - - addFormats(validator); - - validator.validateSchema(actual); - assert.equal(validator.errors, null); - - validator.compile(actual); // Will find MissingRef errors - }; -} - -export class ExampleFunctionTypeFormatter implements SubTypeFormatter { - public supportsType(type: BaseType): boolean { - return type instanceof FunctionType; - } - public getDefinition(_type: FunctionType): Definition { - return { - type: "object", - properties: { - isFunction: { - type: "boolean", - const: true, - }, - }, - }; - } - public getChildren(_type: FunctionType): BaseType[] { - return []; - } -} - -export class ExampleEnumTypeFormatter implements SubTypeFormatter { - public supportsType(type: BaseType): boolean { - return type instanceof EnumType; - } - public getDefinition(type: EnumType): Definition { - return { - type: "object", - properties: { - isEnum: { - type: "boolean", - const: true, - }, - enumLength: { - type: "number", - const: type.getValues().length, - }, - }, - }; - } - public getChildren(_type: EnumType): BaseType[] { - return []; - } -} - -// Just like DefinitionFormatter but adds { $comment: "overriden" } -export class ExampleDefinitionOverrideFormatter implements SubTypeFormatter { - public constructor(private childTypeFormatter: TypeFormatter) {} - public supportsType(type: BaseType): boolean { - return type instanceof DefinitionType; - } - public getDefinition(type: DefinitionType): Definition { - const ref = type.getName(); - return { $ref: `#/definitions/${ref}`, $comment: "overriden" }; - } - public getChildren(type: DefinitionType): BaseType[] { - return uniqueArray([type, ...this.childTypeFormatter.getChildren(type.getType())]); - } -} - -export class ExampleConstructorParser implements SubNodeParser { - supportsNode(node: ts.Node): boolean { - return node.kind === ts.SyntaxKind.ConstructorType; - } - createType(node: ts.Node, context: Context, reference?: ReferenceType): BaseType { - return new StringType(); - } -} - -export class ExampleNullParser implements SubNodeParser { - supportsNode(node: ts.Node): boolean { - return node.kind === ts.SyntaxKind.NullKeyword; - } - createType(node: ts.Node, context: Context, reference?: ReferenceType): BaseType { - return new StringType(); - } -} - -describe("config", () => { - it( - "expose-all-topref-true", - assertSchema("expose-all-topref-true", { - type: "MyObject", - expose: "all", - topRef: true, - jsDoc: "none", - }), - ); - it( - "expose-all-topref-true-not-exported", - assertSchema("expose-all-topref-true-not-exported", { - type: "MyObject", - expose: "all", - topRef: true, - jsDoc: "none", - }), - ); - - it( - "expose-all-topref-false", - assertSchema("expose-all-topref-false", { - type: "MyObject", - expose: "all", - topRef: false, - jsDoc: "none", - }), - ); - it( - "expose-all-topref-false-not-exported", - assertSchema("expose-all-topref-false-not-exported", { - type: "MyObject", - expose: "all", - topRef: false, - jsDoc: "none", - }), - ); - - it( - "expose-none-topref-true", - assertSchema("expose-none-topref-true", { - type: "MyObject", - expose: "none", - topRef: true, - jsDoc: "none", - }), - ); - it( - "expose-none-topref-false", - assertSchema("expose-none-topref-false", { - type: "MyObject", - expose: "none", - topRef: false, - jsDoc: "none", - }), - ); - - it( - "expose-export-topref-true", - assertSchema("expose-export-topref-true", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "none", - }), - ); - it( - "expose-export-topref-false", - assertSchema("expose-export-topref-false", { - type: "MyObject", - expose: "export", - topRef: false, - jsDoc: "none", - }), - ); - - it( - "jsdoc-complex-none", - assertSchema("jsdoc-complex-none", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "none", - }), - ); - it( - "jsdoc-complex-basic", - assertSchema("jsdoc-complex-basic", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "basic", - }), - ); - it( - "jsdoc-complex-extended", - assertSchema("jsdoc-complex-extended", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - it( - "jsdoc-description-only", - assertSchema("jsdoc-description-only", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - - it( - "jsdoc-hidden", - assertSchema("jsdoc-hidden", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - - it( - "jsdoc-hidden-types", - assertSchema("jsdoc-hidden-types", { - type: "MyType", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - - it( - "jsdoc-hidden-types-intersection", - assertSchema("jsdoc-hidden-types-intersection", { - type: "MyType", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - - it( - "jsdoc-inheritance", - assertSchema("jsdoc-inheritance", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - it( - "jsdoc-inheritance-exclude", - assertSchema("jsdoc-inheritance-exclude", { - type: "MyType", - expose: "export", - topRef: true, - jsDoc: "extended", - }), - ); - - // ensure that skipping type checking doesn't alter the JSON schema output - it( - "jsdoc-complex-extended", - assertSchema("jsdoc-complex-extended", { - type: "MyObject", - expose: "export", - topRef: true, - jsDoc: "extended", - skipTypeCheck: true, - }), - ); - it( - "markdown-description", - assertSchema("markdown-description", { - type: "MyObject", - expose: "export", - topRef: false, - jsDoc: "extended", - sortProps: true, - markdownDescription: true, - }), - ); - it( - "full-description", - assertSchema("full-description", { - type: "MyObject", - expose: "export", - topRef: false, - jsDoc: "extended", - sortProps: true, - markdownDescription: true, - fullDescription: true, - }), - ); - it( - "tsconfig-support", - assertSchema( - "tsconfig-support", - { - type: "MyObject", - expose: "all", - topRef: false, - jsDoc: "none", - }, - true, - ), - ); - - it( - "no-ref-encode", - assertSchema("no-ref-encode", { - type: "MyObject", - expose: "all", - encodeRefs: false, - topRef: true, - jsDoc: "none", - }), - ); - - it( - "additional-properties", - assertSchema("additional-properties", { - type: "MyObject", - additionalProperties: true, - }), - ); - - it( - "multiple-types", - assertSchema("multiple-types", { - type: ["MyObject1", "MyObject2"], - }), - ); - - it( - "multiple-types-all", - assertSchema("multiple-types-all", { - type: ["MyObject1", "MyObject2", "Object1Prop", "Object2Prop"], - }), - ); - - it( - "mapped-intersection", - assertSchema("mapped-intersection", { - type: "MyObject", - additionalProperties: true, - }), - ); - - it( - "mapped-intersection-complex", - assertSchema("mapped-intersection-complex", { - type: "MyObject", - additionalProperties: true, - }), - ); - - it( - "mapped-intersection-index", - assertSchema("mapped-intersection-index", { - type: "MyObject", - additionalProperties: true, - }), - ); - - it( - "mapped-index-any", - assertSchema("mapped-index-any", { - type: "*", - additionalProperties: true, - }), - ); - - it( - "arrow-function-parameters", - assertSchema("arrow-function-parameters", { - type: "myFunction", - expose: "all", - }), - ); - it( - "function-parameters-all", - assertSchema("function-parameters-all", { - type: "*", - }), - ); - - it( - "custom-formatter-configuration", - assertSchema( - "custom-formatter-configuration", - { - type: "MyObject", - }, - false, - (formatter) => formatter.addTypeFormatter(new ExampleFunctionTypeFormatter()), - ), - ); - - it( - "custom-formatter-configuration-override", - assertSchema( - "custom-formatter-configuration-override", - { - type: "MyObject", - }, - false, - (formatter) => formatter.addTypeFormatter(new ExampleEnumTypeFormatter()), - ), - ); - - it( - "custom-formatter-configuration-circular", - assertSchema( - "custom-formatter-configuration-circular", - { - type: "MyObject", - }, - false, - (formatter, circularReferenceTypeFormatter) => - formatter.addTypeFormatter(new ExampleDefinitionOverrideFormatter(circularReferenceTypeFormatter)), - ), - ); - - it( - "custom-parser-configuration", - assertSchema( - "custom-parser-configuration", - { - type: "MyObject", - }, - false, - undefined, - (parser) => parser.addNodeParser(new ExampleConstructorParser()), - ), - ); - - it( - "custom-parser-configuration-override", - assertSchema( - "custom-parser-configuration-override", - { - type: "MyObject", - }, - false, - undefined, - (parser) => parser.addNodeParser(new ExampleNullParser()), - ), - ); - - it( - "functions-hide", - assertSchema("functions-hide", { - type: "MyType", - functions: "hide", - }), - ); - - it( - "functions-comment", - assertSchema("functions-comment", { - type: "MyType", - functions: "comment", - }), - ); -}); diff --git a/test/config/additional-properties/index.test.ts b/test/config/additional-properties/index.test.ts new file mode 100644 index 000000000..3532c3304 --- /dev/null +++ b/test/config/additional-properties/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - additional-properties", + assertConfigSchema("additional-properties", { + type: "MyObject", + additionalProperties: true, + }), +); diff --git a/test/config/arrow-function-parameters/index.test.ts b/test/config/arrow-function-parameters/index.test.ts new file mode 100644 index 000000000..14b68dc70 --- /dev/null +++ b/test/config/arrow-function-parameters/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - arrow-function-parameters", + assertConfigSchema("arrow-function-parameters", { + type: "myFunction", + expose: "all", + }), +); diff --git a/test/config/custom-formatter-configuration-circular/index.test.ts b/test/config/custom-formatter-configuration-circular/index.test.ts new file mode 100644 index 000000000..afcdefdb2 --- /dev/null +++ b/test/config/custom-formatter-configuration-circular/index.test.ts @@ -0,0 +1,36 @@ +import { it } from "node:test"; +import type { BaseType } from "../../../index"; +import { DefinitionType } from "../../../index"; +import type { Definition } from "../../../src/Schema/Definition"; +import type { SubTypeFormatter } from "../../../src/SubTypeFormatter"; +import type { TypeFormatter } from "../../../src/TypeFormatter"; +import { uniqueArray } from "../../../src/Utils/uniqueArray"; +import { assertConfigSchema } from "../../utils"; + +// Just like DefinitionFormatter but adds { $comment: "overriden" } +class ExampleDefinitionOverrideFormatter implements SubTypeFormatter { + public constructor(private childTypeFormatter: TypeFormatter) {} + public supportsType(type: BaseType): boolean { + return type instanceof DefinitionType; + } + public getDefinition(type: DefinitionType): Definition { + const ref = type.getName(); + return { $ref: `#/definitions/${ref}`, $comment: "overriden" }; + } + public getChildren(type: DefinitionType): BaseType[] { + return uniqueArray([type, ...this.childTypeFormatter.getChildren(type.getType())]); + } +} + +it( + "config - custom-formatter-configuration-circular", + assertConfigSchema( + "custom-formatter-configuration-circular", + { + type: "MyObject", + }, + false, + (formatter, circularReferenceTypeFormatter) => + formatter.addTypeFormatter(new ExampleDefinitionOverrideFormatter(circularReferenceTypeFormatter)), + ), +); diff --git a/test/config/custom-formatter-configuration-override/index.test.ts b/test/config/custom-formatter-configuration-override/index.test.ts new file mode 100644 index 000000000..445ce167b --- /dev/null +++ b/test/config/custom-formatter-configuration-override/index.test.ts @@ -0,0 +1,42 @@ +import { it } from "node:test"; +import type { BaseType } from "../../../index"; +import { EnumType } from "../../../src/Type/EnumType"; +import type { Definition } from "../../../src/Schema/Definition"; +import type { SubTypeFormatter } from "../../../src/SubTypeFormatter"; +import { assertConfigSchema } from "../../utils"; + +class ExampleEnumTypeFormatter implements SubTypeFormatter { + public supportsType(type: BaseType): boolean { + return type instanceof EnumType; + } + public getDefinition(type: EnumType): Definition { + return { + type: "object", + properties: { + isEnum: { + type: "boolean", + const: true, + }, + enumLength: { + type: "number", + const: type.getValues().length, + }, + }, + }; + } + public getChildren(_type: EnumType): BaseType[] { + return []; + } +} + +it( + "config - custom-formatter-configuration-override", + assertConfigSchema( + "custom-formatter-configuration-override", + { + type: "MyObject", + }, + false, + (formatter) => formatter.addTypeFormatter(new ExampleEnumTypeFormatter()), + ), +); diff --git a/test/config/custom-formatter-configuration/index.test.ts b/test/config/custom-formatter-configuration/index.test.ts new file mode 100644 index 000000000..1b8e63e81 --- /dev/null +++ b/test/config/custom-formatter-configuration/index.test.ts @@ -0,0 +1,38 @@ +import { it } from "node:test"; +import type { BaseType } from "../../../index"; +import { FunctionType } from "../../../src/Type/FunctionType"; +import type { Definition } from "../../../src/Schema/Definition"; +import type { SubTypeFormatter } from "../../../src/SubTypeFormatter"; +import { assertConfigSchema } from "../../utils"; + +class ExampleFunctionTypeFormatter implements SubTypeFormatter { + public supportsType(type: BaseType): boolean { + return type instanceof FunctionType; + } + public getDefinition(_type: FunctionType): Definition { + return { + type: "object", + properties: { + isFunction: { + type: "boolean", + const: true, + }, + }, + }; + } + public getChildren(_type: FunctionType): BaseType[] { + return []; + } +} + +it( + "config - custom-formatter-configuration", + assertConfigSchema( + "custom-formatter-configuration", + { + type: "MyObject", + }, + false, + (formatter) => formatter.addTypeFormatter(new ExampleFunctionTypeFormatter()), + ), +); diff --git a/test/config/custom-parser-configuration-override/index.test.ts b/test/config/custom-parser-configuration-override/index.test.ts new file mode 100644 index 000000000..0e2d69524 --- /dev/null +++ b/test/config/custom-parser-configuration-override/index.test.ts @@ -0,0 +1,27 @@ +import { it } from "node:test"; +import ts from "typescript"; +import type { BaseType, Context, ReferenceType, SubNodeParser } from "../../../index"; +import { StringType } from "../../../src/Type/StringType"; +import { assertConfigSchema } from "../../utils"; + +class ExampleNullParser implements SubNodeParser { + supportsNode(node: ts.Node): boolean { + return node.kind === ts.SyntaxKind.NullKeyword; + } + createType(node: ts.Node, context: Context, reference?: ReferenceType): BaseType { + return new StringType(); + } +} + +it( + "config - custom-parser-configuration-override", + assertConfigSchema( + "custom-parser-configuration-override", + { + type: "MyObject", + }, + false, + undefined, + (parser) => parser.addNodeParser(new ExampleNullParser()), + ), +); diff --git a/test/config/custom-parser-configuration/index.test.ts b/test/config/custom-parser-configuration/index.test.ts new file mode 100644 index 000000000..35e25b758 --- /dev/null +++ b/test/config/custom-parser-configuration/index.test.ts @@ -0,0 +1,27 @@ +import { it } from "node:test"; +import ts from "typescript"; +import type { BaseType, Context, ReferenceType, SubNodeParser } from "../../../index"; +import { StringType } from "../../../src/Type/StringType"; +import { assertConfigSchema } from "../../utils"; + +class ExampleConstructorParser implements SubNodeParser { + supportsNode(node: ts.Node): boolean { + return node.kind === ts.SyntaxKind.ConstructorType; + } + createType(node: ts.Node, context: Context, reference?: ReferenceType): BaseType { + return new StringType(); + } +} + +it( + "config - custom-parser-configuration", + assertConfigSchema( + "custom-parser-configuration", + { + type: "MyObject", + }, + false, + undefined, + (parser) => parser.addNodeParser(new ExampleConstructorParser()), + ), +); diff --git a/test/config/expose-all-topref-false-not-exported/index.test.ts b/test/config/expose-all-topref-false-not-exported/index.test.ts new file mode 100644 index 000000000..9be09ee58 --- /dev/null +++ b/test/config/expose-all-topref-false-not-exported/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-all-topref-false-not-exported", + assertConfigSchema("expose-all-topref-false-not-exported", { + type: "MyObject", + expose: "all", + topRef: false, + jsDoc: "none", + }), +); diff --git a/test/config/expose-all-topref-false/index.test.ts b/test/config/expose-all-topref-false/index.test.ts new file mode 100644 index 000000000..de0fe8954 --- /dev/null +++ b/test/config/expose-all-topref-false/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-all-topref-false", + assertConfigSchema("expose-all-topref-false", { + type: "MyObject", + expose: "all", + topRef: false, + jsDoc: "none", + }), +); diff --git a/test/config/expose-all-topref-true-not-exported/index.test.ts b/test/config/expose-all-topref-true-not-exported/index.test.ts new file mode 100644 index 000000000..3e85da7e0 --- /dev/null +++ b/test/config/expose-all-topref-true-not-exported/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-all-topref-true-not-exported", + assertConfigSchema("expose-all-topref-true-not-exported", { + type: "MyObject", + expose: "all", + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/expose-all-topref-true/index.test.ts b/test/config/expose-all-topref-true/index.test.ts new file mode 100644 index 000000000..c3dd0a5d7 --- /dev/null +++ b/test/config/expose-all-topref-true/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-all-topref-true", + assertConfigSchema("expose-all-topref-true", { + type: "MyObject", + expose: "all", + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/expose-export-topref-false/index.test.ts b/test/config/expose-export-topref-false/index.test.ts new file mode 100644 index 000000000..13e665b24 --- /dev/null +++ b/test/config/expose-export-topref-false/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-export-topref-false", + assertConfigSchema("expose-export-topref-false", { + type: "MyObject", + expose: "export", + topRef: false, + jsDoc: "none", + }), +); diff --git a/test/config/expose-export-topref-true/index.test.ts b/test/config/expose-export-topref-true/index.test.ts new file mode 100644 index 000000000..66a8ed71e --- /dev/null +++ b/test/config/expose-export-topref-true/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-export-topref-true", + assertConfigSchema("expose-export-topref-true", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/expose-none-topref-false/index.test.ts b/test/config/expose-none-topref-false/index.test.ts new file mode 100644 index 000000000..34be787c2 --- /dev/null +++ b/test/config/expose-none-topref-false/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-none-topref-false", + assertConfigSchema("expose-none-topref-false", { + type: "MyObject", + expose: "none", + topRef: false, + jsDoc: "none", + }), +); diff --git a/test/config/expose-none-topref-true/index.test.ts b/test/config/expose-none-topref-true/index.test.ts new file mode 100644 index 000000000..11b374fdc --- /dev/null +++ b/test/config/expose-none-topref-true/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - expose-none-topref-true", + assertConfigSchema("expose-none-topref-true", { + type: "MyObject", + expose: "none", + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/full-description/index.test.ts b/test/config/full-description/index.test.ts new file mode 100644 index 000000000..c4fc29b40 --- /dev/null +++ b/test/config/full-description/index.test.ts @@ -0,0 +1,15 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - full-description", + assertConfigSchema("full-description", { + type: "MyObject", + expose: "export", + topRef: false, + jsDoc: "extended", + sortProps: true, + markdownDescription: true, + fullDescription: true, + }), +); diff --git a/test/config/function-parameters-all/index.test.ts b/test/config/function-parameters-all/index.test.ts new file mode 100644 index 000000000..03fe30fda --- /dev/null +++ b/test/config/function-parameters-all/index.test.ts @@ -0,0 +1,9 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - function-parameters-all", + assertConfigSchema("function-parameters-all", { + type: "*", + }), +); diff --git a/test/config/functions-comment/index.test.ts b/test/config/functions-comment/index.test.ts new file mode 100644 index 000000000..74c58f35a --- /dev/null +++ b/test/config/functions-comment/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - functions-comment", + assertConfigSchema("functions-comment", { + type: "MyType", + functions: "comment", + }), +); diff --git a/test/config/functions-hide/index.test.ts b/test/config/functions-hide/index.test.ts new file mode 100644 index 000000000..a6e5809a0 --- /dev/null +++ b/test/config/functions-hide/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - functions-hide", + assertConfigSchema("functions-hide", { + type: "MyType", + functions: "hide", + }), +); diff --git a/test/config/jsdoc-complex-basic/index.test.ts b/test/config/jsdoc-complex-basic/index.test.ts new file mode 100644 index 000000000..6bedfd240 --- /dev/null +++ b/test/config/jsdoc-complex-basic/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-complex-basic", + assertConfigSchema("jsdoc-complex-basic", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "basic", + }), +); diff --git a/test/config/jsdoc-complex-extended/index.test.ts b/test/config/jsdoc-complex-extended/index.test.ts new file mode 100644 index 000000000..5475276ba --- /dev/null +++ b/test/config/jsdoc-complex-extended/index.test.ts @@ -0,0 +1,24 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-complex-extended", + assertConfigSchema("jsdoc-complex-extended", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); + +// ensure that skipping type checking doesn't alter the JSON schema output +it( + "config - jsdoc-complex-extended (skipTypeCheck)", + assertConfigSchema("jsdoc-complex-extended", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "extended", + skipTypeCheck: true, + }), +); diff --git a/test/config/jsdoc-complex-none/index.test.ts b/test/config/jsdoc-complex-none/index.test.ts new file mode 100644 index 000000000..b202a373d --- /dev/null +++ b/test/config/jsdoc-complex-none/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-complex-none", + assertConfigSchema("jsdoc-complex-none", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/jsdoc-description-only/index.test.ts b/test/config/jsdoc-description-only/index.test.ts new file mode 100644 index 000000000..c3bf3a591 --- /dev/null +++ b/test/config/jsdoc-description-only/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-description-only", + assertConfigSchema("jsdoc-description-only", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/jsdoc-hidden-types-intersection/index.test.ts b/test/config/jsdoc-hidden-types-intersection/index.test.ts new file mode 100644 index 000000000..6f9a1f9bd --- /dev/null +++ b/test/config/jsdoc-hidden-types-intersection/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-hidden-types-intersection", + assertConfigSchema("jsdoc-hidden-types-intersection", { + type: "MyType", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/jsdoc-hidden-types/index.test.ts b/test/config/jsdoc-hidden-types/index.test.ts new file mode 100644 index 000000000..a3b245c94 --- /dev/null +++ b/test/config/jsdoc-hidden-types/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-hidden-types", + assertConfigSchema("jsdoc-hidden-types", { + type: "MyType", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/jsdoc-hidden/index.test.ts b/test/config/jsdoc-hidden/index.test.ts new file mode 100644 index 000000000..8a6ab837c --- /dev/null +++ b/test/config/jsdoc-hidden/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-hidden", + assertConfigSchema("jsdoc-hidden", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/jsdoc-inheritance-exclude/index.test.ts b/test/config/jsdoc-inheritance-exclude/index.test.ts new file mode 100644 index 000000000..2af4d9f3c --- /dev/null +++ b/test/config/jsdoc-inheritance-exclude/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-inheritance-exclude", + assertConfigSchema("jsdoc-inheritance-exclude", { + type: "MyType", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/jsdoc-inheritance/index.test.ts b/test/config/jsdoc-inheritance/index.test.ts new file mode 100644 index 000000000..9bfb9ce6f --- /dev/null +++ b/test/config/jsdoc-inheritance/index.test.ts @@ -0,0 +1,12 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - jsdoc-inheritance", + assertConfigSchema("jsdoc-inheritance", { + type: "MyObject", + expose: "export", + topRef: true, + jsDoc: "extended", + }), +); diff --git a/test/config/mapped-index-any/index.test.ts b/test/config/mapped-index-any/index.test.ts new file mode 100644 index 000000000..df39fb032 --- /dev/null +++ b/test/config/mapped-index-any/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - mapped-index-any", + assertConfigSchema("mapped-index-any", { + type: "*", + additionalProperties: true, + }), +); diff --git a/test/config/mapped-intersection-complex/index.test.ts b/test/config/mapped-intersection-complex/index.test.ts new file mode 100644 index 000000000..87ec81af2 --- /dev/null +++ b/test/config/mapped-intersection-complex/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - mapped-intersection-complex", + assertConfigSchema("mapped-intersection-complex", { + type: "MyObject", + additionalProperties: true, + }), +); diff --git a/test/config/mapped-intersection-index/index.test.ts b/test/config/mapped-intersection-index/index.test.ts new file mode 100644 index 000000000..2c95053f1 --- /dev/null +++ b/test/config/mapped-intersection-index/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - mapped-intersection-index", + assertConfigSchema("mapped-intersection-index", { + type: "MyObject", + additionalProperties: true, + }), +); diff --git a/test/config/mapped-intersection/index.test.ts b/test/config/mapped-intersection/index.test.ts new file mode 100644 index 000000000..51f86ee14 --- /dev/null +++ b/test/config/mapped-intersection/index.test.ts @@ -0,0 +1,10 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - mapped-intersection", + assertConfigSchema("mapped-intersection", { + type: "MyObject", + additionalProperties: true, + }), +); diff --git a/test/config/markdown-description/index.test.ts b/test/config/markdown-description/index.test.ts new file mode 100644 index 000000000..0bd33a664 --- /dev/null +++ b/test/config/markdown-description/index.test.ts @@ -0,0 +1,14 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - markdown-description", + assertConfigSchema("markdown-description", { + type: "MyObject", + expose: "export", + topRef: false, + jsDoc: "extended", + sortProps: true, + markdownDescription: true, + }), +); diff --git a/test/config/multiple-types-all/index.test.ts b/test/config/multiple-types-all/index.test.ts new file mode 100644 index 000000000..6239d3cb6 --- /dev/null +++ b/test/config/multiple-types-all/index.test.ts @@ -0,0 +1,9 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - multiple-types-all", + assertConfigSchema("multiple-types-all", { + type: ["MyObject1", "MyObject2", "Object1Prop", "Object2Prop"], + }), +); diff --git a/test/config/multiple-types/index.test.ts b/test/config/multiple-types/index.test.ts new file mode 100644 index 000000000..4f2ac6698 --- /dev/null +++ b/test/config/multiple-types/index.test.ts @@ -0,0 +1,9 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - multiple-types", + assertConfigSchema("multiple-types", { + type: ["MyObject1", "MyObject2"], + }), +); diff --git a/test/config/no-ref-encode/index.test.ts b/test/config/no-ref-encode/index.test.ts new file mode 100644 index 000000000..a5453a2a4 --- /dev/null +++ b/test/config/no-ref-encode/index.test.ts @@ -0,0 +1,13 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - no-ref-encode", + assertConfigSchema("no-ref-encode", { + type: "MyObject", + expose: "all", + encodeRefs: false, + topRef: true, + jsDoc: "none", + }), +); diff --git a/test/config/tsconfig-support/index.test.ts b/test/config/tsconfig-support/index.test.ts new file mode 100644 index 000000000..16a62023d --- /dev/null +++ b/test/config/tsconfig-support/index.test.ts @@ -0,0 +1,16 @@ +import { it } from "node:test"; +import { assertConfigSchema } from "../../utils"; + +it( + "config - tsconfig-support", + assertConfigSchema( + "tsconfig-support", + { + type: "MyObject", + expose: "all", + topRef: false, + jsDoc: "none", + }, + true, + ), +); diff --git a/test/invalid-data.test.ts b/test/invalid-data.test.ts deleted file mode 100644 index 2f07a6dca..000000000 --- a/test/invalid-data.test.ts +++ /dev/null @@ -1,66 +0,0 @@ -import assert from "assert"; -import { describe, it } from "node:test"; -import { resolve } from "path"; -import { t } from "try"; -import type ts from "typescript"; -import { createFormatter } from "../factory/formatter"; -import { createParser } from "../factory/parser"; -import { createProgram } from "../factory/program"; -import type { CompletedConfig } from "../src/Config.js"; -import { DEFAULT_CONFIG } from "../src/Config.js"; -import { BaseError } from "../src/Error/BaseError.js"; -import { SchemaGenerator } from "../src/SchemaGenerator.js"; - -function assertSchema(name: string, type: string | string[], message: string) { - return () => { - const config: CompletedConfig = { - ...DEFAULT_CONFIG, - path: resolve("test", "invalid-data", name, `*.ts`), - type: type, - expose: "export", - topRef: true, - jsDoc: "basic", - skipTypeCheck: !!process.env.FAST_TEST, - }; - - const program: ts.Program = createProgram(config); - - const [ok, error, generator] = t( - () => new SchemaGenerator(program, createParser(program, config), createFormatter(config)), - ); - - if (!ok) { - if (error instanceof BaseError) { - console.error(error.format(true)); - } - - throw error; - } - - assert.throws(() => generator.createSchema(type), { message }); - }; -} - -describe("invalid-data", () => { - // TODO: template recursive - - it("script-empty", assertSchema("script-empty", "MyType", `No root type "MyType" found`)); - it("duplicates", assertSchema("duplicates", "MyType", `Type "A" has multiple definitions.`)); - it("mixing * and types", assertSchema("duplicates", ["*", "MyType"], `Cannot mix '*' with specific type names`)); - it( - "missing-discriminator", - assertSchema("missing-discriminator", "MyType", 'Cannot find discriminator keyword "type" in type B.'), - ); - it( - "non-union-discriminator", - assertSchema( - "non-union-discriminator", - "MyType", - "Cannot assign discriminator tag to type: interface-2103469249-0-76-2103469249-0-77. This tag can only be assigned to union types.", - ), - ); - it( - "duplicate-discriminator", - assertSchema("duplicate-discriminator", "MyType", 'Duplicate discriminator values: A in type "(A|B)".'), - ); -}); diff --git a/test/invalid-data/duplicate-discriminator/index.test.ts b/test/invalid-data/duplicate-discriminator/index.test.ts new file mode 100644 index 000000000..6effca047 --- /dev/null +++ b/test/invalid-data/duplicate-discriminator/index.test.ts @@ -0,0 +1,7 @@ +import { it } from "node:test"; +import { assertInvalidSchema } from "../../utils"; + +it( + "invalid-data - duplicate-discriminator", + assertInvalidSchema("duplicate-discriminator", "MyType", 'Duplicate discriminator values: A in type "(A|B)".'), +); diff --git a/test/invalid-data/duplicates/index.test.ts b/test/invalid-data/duplicates/index.test.ts new file mode 100644 index 000000000..72624565a --- /dev/null +++ b/test/invalid-data/duplicates/index.test.ts @@ -0,0 +1,8 @@ +import { it } from "node:test"; +import { assertInvalidSchema } from "../../utils"; + +it("invalid-data - duplicates", assertInvalidSchema("duplicates", "MyType", `Type "A" has multiple definitions.`)); +it( + "invalid-data - mixing * and types", + assertInvalidSchema("duplicates", ["*", "MyType"], `Cannot mix '*' with specific type names`), +); diff --git a/test/invalid-data/missing-discriminator/index.test.ts b/test/invalid-data/missing-discriminator/index.test.ts new file mode 100644 index 000000000..a0c07db55 --- /dev/null +++ b/test/invalid-data/missing-discriminator/index.test.ts @@ -0,0 +1,7 @@ +import { it } from "node:test"; +import { assertInvalidSchema } from "../../utils"; + +it( + "invalid-data - missing-discriminator", + assertInvalidSchema("missing-discriminator", "MyType", 'Cannot find discriminator keyword "type" in type B.'), +); diff --git a/test/invalid-data/non-union-discriminator/index.test.ts b/test/invalid-data/non-union-discriminator/index.test.ts new file mode 100644 index 000000000..65aee2ab7 --- /dev/null +++ b/test/invalid-data/non-union-discriminator/index.test.ts @@ -0,0 +1,11 @@ +import { it } from "node:test"; +import { assertInvalidSchema } from "../../utils"; + +it( + "invalid-data - non-union-discriminator", + assertInvalidSchema( + "non-union-discriminator", + "MyType", + "Cannot assign discriminator tag to type: interface-2103469249-0-76-2103469249-0-77. This tag can only be assigned to union types.", + ), +); diff --git a/test/invalid-data/script-empty/index.test.ts b/test/invalid-data/script-empty/index.test.ts new file mode 100644 index 000000000..29c31a89e --- /dev/null +++ b/test/invalid-data/script-empty/index.test.ts @@ -0,0 +1,4 @@ +import { it } from "node:test"; +import { assertInvalidSchema } from "../../utils"; + +it("invalid-data - script-empty", assertInvalidSchema("script-empty", "MyType", `No root type "MyType" found`)); diff --git a/test/utils.ts b/test/utils.ts index ed7b03138..a7834d838 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -1,56 +1,164 @@ import type { Options as AjvOptions } from "ajv"; import Ajv from "ajv"; import addFormats from "ajv-formats"; +import assert from "node:assert"; import fs from "node:fs"; import path from "node:path"; import type { TestFn } from "node:test"; import stringify from "safe-stable-stringify"; +import { t } from "try"; +import type ts from "typescript"; +import type { FormatterAugmentor } from "../factory/formatter"; +import { createFormatter } from "../factory/formatter"; import { createGenerator } from "../factory/generator.js"; +import type { ParserAugmentor } from "../factory/parser"; +import { createParser } from "../factory/parser"; +import { createProgram } from "../factory/program"; import type { CompletedConfig, Config } from "../src/Config.js"; import { DEFAULT_CONFIG } from "../src/Config.js"; -import { t } from "try"; import { BaseError } from "../src/Error/BaseError.js"; -import assert from "node:assert"; +import { SchemaGenerator } from "../src/SchemaGenerator.js"; const validator = new Ajv({ discriminator: true }); addFormats(validator); -const basePath = "test/valid-data"; - -export interface ValidSchemaOptions { - /** - * Array of sample data - * that should - * successfully validate. - */ - validSamples?: any[]; - /** - * Array of sample data - * that should - * fail to validate. - */ - invalidSamples?: any[]; - /** - * Options to pass to Ajv - * when creating the Ajv - * instance. - * - * @default {strict:false} - */ - ajvOptions?: AjvOptions; - mainTsOnly?: boolean; +const baseValidPath = "test/valid-data"; +const baseConfigPath = "test/config"; +const baseInvalidPath = "test/invalid-data"; + +export function assertConfigSchema( + name: string, + userConfig: Config & { type: string | string[] }, + tsconfig?: boolean, + formatterAugmentor?: FormatterAugmentor, + parserAugmentor?: ParserAugmentor, +): TestFn { + return async () => { + const config: CompletedConfig = { + ...DEFAULT_CONFIG, + ...userConfig, + skipTypeCheck: !!process.env.FAST_TEST, + }; + if (tsconfig) { + config.tsconfig = path.resolve(baseConfigPath, name, "tsconfig.json"); + } else { + config.path = path.resolve(baseConfigPath, name, "*.ts"); + } + + const program: ts.Program = createProgram(config); + + const [ok, error, generator] = t( + () => + new SchemaGenerator( + program, + createParser(program, config, parserAugmentor), + createFormatter(config, formatterAugmentor), + config, + ), + ); + + if (!ok) { + if (error instanceof BaseError) { + console.error(error.format(true)); + } + + throw error; + } + + const schema = generator.createSchema(config.type); + const schemaFile = path.resolve(baseConfigPath, name, "schema.json"); + + if (process.env.UPDATE_SCHEMA) { + await fs.promises.writeFile(schemaFile, stringify(schema, null, 2) + "\n", "utf8"); + } + + const expected: any = JSON.parse(await fs.promises.readFile(schemaFile, "utf8")); + const actual: any = JSON.parse(JSON.stringify(schema)); + + assert.equal(typeof actual, "object"); + assert.deepStrictEqual(actual, expected); + + const keywords: string[] = []; + if (config.markdownDescription) keywords.push("markdownDescription"); + if (config.fullDescription) keywords.push("fullDescription"); + + const localValidator = new Ajv({ + // skip full check if we are not encoding refs + validateFormats: config.encodeRefs === false ? undefined : true, + keywords: keywords.length ? keywords : undefined, + }); + + addFormats(localValidator); + + localValidator.validateSchema(actual); + assert.equal(localValidator.errors, null); + + localValidator.compile(actual); // Will find MissingRef errors + }; +} + +export function assertInvalidSchema(name: string, type: string | string[], message: string) { + return () => { + const config: CompletedConfig = { + ...DEFAULT_CONFIG, + path: path.resolve(baseInvalidPath, name, `*.ts`), + type: type, + expose: "export", + topRef: true, + jsDoc: "basic", + skipTypeCheck: !!process.env.FAST_TEST, + }; + + const program: ts.Program = createProgram(config); + + const [ok, error, generator] = t( + () => new SchemaGenerator(program, createParser(program, config), createFormatter(config)), + ); + + if (!ok) { + if (error instanceof BaseError) { + console.error(error.format(true)); + } + + throw error; + } + + assert.throws(() => generator.createSchema(type), { message }); + }; } export function assertValidSchema( relativePath: string, type?: Config["type"], config_?: Omit, - options?: ValidSchemaOptions, + options?: { + /** + * Array of sample data + * that should + * successfully validate. + */ + validSamples?: any[]; + /** + * Array of sample data + * that should + * fail to validate. + */ + invalidSamples?: any[]; + /** + * Options to pass to Ajv + * when creating the Ajv + * instance. + * + * @default {strict:false} + */ + ajvOptions?: AjvOptions; + mainTsOnly?: boolean; + }, ): TestFn { return async () => { const config: CompletedConfig = { ...DEFAULT_CONFIG, - path: path.resolve(basePath, relativePath, `${options?.mainTsOnly ? "main" : "*"}.ts`), + path: path.resolve(baseValidPath, relativePath, `${options?.mainTsOnly ? "main" : "*"}.ts`), skipTypeCheck: !!process.env.FAST_TEST, type, ...config_, @@ -67,7 +175,7 @@ export function assertValidSchema( } const schema = generator.createSchema(config.type); - const schemaFile = path.resolve(basePath, relativePath, "schema.json"); + const schemaFile = path.resolve(baseValidPath, relativePath, "schema.json"); if (process.env.UPDATE_SCHEMA) { await fs.promises.writeFile(schemaFile, stringify(schema, null, 2) + "\n", "utf8"); diff --git a/test/valid-data/annotation-comment/index.test.ts b/test/valid-data/annotation-comment/index.test.ts index b01c30681..b54d41ef8 100644 --- a/test/valid-data/annotation-comment/index.test.ts +++ b/test/valid-data/annotation-comment/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-comment", assertValidSchema("annotation-comment", "MyObject")); +test("valid-data - annotation-comment", assertValidSchema("annotation-comment", "MyObject")); diff --git a/test/valid-data/annotation-custom/index.test.ts b/test/valid-data/annotation-custom/index.test.ts index 4819b74ae..689bc4ae2 100644 --- a/test/valid-data/annotation-custom/index.test.ts +++ b/test/valid-data/annotation-custom/index.test.ts @@ -2,7 +2,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "annotation-custom", + "valid-data - annotation-custom", assertValidSchema("annotation-custom", "MyObject", { jsDoc: "basic", extraTags: [ diff --git a/test/valid-data/annotation-default/index.test.ts b/test/valid-data/annotation-default/index.test.ts index 61d7852ef..b7c126f96 100644 --- a/test/valid-data/annotation-default/index.test.ts +++ b/test/valid-data/annotation-default/index.test.ts @@ -2,7 +2,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "annotation-default", + "valid-data - annotation-default", assertValidSchema("annotation-default", "MyObject", undefined, { validSamples: [ { @@ -19,7 +19,7 @@ test( ); test( - "annotation-default", + "valid-data - annotation-default", assertValidSchema("annotation-default", "MyObject", undefined, { validSamples: [{ nullField: null, numberField: 10, stringField: "hello" }, {}], ajvOptions: { useDefaults: true }, diff --git a/test/valid-data/annotation-deprecated/index.test.ts b/test/valid-data/annotation-deprecated/index.test.ts index c25b1475e..7217caac7 100644 --- a/test/valid-data/annotation-deprecated/index.test.ts +++ b/test/valid-data/annotation-deprecated/index.test.ts @@ -2,11 +2,11 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "annotation-deprecated", + "valid-data - annotation-deprecated", assertValidSchema("annotation-deprecated", "MyObject", { jsDoc: "basic", extraTags: ["deprecationMessage"] }), ); test( - "annotation-deprecated", + "valid-data - annotation-deprecated", assertValidSchema("annotation-deprecated", "MyObject", { extraTags: ["deprecationMessage"] }), ); diff --git a/test/valid-data/annotation-description-override/index.test.ts b/test/valid-data/annotation-description-override/index.test.ts index 25ba022d3..855c3e6fd 100644 --- a/test/valid-data/annotation-description-override/index.test.ts +++ b/test/valid-data/annotation-description-override/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "annotation-description-override", + "valid-data - annotation-description-override", assertValidSchema("annotation-description-override", "MyObject", { extraTags: ["markdownDescription"] }), ); diff --git a/test/valid-data/annotation-empty/index.test.ts b/test/valid-data/annotation-empty/index.test.ts index b03450478..caff7d878 100644 --- a/test/valid-data/annotation-empty/index.test.ts +++ b/test/valid-data/annotation-empty/index.test.ts @@ -2,8 +2,11 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "annotation-empty", + "valid-data - annotation-empty", assertValidSchema("annotation-empty", "MyObject", { jsDoc: "basic", extraTags: ["customEmptyAnnotation"] }), ); -test("annotation-empty", assertValidSchema("annotation-empty", "MyObject", { extraTags: ["customEmptyAnnotation"] })); +test( + "valid-data - annotation-empty", + assertValidSchema("annotation-empty", "MyObject", { extraTags: ["customEmptyAnnotation"] }), +); diff --git a/test/valid-data/annotation-example/index.test.ts b/test/valid-data/annotation-example/index.test.ts index 594c55a87..03a65a445 100644 --- a/test/valid-data/annotation-example/index.test.ts +++ b/test/valid-data/annotation-example/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-example", assertValidSchema("annotation-example", "MyObject")); +test("valid-data - annotation-example", assertValidSchema("annotation-example", "MyObject")); diff --git a/test/valid-data/annotation-id/index.test.ts b/test/valid-data/annotation-id/index.test.ts index ab745ed34..e9df0c0b1 100644 --- a/test/valid-data/annotation-id/index.test.ts +++ b/test/valid-data/annotation-id/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-id", assertValidSchema("annotation-id", "MyObject", { schemaId: "Test" })); +test("valid-data - annotation-id", assertValidSchema("annotation-id", "MyObject", { schemaId: "Test" })); diff --git a/test/valid-data/annotation-nullable-definition/index.test.ts b/test/valid-data/annotation-nullable-definition/index.test.ts index 930d3e719..67e55e2b9 100644 --- a/test/valid-data/annotation-nullable-definition/index.test.ts +++ b/test/valid-data/annotation-nullable-definition/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-nullable-definition", assertValidSchema("annotation-nullable-definition", "MyObject")); +test("valid-data - annotation-nullable-definition", assertValidSchema("annotation-nullable-definition", "MyObject")); diff --git a/test/valid-data/annotation-readOnly/index.test.ts b/test/valid-data/annotation-readOnly/index.test.ts index 9356100f1..c1c0796c5 100644 --- a/test/valid-data/annotation-readOnly/index.test.ts +++ b/test/valid-data/annotation-readOnly/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-readOnly", assertValidSchema("annotation-readOnly", "MyObject", { jsDoc: "basic" })); +test("valid-data - annotation-readOnly", assertValidSchema("annotation-readOnly", "MyObject", { jsDoc: "basic" })); diff --git a/test/valid-data/annotation-ref/index.test.ts b/test/valid-data/annotation-ref/index.test.ts index 1f58da6b0..9e4997f80 100644 --- a/test/valid-data/annotation-ref/index.test.ts +++ b/test/valid-data/annotation-ref/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-ref", assertValidSchema("annotation-ref", "MyObject")); +test("valid-data - annotation-ref", assertValidSchema("annotation-ref", "MyObject")); diff --git a/test/valid-data/annotation-union-if-then-enum/index.test.ts b/test/valid-data/annotation-union-if-then-enum/index.test.ts index 9ac63adb2..bcf7b2a6c 100644 --- a/test/valid-data/annotation-union-if-then-enum/index.test.ts +++ b/test/valid-data/annotation-union-if-then-enum/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-union-if-then-enum", assertValidSchema("annotation-union-if-then-enum", "AB", { jsDoc: "basic" })); +test( + "valid-data - annotation-union-if-then-enum", + assertValidSchema("annotation-union-if-then-enum", "AB", { jsDoc: "basic" }), +); diff --git a/test/valid-data/annotation-union-if-then/index.test.ts b/test/valid-data/annotation-union-if-then/index.test.ts index f607429e2..c631cb8c3 100644 --- a/test/valid-data/annotation-union-if-then/index.test.ts +++ b/test/valid-data/annotation-union-if-then/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-union-if-then", assertValidSchema("annotation-union-if-then", "Animal", { jsDoc: "basic" })); +test( + "valid-data - annotation-union-if-then", + assertValidSchema("annotation-union-if-then", "Animal", { jsDoc: "basic" }), +); diff --git a/test/valid-data/annotation-writeOnly/index.test.ts b/test/valid-data/annotation-writeOnly/index.test.ts index cb7e8cab8..e976c0730 100644 --- a/test/valid-data/annotation-writeOnly/index.test.ts +++ b/test/valid-data/annotation-writeOnly/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("annotation-writeOnly", assertValidSchema("annotation-writeOnly", "MyObject", { jsDoc: "basic" })); +test("valid-data - annotation-writeOnly", assertValidSchema("annotation-writeOnly", "MyObject", { jsDoc: "basic" })); diff --git a/test/valid-data/any-unknown/index.test.ts b/test/valid-data/any-unknown/index.test.ts index 3ef9562a2..7e8f09bb0 100644 --- a/test/valid-data/any-unknown/index.test.ts +++ b/test/valid-data/any-unknown/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("any-unknown", assertValidSchema("any-unknown", "MyObject")); +test("valid-data - any-unknown", assertValidSchema("any-unknown", "MyObject")); diff --git a/test/valid-data/array-function-generics/index.test.ts b/test/valid-data/array-function-generics/index.test.ts index 775026098..05e41a8e3 100644 --- a/test/valid-data/array-function-generics/index.test.ts +++ b/test/valid-data/array-function-generics/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-function-generics", assertValidSchema("array-function-generics", "*")); +test("valid-data - array-function-generics", assertValidSchema("array-function-generics", "*")); diff --git a/test/valid-data/array-literal-spread/index.test.ts b/test/valid-data/array-literal-spread/index.test.ts index 4abb3b160..14d4efe63 100644 --- a/test/valid-data/array-literal-spread/index.test.ts +++ b/test/valid-data/array-literal-spread/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-literal-spread", assertValidSchema("array-literal-spread", "MyType")); +test("valid-data - array-literal-spread", assertValidSchema("array-literal-spread", "MyType")); diff --git a/test/valid-data/array-max-items-optional/index.test.ts b/test/valid-data/array-max-items-optional/index.test.ts index d296a9578..b66783c71 100644 --- a/test/valid-data/array-max-items-optional/index.test.ts +++ b/test/valid-data/array-max-items-optional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-max-items-optional", assertValidSchema("array-max-items-optional", "MyType")); +test("valid-data - array-max-items-optional", assertValidSchema("array-max-items-optional", "MyType")); diff --git a/test/valid-data/array-min-items-1/index.test.ts b/test/valid-data/array-min-items-1/index.test.ts index 1d6badc0b..2090772e4 100644 --- a/test/valid-data/array-min-items-1/index.test.ts +++ b/test/valid-data/array-min-items-1/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-min-items-1", assertValidSchema("array-min-items-1", "MyType")); +test("valid-data - array-min-items-1", assertValidSchema("array-min-items-1", "MyType")); diff --git a/test/valid-data/array-min-items-2/index.test.ts b/test/valid-data/array-min-items-2/index.test.ts index 8a3742889..d52ce27c3 100644 --- a/test/valid-data/array-min-items-2/index.test.ts +++ b/test/valid-data/array-min-items-2/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-min-items-2", assertValidSchema("array-min-items-2", "MyType")); +test("valid-data - array-min-items-2", assertValidSchema("array-min-items-2", "MyType")); diff --git a/test/valid-data/array-min-max-items-optional/index.test.ts b/test/valid-data/array-min-max-items-optional/index.test.ts index 16c80f8f2..9993ddac9 100644 --- a/test/valid-data/array-min-max-items-optional/index.test.ts +++ b/test/valid-data/array-min-max-items-optional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-min-max-items-optional", assertValidSchema("array-min-max-items-optional", "MyType")); +test("valid-data - array-min-max-items-optional", assertValidSchema("array-min-max-items-optional", "MyType")); diff --git a/test/valid-data/array-min-max-items/index.test.ts b/test/valid-data/array-min-max-items/index.test.ts index 6885d0940..55ad8baa8 100644 --- a/test/valid-data/array-min-max-items/index.test.ts +++ b/test/valid-data/array-min-max-items/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-min-max-items", assertValidSchema("array-min-max-items", "MyType")); +test("valid-data - array-min-max-items", assertValidSchema("array-min-max-items", "MyType")); diff --git a/test/valid-data/array-rest-only/index.test.ts b/test/valid-data/array-rest-only/index.test.ts index 3d99e9d67..703d0d28f 100644 --- a/test/valid-data/array-rest-only/index.test.ts +++ b/test/valid-data/array-rest-only/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("array-rest-only", assertValidSchema("array-rest-only", "MyType")); +test("valid-data - array-rest-only", assertValidSchema("array-rest-only", "MyType")); diff --git a/test/valid-data/binary-expression/index.test.ts b/test/valid-data/binary-expression/index.test.ts index de71d0b78..64fec7f4b 100644 --- a/test/valid-data/binary-expression/index.test.ts +++ b/test/valid-data/binary-expression/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("binary-expression", assertValidSchema("binary-expression", "MyObject")); +test("valid-data - binary-expression", assertValidSchema("binary-expression", "MyObject")); diff --git a/test/valid-data/class-extra-props/index.test.ts b/test/valid-data/class-extra-props/index.test.ts index ef530d310..e8fc7531d 100644 --- a/test/valid-data/class-extra-props/index.test.ts +++ b/test/valid-data/class-extra-props/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-extra-props", assertValidSchema("class-extra-props", "MyObject")); +test("valid-data - class-extra-props", assertValidSchema("class-extra-props", "MyObject")); diff --git a/test/valid-data/class-generics/index.test.ts b/test/valid-data/class-generics/index.test.ts index a5f7c9e90..4812a3b01 100644 --- a/test/valid-data/class-generics/index.test.ts +++ b/test/valid-data/class-generics/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-generics", assertValidSchema("class-generics", "MyObject")); +test("valid-data - class-generics", assertValidSchema("class-generics", "MyObject")); diff --git a/test/valid-data/class-inheritance/index.test.ts b/test/valid-data/class-inheritance/index.test.ts index c10e800dd..fac287f4e 100644 --- a/test/valid-data/class-inheritance/index.test.ts +++ b/test/valid-data/class-inheritance/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-inheritance", assertValidSchema("class-inheritance", "MyObject")); +test("valid-data - class-inheritance", assertValidSchema("class-inheritance", "MyObject")); diff --git a/test/valid-data/class-jsdoc/index.test.ts b/test/valid-data/class-jsdoc/index.test.ts index 02977027e..28f0dcecc 100644 --- a/test/valid-data/class-jsdoc/index.test.ts +++ b/test/valid-data/class-jsdoc/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-jsdoc", assertValidSchema("class-jsdoc", "MyObject")); +test("valid-data - class-jsdoc", assertValidSchema("class-jsdoc", "MyObject")); diff --git a/test/valid-data/class-multi/index.test.ts b/test/valid-data/class-multi/index.test.ts index f76bc2131..9aa6114bb 100644 --- a/test/valid-data/class-multi/index.test.ts +++ b/test/valid-data/class-multi/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-multi", assertValidSchema("class-multi", "MyObject")); +test("valid-data - class-multi", assertValidSchema("class-multi", "MyObject")); diff --git a/test/valid-data/class-new-expression/index.test.ts b/test/valid-data/class-new-expression/index.test.ts index dbaf7ca18..3bcdd0325 100644 --- a/test/valid-data/class-new-expression/index.test.ts +++ b/test/valid-data/class-new-expression/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-new-expression", assertValidSchema("class-new-expression", "MyType")); +test("valid-data - class-new-expression", assertValidSchema("class-new-expression", "MyType")); diff --git a/test/valid-data/class-recursion/index.test.ts b/test/valid-data/class-recursion/index.test.ts index 69a6e97ba..4fefab532 100644 --- a/test/valid-data/class-recursion/index.test.ts +++ b/test/valid-data/class-recursion/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-recursion", assertValidSchema("class-recursion", "MyObject")); +test("valid-data - class-recursion", assertValidSchema("class-recursion", "MyObject")); diff --git a/test/valid-data/class-single/index.test.ts b/test/valid-data/class-single/index.test.ts index b23de5861..210ad693f 100644 --- a/test/valid-data/class-single/index.test.ts +++ b/test/valid-data/class-single/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("class-single", assertValidSchema("class-single", "MyObject")); +test("valid-data - class-single", assertValidSchema("class-single", "MyObject")); diff --git a/test/valid-data/const-spread/index.test.ts b/test/valid-data/const-spread/index.test.ts index cc47e6830..e3111f2fe 100644 --- a/test/valid-data/const-spread/index.test.ts +++ b/test/valid-data/const-spread/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("const-spread", assertValidSchema("const-spread", "MyType")); +test("valid-data - const-spread", assertValidSchema("const-spread", "MyType")); diff --git a/test/valid-data/discriminator/index.test.ts b/test/valid-data/discriminator/index.test.ts index 179bd4807..36596e2a5 100644 --- a/test/valid-data/discriminator/index.test.ts +++ b/test/valid-data/discriminator/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("discriminator", assertValidSchema("discriminator", "Animal", { jsDoc: "basic", discriminatorType: "open-api" })); +test( + "valid-data - discriminator", + assertValidSchema("discriminator", "Animal", { jsDoc: "basic", discriminatorType: "open-api" }), +); diff --git a/test/valid-data/enums-compute/index.test.ts b/test/valid-data/enums-compute/index.test.ts index 06cee5bc4..a1b150ade 100644 --- a/test/valid-data/enums-compute/index.test.ts +++ b/test/valid-data/enums-compute/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-compute", assertValidSchema("enums-compute", "Enum")); +test("valid-data - enums-compute", assertValidSchema("enums-compute", "Enum")); diff --git a/test/valid-data/enums-initialized/index.test.ts b/test/valid-data/enums-initialized/index.test.ts index 137841cc7..adaa07f2a 100644 --- a/test/valid-data/enums-initialized/index.test.ts +++ b/test/valid-data/enums-initialized/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-initialized", assertValidSchema("enums-initialized", "Enum")); +test("valid-data - enums-initialized", assertValidSchema("enums-initialized", "Enum")); diff --git a/test/valid-data/enums-member/index.test.ts b/test/valid-data/enums-member/index.test.ts index a3f321fcd..f576eee3f 100644 --- a/test/valid-data/enums-member/index.test.ts +++ b/test/valid-data/enums-member/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-member", assertValidSchema("enums-member", "MyObject")); +test("valid-data - enums-member", assertValidSchema("enums-member", "MyObject")); diff --git a/test/valid-data/enums-mixed/index.test.ts b/test/valid-data/enums-mixed/index.test.ts index 2a7e5d09a..af7743bb9 100644 --- a/test/valid-data/enums-mixed/index.test.ts +++ b/test/valid-data/enums-mixed/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-mixed", assertValidSchema("enums-mixed", "Enum")); +test("valid-data - enums-mixed", assertValidSchema("enums-mixed", "Enum")); diff --git a/test/valid-data/enums-number/index.test.ts b/test/valid-data/enums-number/index.test.ts index 3c73c0ceb..5d0e226fa 100644 --- a/test/valid-data/enums-number/index.test.ts +++ b/test/valid-data/enums-number/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-number", assertValidSchema("enums-number", "Enum")); +test("valid-data - enums-number", assertValidSchema("enums-number", "Enum")); diff --git a/test/valid-data/enums-string/index.test.ts b/test/valid-data/enums-string/index.test.ts index b1b6bba15..ed8e1377d 100644 --- a/test/valid-data/enums-string/index.test.ts +++ b/test/valid-data/enums-string/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-string", assertValidSchema("enums-string", "Enum")); +test("valid-data - enums-string", assertValidSchema("enums-string", "Enum")); diff --git a/test/valid-data/enums-template-literal/index.test.ts b/test/valid-data/enums-template-literal/index.test.ts index 7cef9f25e..d7626c8c2 100644 --- a/test/valid-data/enums-template-literal/index.test.ts +++ b/test/valid-data/enums-template-literal/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-template-literal", assertValidSchema("enums-template-literal", "MyObject")); +test("valid-data - enums-template-literal", assertValidSchema("enums-template-literal", "MyObject")); diff --git a/test/valid-data/enums-union/index.test.ts b/test/valid-data/enums-union/index.test.ts index 0008de5a2..00d5248da 100644 --- a/test/valid-data/enums-union/index.test.ts +++ b/test/valid-data/enums-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("enums-union", assertValidSchema("enums-union", "MyObject")); +test("valid-data - enums-union", assertValidSchema("enums-union", "MyObject")); diff --git a/test/valid-data/export-star-prune-unreachable/index.test.ts b/test/valid-data/export-star-prune-unreachable/index.test.ts index da4183ebb..26a317233 100644 --- a/test/valid-data/export-star-prune-unreachable/index.test.ts +++ b/test/valid-data/export-star-prune-unreachable/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "export-star-prune-unreachable", + "valid-data - export-star-prune-unreachable", assertValidSchema("export-star-prune-unreachable", "*", undefined, { mainTsOnly: true }), ); diff --git a/test/valid-data/export-star/index.test.ts b/test/valid-data/export-star/index.test.ts index 3ea057af9..b80ab8a64 100644 --- a/test/valid-data/export-star/index.test.ts +++ b/test/valid-data/export-star/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("export-star", assertValidSchema("export-star", "*", undefined, { mainTsOnly: true })); +test("valid-data - export-star", assertValidSchema("export-star", "*", undefined, { mainTsOnly: true })); diff --git a/test/valid-data/exported-enums-union/index.test.ts b/test/valid-data/exported-enums-union/index.test.ts index 01c70715b..65461572e 100644 --- a/test/valid-data/exported-enums-union/index.test.ts +++ b/test/valid-data/exported-enums-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("exported-enums-union", assertValidSchema("exported-enums-union", "MyObject")); +test("valid-data - exported-enums-union", assertValidSchema("exported-enums-union", "MyObject")); diff --git a/test/valid-data/function-function-syntax/index.test.ts b/test/valid-data/function-function-syntax/index.test.ts index f9d76214d..dea71f45a 100644 --- a/test/valid-data/function-function-syntax/index.test.ts +++ b/test/valid-data/function-function-syntax/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-function-syntax", assertValidSchema("function-function-syntax", "myFunction")); +test("valid-data - function-function-syntax", assertValidSchema("function-function-syntax", "myFunction")); diff --git a/test/valid-data/function-generic/index.test.ts b/test/valid-data/function-generic/index.test.ts index ed1e5f818..ebd6e54bc 100644 --- a/test/valid-data/function-generic/index.test.ts +++ b/test/valid-data/function-generic/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-generic", assertValidSchema("function-generic", "MyType")); +test("valid-data - function-generic", assertValidSchema("function-generic", "MyType")); diff --git a/test/valid-data/function-parameters-declaration/index.test.ts b/test/valid-data/function-parameters-declaration/index.test.ts index b9f77e322..2059e9b02 100644 --- a/test/valid-data/function-parameters-declaration/index.test.ts +++ b/test/valid-data/function-parameters-declaration/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-parameters-declaration", assertValidSchema("function-parameters-declaration", "myFunction")); +test( + "valid-data - function-parameters-declaration", + assertValidSchema("function-parameters-declaration", "myFunction"), +); diff --git a/test/valid-data/function-parameters-default-value/index.test.ts b/test/valid-data/function-parameters-default-value/index.test.ts index 2bf00ce84..1edc2ce38 100644 --- a/test/valid-data/function-parameters-default-value/index.test.ts +++ b/test/valid-data/function-parameters-default-value/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-parameters-default-value", assertValidSchema("function-parameters-default-value", "myFunction")); +test( + "valid-data - function-parameters-default-value", + assertValidSchema("function-parameters-default-value", "myFunction"), +); diff --git a/test/valid-data/function-parameters-jsdoc/index.test.ts b/test/valid-data/function-parameters-jsdoc/index.test.ts index 5f073258d..ab99a41f4 100644 --- a/test/valid-data/function-parameters-jsdoc/index.test.ts +++ b/test/valid-data/function-parameters-jsdoc/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-parameters-jsdoc", assertValidSchema("function-parameters-jsdoc", "myFunction", { jsDoc: "basic" })); +test( + "valid-data - function-parameters-jsdoc", + assertValidSchema("function-parameters-jsdoc", "myFunction", { jsDoc: "basic" }), +); diff --git a/test/valid-data/function-parameters-optional/index.test.ts b/test/valid-data/function-parameters-optional/index.test.ts index 6bc72101c..bf04efd84 100644 --- a/test/valid-data/function-parameters-optional/index.test.ts +++ b/test/valid-data/function-parameters-optional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-parameters-optional", assertValidSchema("function-parameters-optional", "myFunction")); +test("valid-data - function-parameters-optional", assertValidSchema("function-parameters-optional", "myFunction")); diff --git a/test/valid-data/function-parameters-required/index.test.ts b/test/valid-data/function-parameters-required/index.test.ts index ada25a307..e4868cb76 100644 --- a/test/valid-data/function-parameters-required/index.test.ts +++ b/test/valid-data/function-parameters-required/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("function-parameters-required", assertValidSchema("function-parameters-required", "myFunction")); +test("valid-data - function-parameters-required", assertValidSchema("function-parameters-required", "myFunction")); diff --git a/test/valid-data/function-parameters-variable-assignment/index.test.ts b/test/valid-data/function-parameters-variable-assignment/index.test.ts index f673bdf15..238be60bf 100644 --- a/test/valid-data/function-parameters-variable-assignment/index.test.ts +++ b/test/valid-data/function-parameters-variable-assignment/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "function-parameters-variable-assignment", + "valid-data - function-parameters-variable-assignment", assertValidSchema("function-parameters-variable-assignment", "myFunction"), ); diff --git a/test/valid-data/generic-anonymous/index.test.ts b/test/valid-data/generic-anonymous/index.test.ts index dc317d2a1..46bade1dc 100644 --- a/test/valid-data/generic-anonymous/index.test.ts +++ b/test/valid-data/generic-anonymous/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-anonymous", assertValidSchema("generic-anonymous", "MyObject")); +test("valid-data - generic-anonymous", assertValidSchema("generic-anonymous", "MyObject")); diff --git a/test/valid-data/generic-arrays/index.test.ts b/test/valid-data/generic-arrays/index.test.ts index c5dae38d6..03968cb69 100644 --- a/test/valid-data/generic-arrays/index.test.ts +++ b/test/valid-data/generic-arrays/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-arrays", assertValidSchema("generic-arrays", "MyObject")); +test("valid-data - generic-arrays", assertValidSchema("generic-arrays", "MyObject")); diff --git a/test/valid-data/generic-default-conditional/index.test.ts b/test/valid-data/generic-default-conditional/index.test.ts index 9e7b9fd67..1bc3472dc 100644 --- a/test/valid-data/generic-default-conditional/index.test.ts +++ b/test/valid-data/generic-default-conditional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-default-conditional", assertValidSchema("generic-default-conditional", "MyObject")); +test("valid-data - generic-default-conditional", assertValidSchema("generic-default-conditional", "MyObject")); diff --git a/test/valid-data/generic-default/index.test.ts b/test/valid-data/generic-default/index.test.ts index 2167caf62..32605356d 100644 --- a/test/valid-data/generic-default/index.test.ts +++ b/test/valid-data/generic-default/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-default", assertValidSchema("generic-default", "MyObject")); +test("valid-data - generic-default", assertValidSchema("generic-default", "MyObject")); diff --git a/test/valid-data/generic-hell/index.test.ts b/test/valid-data/generic-hell/index.test.ts index 828ac7dc0..de3378883 100644 --- a/test/valid-data/generic-hell/index.test.ts +++ b/test/valid-data/generic-hell/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-hell", assertValidSchema("generic-hell", "MyObject")); +test("valid-data - generic-hell", assertValidSchema("generic-hell", "MyObject")); diff --git a/test/valid-data/generic-multiargs/index.test.ts b/test/valid-data/generic-multiargs/index.test.ts index f8a61115b..7f442a20d 100644 --- a/test/valid-data/generic-multiargs/index.test.ts +++ b/test/valid-data/generic-multiargs/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-multiargs", assertValidSchema("generic-multiargs", "MyObject")); +test("valid-data - generic-multiargs", assertValidSchema("generic-multiargs", "MyObject")); diff --git a/test/valid-data/generic-multiple/index.test.ts b/test/valid-data/generic-multiple/index.test.ts index a89beb48b..da47a006b 100644 --- a/test/valid-data/generic-multiple/index.test.ts +++ b/test/valid-data/generic-multiple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-multiple", assertValidSchema("generic-multiple", "MyObject")); +test("valid-data - generic-multiple", assertValidSchema("generic-multiple", "MyObject")); diff --git a/test/valid-data/generic-nested/index.test.ts b/test/valid-data/generic-nested/index.test.ts index b191adedf..1e890a943 100644 --- a/test/valid-data/generic-nested/index.test.ts +++ b/test/valid-data/generic-nested/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-nested", assertValidSchema("generic-nested", "MyObject")); +test("valid-data - generic-nested", assertValidSchema("generic-nested", "MyObject")); diff --git a/test/valid-data/generic-prefixed-number/index.test.ts b/test/valid-data/generic-prefixed-number/index.test.ts index 42ee269de..b857acb31 100644 --- a/test/valid-data/generic-prefixed-number/index.test.ts +++ b/test/valid-data/generic-prefixed-number/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-prefixed-number", assertValidSchema("generic-prefixed-number", "MyObject")); +test("valid-data - generic-prefixed-number", assertValidSchema("generic-prefixed-number", "MyObject")); diff --git a/test/valid-data/generic-recursive/index.test.ts b/test/valid-data/generic-recursive/index.test.ts index b53a4f542..63545365d 100644 --- a/test/valid-data/generic-recursive/index.test.ts +++ b/test/valid-data/generic-recursive/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-recursive", assertValidSchema("generic-recursive", "MyObject")); +test("valid-data - generic-recursive", assertValidSchema("generic-recursive", "MyObject")); diff --git a/test/valid-data/generic-simple/index.test.ts b/test/valid-data/generic-simple/index.test.ts index 6f57faec0..daae8f8fa 100644 --- a/test/valid-data/generic-simple/index.test.ts +++ b/test/valid-data/generic-simple/index.test.ts @@ -1,6 +1,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-simple", assertValidSchema("generic-simple", "MyObject")); +test("valid-data - generic-simple", assertValidSchema("generic-simple", "MyObject")); -test("generic-simple", assertValidSchema("generic-simple", "*", { expose: "all" })); +test("valid-data - generic-simple", assertValidSchema("generic-simple", "*", { expose: "all" })); diff --git a/test/valid-data/generic-void/index.test.ts b/test/valid-data/generic-void/index.test.ts index 192c44e59..748d002e8 100644 --- a/test/valid-data/generic-void/index.test.ts +++ b/test/valid-data/generic-void/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("generic-void", assertValidSchema("generic-void", "MyObject")); +test("valid-data - generic-void", assertValidSchema("generic-void", "MyObject")); diff --git a/test/valid-data/ignore-export/index.test.ts b/test/valid-data/ignore-export/index.test.ts index ab5d1ebf5..6ddbc8fb9 100644 --- a/test/valid-data/ignore-export/index.test.ts +++ b/test/valid-data/ignore-export/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("ignore-export", assertValidSchema("ignore-export", "*")); +test("valid-data - ignore-export", assertValidSchema("ignore-export", "*")); diff --git a/test/valid-data/import-anonymous/index.test.ts b/test/valid-data/import-anonymous/index.test.ts index 1cc9df72e..eff62043a 100644 --- a/test/valid-data/import-anonymous/index.test.ts +++ b/test/valid-data/import-anonymous/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("import-anonymous", assertValidSchema("import-anonymous", "MyObject")); +test("valid-data - import-anonymous", assertValidSchema("import-anonymous", "MyObject")); diff --git a/test/valid-data/import-exposed/index.test.ts b/test/valid-data/import-exposed/index.test.ts index e13bbb0b9..846a9bb2d 100644 --- a/test/valid-data/import-exposed/index.test.ts +++ b/test/valid-data/import-exposed/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("import-exposed", assertValidSchema("import-exposed", "MyObject")); +test("valid-data - import-exposed", assertValidSchema("import-exposed", "MyObject")); diff --git a/test/valid-data/import-internal/index.test.ts b/test/valid-data/import-internal/index.test.ts index 13a851bc3..b0c174ba0 100644 --- a/test/valid-data/import-internal/index.test.ts +++ b/test/valid-data/import-internal/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("import-internal", assertValidSchema("import-internal", "MyObject", { jsDoc: "basic" })); +test("valid-data - import-internal", assertValidSchema("import-internal", "MyObject", { jsDoc: "basic" })); diff --git a/test/valid-data/import-simple/index.test.ts b/test/valid-data/import-simple/index.test.ts index 2d57b70b1..c25f43bb1 100644 --- a/test/valid-data/import-simple/index.test.ts +++ b/test/valid-data/import-simple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("import-simple", assertValidSchema("import-simple", "MyObject")); +test("valid-data - import-simple", assertValidSchema("import-simple", "MyObject")); diff --git a/test/valid-data/interface-array/index.test.ts b/test/valid-data/interface-array/index.test.ts index 8e58ecf48..130377ca1 100644 --- a/test/valid-data/interface-array/index.test.ts +++ b/test/valid-data/interface-array/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-array", assertValidSchema("interface-array", "TagArray")); +test("valid-data - interface-array", assertValidSchema("interface-array", "TagArray")); diff --git a/test/valid-data/interface-computed-property-name/index.test.ts b/test/valid-data/interface-computed-property-name/index.test.ts index 02e8b0c90..74b09d7f5 100644 --- a/test/valid-data/interface-computed-property-name/index.test.ts +++ b/test/valid-data/interface-computed-property-name/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-computed-property-name", assertValidSchema("interface-computed-property-name", "MyObject")); +test( + "valid-data - interface-computed-property-name", + assertValidSchema("interface-computed-property-name", "MyObject"), +); diff --git a/test/valid-data/interface-extended-extra-props/index.test.ts b/test/valid-data/interface-extended-extra-props/index.test.ts index 5d0e816e5..e183ce9e7 100644 --- a/test/valid-data/interface-extended-extra-props/index.test.ts +++ b/test/valid-data/interface-extended-extra-props/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-extended-extra-props", assertValidSchema("interface-extended-extra-props", "MyObject")); +test("valid-data - interface-extended-extra-props", assertValidSchema("interface-extended-extra-props", "MyObject")); diff --git a/test/valid-data/interface-extra-props/index.test.ts b/test/valid-data/interface-extra-props/index.test.ts index dd9b79eb2..6b41c74c4 100644 --- a/test/valid-data/interface-extra-props/index.test.ts +++ b/test/valid-data/interface-extra-props/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-extra-props", assertValidSchema("interface-extra-props", "MyObject")); +test("valid-data - interface-extra-props", assertValidSchema("interface-extra-props", "MyObject")); diff --git a/test/valid-data/interface-multi/index.test.ts b/test/valid-data/interface-multi/index.test.ts index 1ccdc2a9c..da209cb64 100644 --- a/test/valid-data/interface-multi/index.test.ts +++ b/test/valid-data/interface-multi/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-multi", assertValidSchema("interface-multi", "MyObject")); +test("valid-data - interface-multi", assertValidSchema("interface-multi", "MyObject")); diff --git a/test/valid-data/interface-property-dash/index.test.ts b/test/valid-data/interface-property-dash/index.test.ts index cf2d199bf..f20dcbd18 100644 --- a/test/valid-data/interface-property-dash/index.test.ts +++ b/test/valid-data/interface-property-dash/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-property-dash", assertValidSchema("interface-property-dash", "MyObject")); +test("valid-data - interface-property-dash", assertValidSchema("interface-property-dash", "MyObject")); diff --git a/test/valid-data/interface-recursion/index.test.ts b/test/valid-data/interface-recursion/index.test.ts index 06f2dcdd1..1c168a415 100644 --- a/test/valid-data/interface-recursion/index.test.ts +++ b/test/valid-data/interface-recursion/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-recursion", assertValidSchema("interface-recursion", "MyObject")); +test("valid-data - interface-recursion", assertValidSchema("interface-recursion", "MyObject")); diff --git a/test/valid-data/interface-single/index.test.ts b/test/valid-data/interface-single/index.test.ts index 6fe57f675..ed50b2940 100644 --- a/test/valid-data/interface-single/index.test.ts +++ b/test/valid-data/interface-single/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("interface-single", assertValidSchema("interface-single", "MyObject")); +test("valid-data - interface-single", assertValidSchema("interface-single", "MyObject")); diff --git a/test/valid-data/keyof-typeof-enum/index.test.ts b/test/valid-data/keyof-typeof-enum/index.test.ts index d6e2142eb..42d925634 100644 --- a/test/valid-data/keyof-typeof-enum/index.test.ts +++ b/test/valid-data/keyof-typeof-enum/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("keyof-typeof-enum", assertValidSchema("keyof-typeof-enum", "MyObject")); +test("valid-data - keyof-typeof-enum", assertValidSchema("keyof-typeof-enum", "MyObject")); diff --git a/test/valid-data/keyof-typeof-x/index.test.ts b/test/valid-data/keyof-typeof-x/index.test.ts index 6821a4a25..080b7c308 100644 --- a/test/valid-data/keyof-typeof-x/index.test.ts +++ b/test/valid-data/keyof-typeof-x/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("keyof-typeof-x", assertValidSchema("keyof-typeof-x", "MyType")); +test("valid-data - keyof-typeof-x", assertValidSchema("keyof-typeof-x", "MyType")); diff --git a/test/valid-data/literal-array-type/index.test.ts b/test/valid-data/literal-array-type/index.test.ts index 61529ff5f..914a42430 100644 --- a/test/valid-data/literal-array-type/index.test.ts +++ b/test/valid-data/literal-array-type/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("literal-array-type", assertValidSchema("literal-array-type", "MyType")); +test("valid-data - literal-array-type", assertValidSchema("literal-array-type", "MyType")); diff --git a/test/valid-data/literal-index-type/index.test.ts b/test/valid-data/literal-index-type/index.test.ts index efa077992..373c114df 100644 --- a/test/valid-data/literal-index-type/index.test.ts +++ b/test/valid-data/literal-index-type/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("literal-index-type", assertValidSchema("literal-index-type", "MyType")); +test("valid-data - literal-index-type", assertValidSchema("literal-index-type", "MyType")); diff --git a/test/valid-data/literal-object-type-with-computed-props/index.test.ts b/test/valid-data/literal-object-type-with-computed-props/index.test.ts index fd461a904..b9b2bc46b 100644 --- a/test/valid-data/literal-object-type-with-computed-props/index.test.ts +++ b/test/valid-data/literal-object-type-with-computed-props/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("literal-object-type-with-computed-props", assertValidSchema("literal-object-type-with-computed-props", "MyType")); +test( + "valid-data - literal-object-type-with-computed-props", + assertValidSchema("literal-object-type-with-computed-props", "MyType"), +); diff --git a/test/valid-data/literal-object-type/index.test.ts b/test/valid-data/literal-object-type/index.test.ts index 9de1d4540..716d391db 100644 --- a/test/valid-data/literal-object-type/index.test.ts +++ b/test/valid-data/literal-object-type/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("literal-object-type", assertValidSchema("literal-object-type", "MyType")); +test("valid-data - literal-object-type", assertValidSchema("literal-object-type", "MyType")); diff --git a/test/valid-data/lowercase/index.test.ts b/test/valid-data/lowercase/index.test.ts index acfb74223..95944c9f5 100644 --- a/test/valid-data/lowercase/index.test.ts +++ b/test/valid-data/lowercase/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("lowercase", assertValidSchema("lowercase", "MyType")); +test("valid-data - lowercase", assertValidSchema("lowercase", "MyType")); diff --git a/test/valid-data/multiple-roots1/index.test.ts b/test/valid-data/multiple-roots1/index.test.ts index dbd617f8e..0e7e012b9 100644 --- a/test/valid-data/multiple-roots1/index.test.ts +++ b/test/valid-data/multiple-roots1/index.test.ts @@ -1,6 +1,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("multiple-roots1", assertValidSchema("multiple-roots1", undefined, undefined, undefined)); +test("valid-data - multiple-roots1", assertValidSchema("multiple-roots1", undefined, undefined, undefined)); -test("multiple-roots1", assertValidSchema("multiple-roots1", "*")); +test("valid-data - multiple-roots1", assertValidSchema("multiple-roots1", "*")); diff --git a/test/valid-data/multiple-roots2/schema/index.test.ts b/test/valid-data/multiple-roots2/schema/index.test.ts index 860800f3a..d67922281 100644 --- a/test/valid-data/multiple-roots2/schema/index.test.ts +++ b/test/valid-data/multiple-roots2/schema/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../../utils"; import { test } from "node:test"; -test("multiple-roots2/schema", assertValidSchema("multiple-roots2/schema", undefined, undefined, undefined)); +test( + "valid-data - multiple-roots2/schema", + assertValidSchema("multiple-roots2/schema", undefined, undefined, undefined), +); diff --git a/test/valid-data/namespace-deep-1/index.test.ts b/test/valid-data/namespace-deep-1/index.test.ts index d6ce224ac..e0b276140 100644 --- a/test/valid-data/namespace-deep-1/index.test.ts +++ b/test/valid-data/namespace-deep-1/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("namespace-deep-1", assertValidSchema("namespace-deep-1", "RootNamespace.Def")); +test("valid-data - namespace-deep-1", assertValidSchema("namespace-deep-1", "RootNamespace.Def")); diff --git a/test/valid-data/namespace-deep-2/index.test.ts b/test/valid-data/namespace-deep-2/index.test.ts index fc474ff10..a4e030481 100644 --- a/test/valid-data/namespace-deep-2/index.test.ts +++ b/test/valid-data/namespace-deep-2/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("namespace-deep-2", assertValidSchema("namespace-deep-2", "RootNamespace.SubNamespace.HelperA")); +test("valid-data - namespace-deep-2", assertValidSchema("namespace-deep-2", "RootNamespace.SubNamespace.HelperA")); diff --git a/test/valid-data/namespace-deep-3/index.test.ts b/test/valid-data/namespace-deep-3/index.test.ts index a96d2c34b..a0552122a 100644 --- a/test/valid-data/namespace-deep-3/index.test.ts +++ b/test/valid-data/namespace-deep-3/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("namespace-deep-3", assertValidSchema("namespace-deep-3", "RootNamespace.SubNamespace.HelperB")); +test("valid-data - namespace-deep-3", assertValidSchema("namespace-deep-3", "RootNamespace.SubNamespace.HelperB")); diff --git a/test/valid-data/never-record/index.test.ts b/test/valid-data/never-record/index.test.ts index 9e7098020..ad0d2c3f4 100644 --- a/test/valid-data/never-record/index.test.ts +++ b/test/valid-data/never-record/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("never-record", assertValidSchema("never-record", "Mapped")); +test("valid-data - never-record", assertValidSchema("never-record", "Mapped")); diff --git a/test/valid-data/never/index.test.ts b/test/valid-data/never/index.test.ts index a34c15605..8b779cd78 100644 --- a/test/valid-data/never/index.test.ts +++ b/test/valid-data/never/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("never", assertValidSchema("never", "BasicNever")); +test("valid-data - never", assertValidSchema("never", "BasicNever")); diff --git a/test/valid-data/nullable-null/index.test.ts b/test/valid-data/nullable-null/index.test.ts index 7659bed14..6cdbec50b 100644 --- a/test/valid-data/nullable-null/index.test.ts +++ b/test/valid-data/nullable-null/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("nullable-null", assertValidSchema("nullable-null", "MyObject")); +test("valid-data - nullable-null", assertValidSchema("nullable-null", "MyObject")); diff --git a/test/valid-data/object-function-expression/index.test.ts b/test/valid-data/object-function-expression/index.test.ts index dd06d1678..7cac9f68a 100644 --- a/test/valid-data/object-function-expression/index.test.ts +++ b/test/valid-data/object-function-expression/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("object-function-expression", assertValidSchema("object-function-expression", "MyType")); +test("valid-data - object-function-expression", assertValidSchema("object-function-expression", "MyType")); diff --git a/test/valid-data/object-literal-expression/index.test.ts b/test/valid-data/object-literal-expression/index.test.ts index dfa29a80e..122ce7cfd 100644 --- a/test/valid-data/object-literal-expression/index.test.ts +++ b/test/valid-data/object-literal-expression/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("object-literal-expression", assertValidSchema("object-literal-expression", "MyType")); +test("valid-data - object-literal-expression", assertValidSchema("object-literal-expression", "MyType")); diff --git a/test/valid-data/object-required/index.test.ts b/test/valid-data/object-required/index.test.ts index a09ffae40..dec8580f5 100644 --- a/test/valid-data/object-required/index.test.ts +++ b/test/valid-data/object-required/index.test.ts @@ -2,7 +2,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "object-required", + "valid-data - object-required", assertValidSchema("object-required", "MyObject", undefined, { invalidSamples: [ { keys: ["a", "b"], definitions: { a: 1, b: 2 } }, diff --git a/test/valid-data/promise-extensions/index.test.ts b/test/valid-data/promise-extensions/index.test.ts index 25d758d14..39d8e216e 100644 --- a/test/valid-data/promise-extensions/index.test.ts +++ b/test/valid-data/promise-extensions/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("promise-extensions", assertValidSchema("promise-extensions", "*")); +test("valid-data - promise-extensions", assertValidSchema("promise-extensions", "*")); diff --git a/test/valid-data/promise-generics/index.test.ts b/test/valid-data/promise-generics/index.test.ts index b8bc8f931..32ecb3544 100644 --- a/test/valid-data/promise-generics/index.test.ts +++ b/test/valid-data/promise-generics/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("promise-generics", assertValidSchema("promise-generics", "*")); +test("valid-data - promise-generics", assertValidSchema("promise-generics", "*")); diff --git a/test/valid-data/re-export-with-asterisk/index.test.ts b/test/valid-data/re-export-with-asterisk/index.test.ts index d89f63e5c..caf31bf6f 100644 --- a/test/valid-data/re-export-with-asterisk/index.test.ts +++ b/test/valid-data/re-export-with-asterisk/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("re-export-with-asterisk", assertValidSchema("re-export-with-asterisk", "*", undefined, { mainTsOnly: true })); +test( + "valid-data - re-export-with-asterisk", + assertValidSchema("re-export-with-asterisk", "*", undefined, { mainTsOnly: true }), +); diff --git a/test/valid-data/shorthand-array/index.test.ts b/test/valid-data/shorthand-array/index.test.ts index 6d964ea73..fe8d26a2f 100644 --- a/test/valid-data/shorthand-array/index.test.ts +++ b/test/valid-data/shorthand-array/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("shorthand-array", assertValidSchema("shorthand-array", "MyType")); +test("valid-data - shorthand-array", assertValidSchema("shorthand-array", "MyType")); diff --git a/test/valid-data/simple-object/index.test.ts b/test/valid-data/simple-object/index.test.ts index 524afc5db..01e5e15b2 100644 --- a/test/valid-data/simple-object/index.test.ts +++ b/test/valid-data/simple-object/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("simple-object", assertValidSchema("simple-object", "SimpleObject")); +test("valid-data - simple-object", assertValidSchema("simple-object", "SimpleObject")); diff --git a/test/valid-data/string-literal-property-names/index.test.ts b/test/valid-data/string-literal-property-names/index.test.ts index e8dd8d119..0a5d1323f 100644 --- a/test/valid-data/string-literal-property-names/index.test.ts +++ b/test/valid-data/string-literal-property-names/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literal-property-names", assertValidSchema("string-literal-property-names", "*")); +test("valid-data - string-literal-property-names", assertValidSchema("string-literal-property-names", "*")); diff --git a/test/valid-data/string-literals-hack/index.test.ts b/test/valid-data/string-literals-hack/index.test.ts index 069d0213c..f6912eec3 100644 --- a/test/valid-data/string-literals-hack/index.test.ts +++ b/test/valid-data/string-literals-hack/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literals-hack", assertValidSchema("string-literals-hack", "MyObject")); +test("valid-data - string-literals-hack", assertValidSchema("string-literals-hack", "MyObject")); diff --git a/test/valid-data/string-literals-inline/index.test.ts b/test/valid-data/string-literals-inline/index.test.ts index 113b48f47..95a850acf 100644 --- a/test/valid-data/string-literals-inline/index.test.ts +++ b/test/valid-data/string-literals-inline/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literals-inline", assertValidSchema("string-literals-inline", "MyObject")); +test("valid-data - string-literals-inline", assertValidSchema("string-literals-inline", "MyObject")); diff --git a/test/valid-data/string-literals-intrinsic/index.test.ts b/test/valid-data/string-literals-intrinsic/index.test.ts index 9d342aff1..34b84ab97 100644 --- a/test/valid-data/string-literals-intrinsic/index.test.ts +++ b/test/valid-data/string-literals-intrinsic/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literals-intrinsic", assertValidSchema("string-literals-intrinsic", "MyObject")); +test("valid-data - string-literals-intrinsic", assertValidSchema("string-literals-intrinsic", "MyObject")); diff --git a/test/valid-data/string-literals-null/index.test.ts b/test/valid-data/string-literals-null/index.test.ts index add043df4..882ba3286 100644 --- a/test/valid-data/string-literals-null/index.test.ts +++ b/test/valid-data/string-literals-null/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literals-null", assertValidSchema("string-literals-null", "MyObject")); +test("valid-data - string-literals-null", assertValidSchema("string-literals-null", "MyObject")); diff --git a/test/valid-data/string-literals/index.test.ts b/test/valid-data/string-literals/index.test.ts index 43a6947c6..769f0373b 100644 --- a/test/valid-data/string-literals/index.test.ts +++ b/test/valid-data/string-literals/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-literals", assertValidSchema("string-literals", "MyObject")); +test("valid-data - string-literals", assertValidSchema("string-literals", "MyObject")); diff --git a/test/valid-data/string-template-expression-literals-import/index.test.ts b/test/valid-data/string-template-expression-literals-import/index.test.ts index a52c56194..a876aa047 100644 --- a/test/valid-data/string-template-expression-literals-import/index.test.ts +++ b/test/valid-data/string-template-expression-literals-import/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "string-template-expression-literals-import", + "valid-data - string-template-expression-literals-import", assertValidSchema("string-template-expression-literals-import", "MyObject"), ); diff --git a/test/valid-data/string-template-expression-literals/index.test.ts b/test/valid-data/string-template-expression-literals/index.test.ts index a09cbdf54..9f540dd87 100644 --- a/test/valid-data/string-template-expression-literals/index.test.ts +++ b/test/valid-data/string-template-expression-literals/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-template-expression-literals", assertValidSchema("string-template-expression-literals", "MyObject")); +test( + "valid-data - string-template-expression-literals", + assertValidSchema("string-template-expression-literals", "MyObject"), +); diff --git a/test/valid-data/string-template-literals/index.test.ts b/test/valid-data/string-template-literals/index.test.ts index 62f754df3..f7f038944 100644 --- a/test/valid-data/string-template-literals/index.test.ts +++ b/test/valid-data/string-template-literals/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("string-template-literals", assertValidSchema("string-template-literals", "MyObject")); +test("valid-data - string-template-literals", assertValidSchema("string-template-literals", "MyObject")); diff --git a/test/valid-data/structure-anonymous/index.test.ts b/test/valid-data/structure-anonymous/index.test.ts index 79e04153c..b15f2c34a 100644 --- a/test/valid-data/structure-anonymous/index.test.ts +++ b/test/valid-data/structure-anonymous/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("structure-anonymous", assertValidSchema("structure-anonymous", "MyObject")); +test("valid-data - structure-anonymous", assertValidSchema("structure-anonymous", "MyObject")); diff --git a/test/valid-data/structure-extra-props-symbol/index.test.ts b/test/valid-data/structure-extra-props-symbol/index.test.ts index 7eae1a879..b10caade3 100644 --- a/test/valid-data/structure-extra-props-symbol/index.test.ts +++ b/test/valid-data/structure-extra-props-symbol/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("structure-extra-props-symbol", assertValidSchema("structure-extra-props-symbol", "MyObject")); +test("valid-data - structure-extra-props-symbol", assertValidSchema("structure-extra-props-symbol", "MyObject")); diff --git a/test/valid-data/structure-extra-props/index.test.ts b/test/valid-data/structure-extra-props/index.test.ts index ef3ff9313..60ab22e7c 100644 --- a/test/valid-data/structure-extra-props/index.test.ts +++ b/test/valid-data/structure-extra-props/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("structure-extra-props", assertValidSchema("structure-extra-props", "MyObject")); +test("valid-data - structure-extra-props", assertValidSchema("structure-extra-props", "MyObject")); diff --git a/test/valid-data/structure-private/index.test.ts b/test/valid-data/structure-private/index.test.ts index 9f6029ff3..705db703b 100644 --- a/test/valid-data/structure-private/index.test.ts +++ b/test/valid-data/structure-private/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("structure-private", assertValidSchema("structure-private", "MyObject")); +test("valid-data - structure-private", assertValidSchema("structure-private", "MyObject")); diff --git a/test/valid-data/structure-recursion/index.test.ts b/test/valid-data/structure-recursion/index.test.ts index edd53d94a..ca3699a4f 100644 --- a/test/valid-data/structure-recursion/index.test.ts +++ b/test/valid-data/structure-recursion/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("structure-recursion", assertValidSchema("structure-recursion", "MyObject")); +test("valid-data - structure-recursion", assertValidSchema("structure-recursion", "MyObject")); diff --git a/test/valid-data/symbol-union/index.test.ts b/test/valid-data/symbol-union/index.test.ts index b9b06c970..8ccf8a06c 100644 --- a/test/valid-data/symbol-union/index.test.ts +++ b/test/valid-data/symbol-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("symbol-union", assertValidSchema("symbol-union", "MyType")); +test("valid-data - symbol-union", assertValidSchema("symbol-union", "MyType")); diff --git a/test/valid-data/symbol/index.test.ts b/test/valid-data/symbol/index.test.ts index f05d936a1..c1f8d3488 100644 --- a/test/valid-data/symbol/index.test.ts +++ b/test/valid-data/symbol/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("symbol", assertValidSchema("symbol", "MyObject")); +test("valid-data - symbol", assertValidSchema("symbol", "MyObject")); diff --git a/test/valid-data/type-aliases-anonymous/index.test.ts b/test/valid-data/type-aliases-anonymous/index.test.ts index fab13f55b..00b20d46e 100644 --- a/test/valid-data/type-aliases-anonymous/index.test.ts +++ b/test/valid-data/type-aliases-anonymous/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-anonymous", assertValidSchema("type-aliases-anonymous", "MyObject")); +test("valid-data - type-aliases-anonymous", assertValidSchema("type-aliases-anonymous", "MyObject")); diff --git a/test/valid-data/type-aliases-local-namespace/index.test.ts b/test/valid-data/type-aliases-local-namespace/index.test.ts index c874be473..2c449cfc0 100644 --- a/test/valid-data/type-aliases-local-namespace/index.test.ts +++ b/test/valid-data/type-aliases-local-namespace/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-local-namespace", assertValidSchema("type-aliases-local-namespace", "MyObject")); +test("valid-data - type-aliases-local-namespace", assertValidSchema("type-aliases-local-namespace", "MyObject")); diff --git a/test/valid-data/type-aliases-mixed/index.test.ts b/test/valid-data/type-aliases-mixed/index.test.ts index 7ed624b14..1fe1332cc 100644 --- a/test/valid-data/type-aliases-mixed/index.test.ts +++ b/test/valid-data/type-aliases-mixed/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-mixed", assertValidSchema("type-aliases-mixed", "MyObject")); +test("valid-data - type-aliases-mixed", assertValidSchema("type-aliases-mixed", "MyObject")); diff --git a/test/valid-data/type-aliases-object/index.test.ts b/test/valid-data/type-aliases-object/index.test.ts index 5323335da..db7a3cf58 100644 --- a/test/valid-data/type-aliases-object/index.test.ts +++ b/test/valid-data/type-aliases-object/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-object", assertValidSchema("type-aliases-object", "MyAlias")); +test("valid-data - type-aliases-object", assertValidSchema("type-aliases-object", "MyAlias")); diff --git a/test/valid-data/type-aliases-primitive-with-id/index.test.ts b/test/valid-data/type-aliases-primitive-with-id/index.test.ts index 63cca9cc3..30c55f639 100644 --- a/test/valid-data/type-aliases-primitive-with-id/index.test.ts +++ b/test/valid-data/type-aliases-primitive-with-id/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-aliases-primitive-with-id", + "valid-data - type-aliases-primitive-with-id", assertValidSchema("type-aliases-primitive-with-id", "MyString", { jsDoc: "none", schemaId: "testId" }), ); diff --git a/test/valid-data/type-aliases-primitive/index.test.ts b/test/valid-data/type-aliases-primitive/index.test.ts index 6be519c36..b14fce0e5 100644 --- a/test/valid-data/type-aliases-primitive/index.test.ts +++ b/test/valid-data/type-aliases-primitive/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-primitive", assertValidSchema("type-aliases-primitive", "MyString")); +test("valid-data - type-aliases-primitive", assertValidSchema("type-aliases-primitive", "MyString")); diff --git a/test/valid-data/type-aliases-recursive-anonymous/index.test.ts b/test/valid-data/type-aliases-recursive-anonymous/index.test.ts index 576aa6a7e..86e16a9cc 100644 --- a/test/valid-data/type-aliases-recursive-anonymous/index.test.ts +++ b/test/valid-data/type-aliases-recursive-anonymous/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-recursive-anonymous", assertValidSchema("type-aliases-recursive-anonymous", "MyAlias")); +test("valid-data - type-aliases-recursive-anonymous", assertValidSchema("type-aliases-recursive-anonymous", "MyAlias")); diff --git a/test/valid-data/type-aliases-recursive-export/index.test.ts b/test/valid-data/type-aliases-recursive-export/index.test.ts index 11f19832a..c1fbe7a75 100644 --- a/test/valid-data/type-aliases-recursive-export/index.test.ts +++ b/test/valid-data/type-aliases-recursive-export/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-recursive-export", assertValidSchema("type-aliases-recursive-export", "MyObject")); +test("valid-data - type-aliases-recursive-export", assertValidSchema("type-aliases-recursive-export", "MyObject")); diff --git a/test/valid-data/type-aliases-recursive-generics-anonymous/index.test.ts b/test/valid-data/type-aliases-recursive-generics-anonymous/index.test.ts index 7d8d47959..10fe3a73c 100644 --- a/test/valid-data/type-aliases-recursive-generics-anonymous/index.test.ts +++ b/test/valid-data/type-aliases-recursive-generics-anonymous/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-aliases-recursive-generics-anonymous", + "valid-data - type-aliases-recursive-generics-anonymous", assertValidSchema("type-aliases-recursive-generics-anonymous", "MyAlias"), ); diff --git a/test/valid-data/type-aliases-recursive-generics-export/index.test.ts b/test/valid-data/type-aliases-recursive-generics-export/index.test.ts index e8c5d993a..57a08d85b 100644 --- a/test/valid-data/type-aliases-recursive-generics-export/index.test.ts +++ b/test/valid-data/type-aliases-recursive-generics-export/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-recursive-generics-export", assertValidSchema("type-aliases-recursive-generics-export", "MyAlias")); +test( + "valid-data - type-aliases-recursive-generics-export", + assertValidSchema("type-aliases-recursive-generics-export", "MyAlias"), +); diff --git a/test/valid-data/type-aliases-tuple-empty/index.test.ts b/test/valid-data/type-aliases-tuple-empty/index.test.ts index 08e9143ca..62aad9d06 100644 --- a/test/valid-data/type-aliases-tuple-empty/index.test.ts +++ b/test/valid-data/type-aliases-tuple-empty/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-tuple-empty", assertValidSchema("type-aliases-tuple-empty", "MyTuple")); +test("valid-data - type-aliases-tuple-empty", assertValidSchema("type-aliases-tuple-empty", "MyTuple")); diff --git a/test/valid-data/type-aliases-tuple-only-rest/index.test.ts b/test/valid-data/type-aliases-tuple-only-rest/index.test.ts index d76464fb0..803321362 100644 --- a/test/valid-data/type-aliases-tuple-only-rest/index.test.ts +++ b/test/valid-data/type-aliases-tuple-only-rest/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-tuple-only-rest", assertValidSchema("type-aliases-tuple-only-rest", "MyTuple")); +test("valid-data - type-aliases-tuple-only-rest", assertValidSchema("type-aliases-tuple-only-rest", "MyTuple")); diff --git a/test/valid-data/type-aliases-tuple-optional-items/index.test.ts b/test/valid-data/type-aliases-tuple-optional-items/index.test.ts index 5846517b4..f780a9306 100644 --- a/test/valid-data/type-aliases-tuple-optional-items/index.test.ts +++ b/test/valid-data/type-aliases-tuple-optional-items/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-tuple-optional-items", assertValidSchema("type-aliases-tuple-optional-items", "MyTuple")); +test( + "valid-data - type-aliases-tuple-optional-items", + assertValidSchema("type-aliases-tuple-optional-items", "MyTuple"), +); diff --git a/test/valid-data/type-aliases-tuple-rest/index.test.ts b/test/valid-data/type-aliases-tuple-rest/index.test.ts index 960236821..662502576 100644 --- a/test/valid-data/type-aliases-tuple-rest/index.test.ts +++ b/test/valid-data/type-aliases-tuple-rest/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-tuple-rest", assertValidSchema("type-aliases-tuple-rest", "MyTuple")); +test("valid-data - type-aliases-tuple-rest", assertValidSchema("type-aliases-tuple-rest", "MyTuple")); diff --git a/test/valid-data/type-aliases-tuple/index.test.ts b/test/valid-data/type-aliases-tuple/index.test.ts index a153fd7c3..15487f2b8 100644 --- a/test/valid-data/type-aliases-tuple/index.test.ts +++ b/test/valid-data/type-aliases-tuple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-tuple", assertValidSchema("type-aliases-tuple", "MyTuple")); +test("valid-data - type-aliases-tuple", assertValidSchema("type-aliases-tuple", "MyTuple")); diff --git a/test/valid-data/type-aliases-union-namespace/index.test.ts b/test/valid-data/type-aliases-union-namespace/index.test.ts index 4aff2fba8..0d9c9b0bb 100644 --- a/test/valid-data/type-aliases-union-namespace/index.test.ts +++ b/test/valid-data/type-aliases-union-namespace/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-union-namespace", assertValidSchema("type-aliases-union-namespace", "MyModel")); +test("valid-data - type-aliases-union-namespace", assertValidSchema("type-aliases-union-namespace", "MyModel")); diff --git a/test/valid-data/type-aliases-union/index.test.ts b/test/valid-data/type-aliases-union/index.test.ts index 9bb7bae86..faf708db0 100644 --- a/test/valid-data/type-aliases-union/index.test.ts +++ b/test/valid-data/type-aliases-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-aliases-union", assertValidSchema("type-aliases-union", "MyUnion")); +test("valid-data - type-aliases-union", assertValidSchema("type-aliases-union", "MyUnion")); diff --git a/test/valid-data/type-conditional-enum/index.test.ts b/test/valid-data/type-conditional-enum/index.test.ts index 3440d75b8..164495124 100644 --- a/test/valid-data/type-conditional-enum/index.test.ts +++ b/test/valid-data/type-conditional-enum/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-enum", assertValidSchema("type-conditional-enum", "IParameter")); +test("valid-data - type-conditional-enum", assertValidSchema("type-conditional-enum", "IParameter")); diff --git a/test/valid-data/type-conditional-exclude-complex/index.test.ts b/test/valid-data/type-conditional-exclude-complex/index.test.ts index d97ac5f8a..4721a3978 100644 --- a/test/valid-data/type-conditional-exclude-complex/index.test.ts +++ b/test/valid-data/type-conditional-exclude-complex/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-exclude-complex", assertValidSchema("type-conditional-exclude-complex", "BaseAxisNoSignals")); +test( + "valid-data - type-conditional-exclude-complex", + assertValidSchema("type-conditional-exclude-complex", "BaseAxisNoSignals"), +); diff --git a/test/valid-data/type-conditional-exclude-narrowing/index.test.ts b/test/valid-data/type-conditional-exclude-narrowing/index.test.ts index 27accdc9c..410aae521 100644 --- a/test/valid-data/type-conditional-exclude-narrowing/index.test.ts +++ b/test/valid-data/type-conditional-exclude-narrowing/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-exclude-narrowing", assertValidSchema("type-conditional-exclude-narrowing", "MyObject")); +test( + "valid-data - type-conditional-exclude-narrowing", + assertValidSchema("type-conditional-exclude-narrowing", "MyObject"), +); diff --git a/test/valid-data/type-conditional-exclude/index.test.ts b/test/valid-data/type-conditional-exclude/index.test.ts index 6ad2394b5..338f0d23b 100644 --- a/test/valid-data/type-conditional-exclude/index.test.ts +++ b/test/valid-data/type-conditional-exclude/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-exclude", assertValidSchema("type-conditional-exclude", "MyObject")); +test("valid-data - type-conditional-exclude", assertValidSchema("type-conditional-exclude", "MyObject")); diff --git a/test/valid-data/type-conditional-infer-nested/index.test.ts b/test/valid-data/type-conditional-infer-nested/index.test.ts index 82a070230..932f263f8 100644 --- a/test/valid-data/type-conditional-infer-nested/index.test.ts +++ b/test/valid-data/type-conditional-infer-nested/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer-nested", assertValidSchema("type-conditional-infer-nested", "MyType")); +test("valid-data - type-conditional-infer-nested", assertValidSchema("type-conditional-infer-nested", "MyType")); diff --git a/test/valid-data/type-conditional-infer-recursive/index.test.ts b/test/valid-data/type-conditional-infer-recursive/index.test.ts index 98ce3e467..b0a898eae 100644 --- a/test/valid-data/type-conditional-infer-recursive/index.test.ts +++ b/test/valid-data/type-conditional-infer-recursive/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer-recursive", assertValidSchema("type-conditional-infer-recursive", "MyType")); +test("valid-data - type-conditional-infer-recursive", assertValidSchema("type-conditional-infer-recursive", "MyType")); diff --git a/test/valid-data/type-conditional-infer-rest/index.test.ts b/test/valid-data/type-conditional-infer-rest/index.test.ts index 0acd87830..b26726df6 100644 --- a/test/valid-data/type-conditional-infer-rest/index.test.ts +++ b/test/valid-data/type-conditional-infer-rest/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer-rest", assertValidSchema("type-conditional-infer-rest", "MyType")); +test("valid-data - type-conditional-infer-rest", assertValidSchema("type-conditional-infer-rest", "MyType")); diff --git a/test/valid-data/type-conditional-infer-tail-recursion/index.test.ts b/test/valid-data/type-conditional-infer-tail-recursion/index.test.ts index 6b463f529..7b7c5cd93 100644 --- a/test/valid-data/type-conditional-infer-tail-recursion/index.test.ts +++ b/test/valid-data/type-conditional-infer-tail-recursion/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer-tail-recursion", assertValidSchema("type-conditional-infer-tail-recursion", "MyType")); +test( + "valid-data - type-conditional-infer-tail-recursion", + assertValidSchema("type-conditional-infer-tail-recursion", "MyType"), +); diff --git a/test/valid-data/type-conditional-infer-tuple-xor/index.test.ts b/test/valid-data/type-conditional-infer-tuple-xor/index.test.ts index 6cfde5f4d..65021390a 100644 --- a/test/valid-data/type-conditional-infer-tuple-xor/index.test.ts +++ b/test/valid-data/type-conditional-infer-tuple-xor/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer-tuple-xor", assertValidSchema("type-conditional-infer-tuple-xor", "MyType")); +test("valid-data - type-conditional-infer-tuple-xor", assertValidSchema("type-conditional-infer-tuple-xor", "MyType")); diff --git a/test/valid-data/type-conditional-infer/index.test.ts b/test/valid-data/type-conditional-infer/index.test.ts index a854e13a4..55404665b 100644 --- a/test/valid-data/type-conditional-infer/index.test.ts +++ b/test/valid-data/type-conditional-infer/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-infer", assertValidSchema("type-conditional-infer", "MyType")); +test("valid-data - type-conditional-infer", assertValidSchema("type-conditional-infer", "MyType")); diff --git a/test/valid-data/type-conditional-inheritance/index.test.ts b/test/valid-data/type-conditional-inheritance/index.test.ts index 716bd19ab..7621620bb 100644 --- a/test/valid-data/type-conditional-inheritance/index.test.ts +++ b/test/valid-data/type-conditional-inheritance/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-inheritance", assertValidSchema("type-conditional-inheritance", "MyObject")); +test("valid-data - type-conditional-inheritance", assertValidSchema("type-conditional-inheritance", "MyObject")); diff --git a/test/valid-data/type-conditional-intersection/index.test.ts b/test/valid-data/type-conditional-intersection/index.test.ts index 6aad9b1b0..0647f0160 100644 --- a/test/valid-data/type-conditional-intersection/index.test.ts +++ b/test/valid-data/type-conditional-intersection/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-intersection", assertValidSchema("type-conditional-intersection", "MyObject")); +test("valid-data - type-conditional-intersection", assertValidSchema("type-conditional-intersection", "MyObject")); diff --git a/test/valid-data/type-conditional-jsdoc/index.test.ts b/test/valid-data/type-conditional-jsdoc/index.test.ts index 52a682da3..bcf865fac 100644 --- a/test/valid-data/type-conditional-jsdoc/index.test.ts +++ b/test/valid-data/type-conditional-jsdoc/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-jsdoc", assertValidSchema("type-conditional-jsdoc", "MyObject")); +test("valid-data - type-conditional-jsdoc", assertValidSchema("type-conditional-jsdoc", "MyObject")); diff --git a/test/valid-data/type-conditional-narrowing/index.test.ts b/test/valid-data/type-conditional-narrowing/index.test.ts index cb4178b4b..55e92d0ce 100644 --- a/test/valid-data/type-conditional-narrowing/index.test.ts +++ b/test/valid-data/type-conditional-narrowing/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-narrowing", assertValidSchema("type-conditional-narrowing", "MyObject")); +test("valid-data - type-conditional-narrowing", assertValidSchema("type-conditional-narrowing", "MyObject")); diff --git a/test/valid-data/type-conditional-omit/index.test.ts b/test/valid-data/type-conditional-omit/index.test.ts index 04af4505a..d9203f700 100644 --- a/test/valid-data/type-conditional-omit/index.test.ts +++ b/test/valid-data/type-conditional-omit/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-omit", assertValidSchema("type-conditional-omit", "MyObject")); +test("valid-data - type-conditional-omit", assertValidSchema("type-conditional-omit", "MyObject")); diff --git a/test/valid-data/type-conditional-simple/index.test.ts b/test/valid-data/type-conditional-simple/index.test.ts index a7114a4b8..275b62a0d 100644 --- a/test/valid-data/type-conditional-simple/index.test.ts +++ b/test/valid-data/type-conditional-simple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-simple", assertValidSchema("type-conditional-simple", "MyObject")); +test("valid-data - type-conditional-simple", assertValidSchema("type-conditional-simple", "MyObject")); diff --git a/test/valid-data/type-conditional-tuple-narrowing/index.test.ts b/test/valid-data/type-conditional-tuple-narrowing/index.test.ts index 081c40e34..d117443a1 100644 --- a/test/valid-data/type-conditional-tuple-narrowing/index.test.ts +++ b/test/valid-data/type-conditional-tuple-narrowing/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-tuple-narrowing", assertValidSchema("type-conditional-tuple-narrowing", "MyObject")); +test( + "valid-data - type-conditional-tuple-narrowing", + assertValidSchema("type-conditional-tuple-narrowing", "MyObject"), +); diff --git a/test/valid-data/type-conditional-union/index.test.ts b/test/valid-data/type-conditional-union/index.test.ts index 46b7acf80..364acfdb5 100644 --- a/test/valid-data/type-conditional-union/index.test.ts +++ b/test/valid-data/type-conditional-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-conditional-union", assertValidSchema("type-conditional-union", "MyObject")); +test("valid-data - type-conditional-union", assertValidSchema("type-conditional-union", "MyObject")); diff --git a/test/valid-data/type-date-annotation/index.test.ts b/test/valid-data/type-date-annotation/index.test.ts index 311bb998f..ed4c1c2ab 100644 --- a/test/valid-data/type-date-annotation/index.test.ts +++ b/test/valid-data/type-date-annotation/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-date-annotation", assertValidSchema("type-date-annotation", "MyObject", { jsDoc: "basic" })); +test("valid-data - type-date-annotation", assertValidSchema("type-date-annotation", "MyObject", { jsDoc: "basic" })); diff --git a/test/valid-data/type-date/index.test.ts b/test/valid-data/type-date/index.test.ts index e45ae72fc..29947dcf7 100644 --- a/test/valid-data/type-date/index.test.ts +++ b/test/valid-data/type-date/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-date", assertValidSchema("type-date", "MyObject")); +test("valid-data - type-date", assertValidSchema("type-date", "MyObject")); diff --git a/test/valid-data/type-extend-circular/index.test.ts b/test/valid-data/type-extend-circular/index.test.ts index 6688557ff..7848e4087 100644 --- a/test/valid-data/type-extend-circular/index.test.ts +++ b/test/valid-data/type-extend-circular/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-extend-circular", assertValidSchema("type-extend-circular", "MyType")); +test("valid-data - type-extend-circular", assertValidSchema("type-extend-circular", "MyType")); diff --git a/test/valid-data/type-extend/index.test.ts b/test/valid-data/type-extend/index.test.ts index bf8abe333..4da6ed9b1 100644 --- a/test/valid-data/type-extend/index.test.ts +++ b/test/valid-data/type-extend/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-extend", assertValidSchema("type-extend", "MyObject")); +test("valid-data - type-extend", assertValidSchema("type-extend", "MyObject")); diff --git a/test/valid-data/type-extends-never/index.test.ts b/test/valid-data/type-extends-never/index.test.ts index 0b9af9ff3..c24783f0c 100644 --- a/test/valid-data/type-extends-never/index.test.ts +++ b/test/valid-data/type-extends-never/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-extends-never", assertValidSchema("type-extends-never", "MyType")); +test("valid-data - type-extends-never", assertValidSchema("type-extends-never", "MyType")); diff --git a/test/valid-data/type-indexed-access-keyof/index.test.ts b/test/valid-data/type-indexed-access-keyof/index.test.ts index 207e0f8d4..1e708bb16 100644 --- a/test/valid-data/type-indexed-access-keyof/index.test.ts +++ b/test/valid-data/type-indexed-access-keyof/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-keyof", assertValidSchema("type-indexed-access-keyof", "MyType")); +test("valid-data - type-indexed-access-keyof", assertValidSchema("type-indexed-access-keyof", "MyType")); diff --git a/test/valid-data/type-indexed-access-object-1/index.test.ts b/test/valid-data/type-indexed-access-object-1/index.test.ts index 9efad06de..1aef3eda7 100644 --- a/test/valid-data/type-indexed-access-object-1/index.test.ts +++ b/test/valid-data/type-indexed-access-object-1/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-object-1", assertValidSchema("type-indexed-access-object-1", "MyType")); +test("valid-data - type-indexed-access-object-1", assertValidSchema("type-indexed-access-object-1", "MyType")); diff --git a/test/valid-data/type-indexed-access-object-2/index.test.ts b/test/valid-data/type-indexed-access-object-2/index.test.ts index 04dfc7d18..1c7e96263 100644 --- a/test/valid-data/type-indexed-access-object-2/index.test.ts +++ b/test/valid-data/type-indexed-access-object-2/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-object-2", assertValidSchema("type-indexed-access-object-2", "MyType")); +test("valid-data - type-indexed-access-object-2", assertValidSchema("type-indexed-access-object-2", "MyType")); diff --git a/test/valid-data/type-indexed-access-tuple-1/index.test.ts b/test/valid-data/type-indexed-access-tuple-1/index.test.ts index eac963f6b..a8ce95687 100644 --- a/test/valid-data/type-indexed-access-tuple-1/index.test.ts +++ b/test/valid-data/type-indexed-access-tuple-1/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-tuple-1", assertValidSchema("type-indexed-access-tuple-1", "MyType")); +test("valid-data - type-indexed-access-tuple-1", assertValidSchema("type-indexed-access-tuple-1", "MyType")); diff --git a/test/valid-data/type-indexed-access-tuple-2/index.test.ts b/test/valid-data/type-indexed-access-tuple-2/index.test.ts index 5738cdbd1..84266b1f0 100644 --- a/test/valid-data/type-indexed-access-tuple-2/index.test.ts +++ b/test/valid-data/type-indexed-access-tuple-2/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-tuple-2", assertValidSchema("type-indexed-access-tuple-2", "MyType")); +test("valid-data - type-indexed-access-tuple-2", assertValidSchema("type-indexed-access-tuple-2", "MyType")); diff --git a/test/valid-data/type-indexed-access-tuple-union/index.test.ts b/test/valid-data/type-indexed-access-tuple-union/index.test.ts index 9473f8048..839479dd5 100644 --- a/test/valid-data/type-indexed-access-tuple-union/index.test.ts +++ b/test/valid-data/type-indexed-access-tuple-union/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-tuple-union", assertValidSchema("type-indexed-access-tuple-union", "FormLayout")); +test( + "valid-data - type-indexed-access-tuple-union", + assertValidSchema("type-indexed-access-tuple-union", "FormLayout"), +); diff --git a/test/valid-data/type-indexed-access-type-union/index.test.ts b/test/valid-data/type-indexed-access-type-union/index.test.ts index 1335e8b55..616ebc59e 100644 --- a/test/valid-data/type-indexed-access-type-union/index.test.ts +++ b/test/valid-data/type-indexed-access-type-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-access-type-union", assertValidSchema("type-indexed-access-type-union", "MyType")); +test("valid-data - type-indexed-access-type-union", assertValidSchema("type-indexed-access-type-union", "MyType")); diff --git a/test/valid-data/type-indexed-circular-access/index.test.ts b/test/valid-data/type-indexed-circular-access/index.test.ts index 1c3d8b299..dcff7acec 100644 --- a/test/valid-data/type-indexed-circular-access/index.test.ts +++ b/test/valid-data/type-indexed-circular-access/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-circular-access", assertValidSchema("type-indexed-circular-access", "*")); +test("valid-data - type-indexed-circular-access", assertValidSchema("type-indexed-circular-access", "*")); diff --git a/test/valid-data/type-indexed-circular/index.test.ts b/test/valid-data/type-indexed-circular/index.test.ts index 53135f528..5e65bccd2 100644 --- a/test/valid-data/type-indexed-circular/index.test.ts +++ b/test/valid-data/type-indexed-circular/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-indexed-circular", assertValidSchema("type-indexed-circular", "MyType")); +test("valid-data - type-indexed-circular", assertValidSchema("type-indexed-circular", "MyType")); diff --git a/test/valid-data/type-intersection-additional-props/index.test.ts b/test/valid-data/type-intersection-additional-props/index.test.ts index b88490b35..c561e59cb 100644 --- a/test/valid-data/type-intersection-additional-props/index.test.ts +++ b/test/valid-data/type-intersection-additional-props/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-additional-props", assertValidSchema("type-intersection-additional-props", "MyObject")); +test( + "valid-data - type-intersection-additional-props", + assertValidSchema("type-intersection-additional-props", "MyObject"), +); diff --git a/test/valid-data/type-intersection-aliased-union/index.test.ts b/test/valid-data/type-intersection-aliased-union/index.test.ts index ee875c3b5..693304bba 100644 --- a/test/valid-data/type-intersection-aliased-union/index.test.ts +++ b/test/valid-data/type-intersection-aliased-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-aliased-union", assertValidSchema("type-intersection-aliased-union", "MyObject")); +test("valid-data - type-intersection-aliased-union", assertValidSchema("type-intersection-aliased-union", "MyObject")); diff --git a/test/valid-data/type-intersection-conflict/index.test.ts b/test/valid-data/type-intersection-conflict/index.test.ts index df018c1e5..e1f76641b 100644 --- a/test/valid-data/type-intersection-conflict/index.test.ts +++ b/test/valid-data/type-intersection-conflict/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-conflict", assertValidSchema("type-intersection-conflict", "MyObject")); +test("valid-data - type-intersection-conflict", assertValidSchema("type-intersection-conflict", "MyObject")); diff --git a/test/valid-data/type-intersection-partial-conflict-ref/index.test.ts b/test/valid-data/type-intersection-partial-conflict-ref/index.test.ts index cd302e9fb..34134bf5a 100644 --- a/test/valid-data/type-intersection-partial-conflict-ref/index.test.ts +++ b/test/valid-data/type-intersection-partial-conflict-ref/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-partial-conflict-ref", assertValidSchema("type-intersection-partial-conflict-ref", "MyType")); +test( + "valid-data - type-intersection-partial-conflict-ref", + assertValidSchema("type-intersection-partial-conflict-ref", "MyType"), +); diff --git a/test/valid-data/type-intersection-partial-conflict-union-alias/index.test.ts b/test/valid-data/type-intersection-partial-conflict-union-alias/index.test.ts index cf0b26e57..02c2b0c1c 100644 --- a/test/valid-data/type-intersection-partial-conflict-union-alias/index.test.ts +++ b/test/valid-data/type-intersection-partial-conflict-union-alias/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-intersection-partial-conflict-union-alias", + "valid-data - type-intersection-partial-conflict-union-alias", assertValidSchema("type-intersection-partial-conflict-union-alias", "MyType"), ); diff --git a/test/valid-data/type-intersection-partial-conflict-union/index.test.ts b/test/valid-data/type-intersection-partial-conflict-union/index.test.ts index 33adbe625..b41cf5fd0 100644 --- a/test/valid-data/type-intersection-partial-conflict-union/index.test.ts +++ b/test/valid-data/type-intersection-partial-conflict-union/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-intersection-partial-conflict-union", + "valid-data - type-intersection-partial-conflict-union", assertValidSchema("type-intersection-partial-conflict-union", "MyType"), ); diff --git a/test/valid-data/type-intersection-partial-conflict/index.test.ts b/test/valid-data/type-intersection-partial-conflict/index.test.ts index d01db953e..60057a112 100644 --- a/test/valid-data/type-intersection-partial-conflict/index.test.ts +++ b/test/valid-data/type-intersection-partial-conflict/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-partial-conflict", assertValidSchema("type-intersection-partial-conflict", "MyType")); +test( + "valid-data - type-intersection-partial-conflict", + assertValidSchema("type-intersection-partial-conflict", "MyType"), +); diff --git a/test/valid-data/type-intersection-recursive-interface/index.test.ts b/test/valid-data/type-intersection-recursive-interface/index.test.ts index 72e0c57c2..5ab57858b 100644 --- a/test/valid-data/type-intersection-recursive-interface/index.test.ts +++ b/test/valid-data/type-intersection-recursive-interface/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-intersection-recursive-interface", + "valid-data - type-intersection-recursive-interface", assertValidSchema("type-intersection-recursive-interface", "Intersection"), ); diff --git a/test/valid-data/type-intersection-union-enum/index.test.ts b/test/valid-data/type-intersection-union-enum/index.test.ts index 78fd592fd..8ae7ee7df 100644 --- a/test/valid-data/type-intersection-union-enum/index.test.ts +++ b/test/valid-data/type-intersection-union-enum/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-union-enum", assertValidSchema("type-intersection-union-enum", "MyObject")); +test("valid-data - type-intersection-union-enum", assertValidSchema("type-intersection-union-enum", "MyObject")); diff --git a/test/valid-data/type-intersection-union-primitive/index.test.ts b/test/valid-data/type-intersection-union-primitive/index.test.ts index e020cb4fa..de92908b0 100644 --- a/test/valid-data/type-intersection-union-primitive/index.test.ts +++ b/test/valid-data/type-intersection-union-primitive/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-union-primitive", assertValidSchema("type-intersection-union-primitive", "MyType")); +test( + "valid-data - type-intersection-union-primitive", + assertValidSchema("type-intersection-union-primitive", "MyType"), +); diff --git a/test/valid-data/type-intersection-union-recursive-interface/index.test.ts b/test/valid-data/type-intersection-union-recursive-interface/index.test.ts index 9ec6a2e94..713276b20 100644 --- a/test/valid-data/type-intersection-union-recursive-interface/index.test.ts +++ b/test/valid-data/type-intersection-union-recursive-interface/index.test.ts @@ -2,6 +2,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; test( - "type-intersection-union-recursive-interface", + "valid-data - type-intersection-union-recursive-interface", assertValidSchema("type-intersection-union-recursive-interface", "Intersection"), ); diff --git a/test/valid-data/type-intersection-union/index.test.ts b/test/valid-data/type-intersection-union/index.test.ts index f42b7eec8..41ce6c905 100644 --- a/test/valid-data/type-intersection-union/index.test.ts +++ b/test/valid-data/type-intersection-union/index.test.ts @@ -1,6 +1,6 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-union", assertValidSchema("type-intersection-union", "MyObject")); +test("valid-data - type-intersection-union", assertValidSchema("type-intersection-union", "MyObject")); -test("type-intersection-union", assertValidSchema("type-intersection-union", "MyObject")); +test("valid-data - type-intersection-union", assertValidSchema("type-intersection-union", "MyObject")); diff --git a/test/valid-data/type-intersection-with-arrays/index.test.ts b/test/valid-data/type-intersection-with-arrays/index.test.ts index 2a58807d5..2f91d7f96 100644 --- a/test/valid-data/type-intersection-with-arrays/index.test.ts +++ b/test/valid-data/type-intersection-with-arrays/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection-with-arrays", assertValidSchema("type-intersection-with-arrays", "*")); +test("valid-data - type-intersection-with-arrays", assertValidSchema("type-intersection-with-arrays", "*")); diff --git a/test/valid-data/type-intersection/index.test.ts b/test/valid-data/type-intersection/index.test.ts index 9bacc7d87..e1fdc0aed 100644 --- a/test/valid-data/type-intersection/index.test.ts +++ b/test/valid-data/type-intersection/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-intersection", assertValidSchema("type-intersection", "MyObject")); +test("valid-data - type-intersection", assertValidSchema("type-intersection", "MyObject")); diff --git a/test/valid-data/type-keyof-object-function/index.test.ts b/test/valid-data/type-keyof-object-function/index.test.ts index 44e68510a..a9175c731 100644 --- a/test/valid-data/type-keyof-object-function/index.test.ts +++ b/test/valid-data/type-keyof-object-function/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-keyof-object-function", assertValidSchema("type-keyof-object-function", "MyType")); +test("valid-data - type-keyof-object-function", assertValidSchema("type-keyof-object-function", "MyType")); diff --git a/test/valid-data/type-keyof-object/index.test.ts b/test/valid-data/type-keyof-object/index.test.ts index 6999fdb84..9a5b910e6 100644 --- a/test/valid-data/type-keyof-object/index.test.ts +++ b/test/valid-data/type-keyof-object/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-keyof-object", assertValidSchema("type-keyof-object", "MyType")); +test("valid-data - type-keyof-object", assertValidSchema("type-keyof-object", "MyType")); diff --git a/test/valid-data/type-keyof-tuple/index.test.ts b/test/valid-data/type-keyof-tuple/index.test.ts index 979d7c060..58205103c 100644 --- a/test/valid-data/type-keyof-tuple/index.test.ts +++ b/test/valid-data/type-keyof-tuple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-keyof-tuple", assertValidSchema("type-keyof-tuple", "MyType")); +test("valid-data - type-keyof-tuple", assertValidSchema("type-keyof-tuple", "MyType")); diff --git a/test/valid-data/type-mapped-additional-props/index.test.ts b/test/valid-data/type-mapped-additional-props/index.test.ts index c4cca3147..0fa8d4c88 100644 --- a/test/valid-data/type-mapped-additional-props/index.test.ts +++ b/test/valid-data/type-mapped-additional-props/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-additional-props", assertValidSchema("type-mapped-additional-props", "MyObject")); +test("valid-data - type-mapped-additional-props", assertValidSchema("type-mapped-additional-props", "MyObject")); diff --git a/test/valid-data/type-mapped-annotated-string/index.test.ts b/test/valid-data/type-mapped-annotated-string/index.test.ts index 1ff11786e..1028e9667 100644 --- a/test/valid-data/type-mapped-annotated-string/index.test.ts +++ b/test/valid-data/type-mapped-annotated-string/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-annotated-string", assertValidSchema("type-mapped-annotated-string", "*")); +test("valid-data - type-mapped-annotated-string", assertValidSchema("type-mapped-annotated-string", "*")); diff --git a/test/valid-data/type-mapped-any/index.test.ts b/test/valid-data/type-mapped-any/index.test.ts index 5e2b60e07..3edff1cd3 100644 --- a/test/valid-data/type-mapped-any/index.test.ts +++ b/test/valid-data/type-mapped-any/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-any", assertValidSchema("type-mapped-any", "MyObject")); +test("valid-data - type-mapped-any", assertValidSchema("type-mapped-any", "MyObject")); diff --git a/test/valid-data/type-mapped-array/index.test.ts b/test/valid-data/type-mapped-array/index.test.ts index 9ed6d9091..016560174 100644 --- a/test/valid-data/type-mapped-array/index.test.ts +++ b/test/valid-data/type-mapped-array/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-array", assertValidSchema("type-mapped-array", "MyObject")); +test("valid-data - type-mapped-array", assertValidSchema("type-mapped-array", "MyObject")); diff --git a/test/valid-data/type-mapped-double-exclude/index.test.ts b/test/valid-data/type-mapped-double-exclude/index.test.ts index f44a88a87..acbabec73 100644 --- a/test/valid-data/type-mapped-double-exclude/index.test.ts +++ b/test/valid-data/type-mapped-double-exclude/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-double-exclude", assertValidSchema("type-mapped-double-exclude", "MyObject")); +test("valid-data - type-mapped-double-exclude", assertValidSchema("type-mapped-double-exclude", "MyObject")); diff --git a/test/valid-data/type-mapped-empty-exclude/index.test.ts b/test/valid-data/type-mapped-empty-exclude/index.test.ts index d6af25671..912a36f1f 100644 --- a/test/valid-data/type-mapped-empty-exclude/index.test.ts +++ b/test/valid-data/type-mapped-empty-exclude/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-empty-exclude", assertValidSchema("type-mapped-empty-exclude", "MyObject")); +test("valid-data - type-mapped-empty-exclude", assertValidSchema("type-mapped-empty-exclude", "MyObject")); diff --git a/test/valid-data/type-mapped-enum-null/index.test.ts b/test/valid-data/type-mapped-enum-null/index.test.ts index 87feade0d..60922b3b8 100644 --- a/test/valid-data/type-mapped-enum-null/index.test.ts +++ b/test/valid-data/type-mapped-enum-null/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-enum-null", assertValidSchema("type-mapped-enum-null", "MyObject")); +test("valid-data - type-mapped-enum-null", assertValidSchema("type-mapped-enum-null", "MyObject")); diff --git a/test/valid-data/type-mapped-enum-number/index.test.ts b/test/valid-data/type-mapped-enum-number/index.test.ts index 142a2b4b0..e07d68bda 100644 --- a/test/valid-data/type-mapped-enum-number/index.test.ts +++ b/test/valid-data/type-mapped-enum-number/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-enum-number", assertValidSchema("type-mapped-enum-number", "MyObject")); +test("valid-data - type-mapped-enum-number", assertValidSchema("type-mapped-enum-number", "MyObject")); diff --git a/test/valid-data/type-mapped-enum-optional/index.test.ts b/test/valid-data/type-mapped-enum-optional/index.test.ts index 8fe34edd9..677f506a3 100644 --- a/test/valid-data/type-mapped-enum-optional/index.test.ts +++ b/test/valid-data/type-mapped-enum-optional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-enum-optional", assertValidSchema("type-mapped-enum-optional", "MyObject")); +test("valid-data - type-mapped-enum-optional", assertValidSchema("type-mapped-enum-optional", "MyObject")); diff --git a/test/valid-data/type-mapped-enum/index.test.ts b/test/valid-data/type-mapped-enum/index.test.ts index 73bd66817..4835625cf 100644 --- a/test/valid-data/type-mapped-enum/index.test.ts +++ b/test/valid-data/type-mapped-enum/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-enum", assertValidSchema("type-mapped-enum", "MyObject")); +test("valid-data - type-mapped-enum", assertValidSchema("type-mapped-enum", "MyObject")); diff --git a/test/valid-data/type-mapped-exclude/index.test.ts b/test/valid-data/type-mapped-exclude/index.test.ts index eac0763f4..c934edf69 100644 --- a/test/valid-data/type-mapped-exclude/index.test.ts +++ b/test/valid-data/type-mapped-exclude/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-exclude", assertValidSchema("type-mapped-exclude", "MyObject")); +test("valid-data - type-mapped-exclude", assertValidSchema("type-mapped-exclude", "MyObject")); diff --git a/test/valid-data/type-mapped-exported-aliases/index.test.ts b/test/valid-data/type-mapped-exported-aliases/index.test.ts index 992a673bd..5234b9291 100644 --- a/test/valid-data/type-mapped-exported-aliases/index.test.ts +++ b/test/valid-data/type-mapped-exported-aliases/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-exported-aliases", assertValidSchema("type-mapped-exported-aliases", "*")); +test("valid-data - type-mapped-exported-aliases", assertValidSchema("type-mapped-exported-aliases", "*")); diff --git a/test/valid-data/type-mapped-generic/index.test.ts b/test/valid-data/type-mapped-generic/index.test.ts index 96f0cf947..413081688 100644 --- a/test/valid-data/type-mapped-generic/index.test.ts +++ b/test/valid-data/type-mapped-generic/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-generic", assertValidSchema("type-mapped-generic", "MyObject")); +test("valid-data - type-mapped-generic", assertValidSchema("type-mapped-generic", "MyObject")); diff --git a/test/valid-data/type-mapped-index-as-template/index.test.ts b/test/valid-data/type-mapped-index-as-template/index.test.ts index a968714c1..829c0dfda 100644 --- a/test/valid-data/type-mapped-index-as-template/index.test.ts +++ b/test/valid-data/type-mapped-index-as-template/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-index-as-template", assertValidSchema("type-mapped-index-as-template", "MyObject")); +test("valid-data - type-mapped-index-as-template", assertValidSchema("type-mapped-index-as-template", "MyObject")); diff --git a/test/valid-data/type-mapped-index-as-with-conditional/index.test.ts b/test/valid-data/type-mapped-index-as-with-conditional/index.test.ts index 9cefa93b7..5679ecea0 100644 --- a/test/valid-data/type-mapped-index-as-with-conditional/index.test.ts +++ b/test/valid-data/type-mapped-index-as-with-conditional/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-index-as-with-conditional", assertValidSchema("type-mapped-index-as-with-conditional", "MyObject")); +test( + "valid-data - type-mapped-index-as-with-conditional", + assertValidSchema("type-mapped-index-as-with-conditional", "MyObject"), +); diff --git a/test/valid-data/type-mapped-index-as/index.test.ts b/test/valid-data/type-mapped-index-as/index.test.ts index d1b1674ef..e3fc604e8 100644 --- a/test/valid-data/type-mapped-index-as/index.test.ts +++ b/test/valid-data/type-mapped-index-as/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-index-as", assertValidSchema("type-mapped-index-as", "MyObject")); +test("valid-data - type-mapped-index-as", assertValidSchema("type-mapped-index-as", "MyObject")); diff --git a/test/valid-data/type-mapped-index/index.test.ts b/test/valid-data/type-mapped-index/index.test.ts index a737a370f..3bef0a69f 100644 --- a/test/valid-data/type-mapped-index/index.test.ts +++ b/test/valid-data/type-mapped-index/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-index", assertValidSchema("type-mapped-index", "MyObject")); +test("valid-data - type-mapped-index", assertValidSchema("type-mapped-index", "MyObject")); diff --git a/test/valid-data/type-mapped-literal/index.test.ts b/test/valid-data/type-mapped-literal/index.test.ts index e86e91e03..5114aed71 100644 --- a/test/valid-data/type-mapped-literal/index.test.ts +++ b/test/valid-data/type-mapped-literal/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-literal", assertValidSchema("type-mapped-literal", "MyObject")); +test("valid-data - type-mapped-literal", assertValidSchema("type-mapped-literal", "MyObject")); diff --git a/test/valid-data/type-mapped-native-single-literal/index.test.ts b/test/valid-data/type-mapped-native-single-literal/index.test.ts index 18571d98f..2e0bbfa0a 100644 --- a/test/valid-data/type-mapped-native-single-literal/index.test.ts +++ b/test/valid-data/type-mapped-native-single-literal/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-native-single-literal", assertValidSchema("type-mapped-native-single-literal", "MyObject")); +test( + "valid-data - type-mapped-native-single-literal", + assertValidSchema("type-mapped-native-single-literal", "MyObject"), +); diff --git a/test/valid-data/type-mapped-native/index.test.ts b/test/valid-data/type-mapped-native/index.test.ts index 384b5c35c..0d521a8fa 100644 --- a/test/valid-data/type-mapped-native/index.test.ts +++ b/test/valid-data/type-mapped-native/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-native", assertValidSchema("type-mapped-native", "MyObject")); +test("valid-data - type-mapped-native", assertValidSchema("type-mapped-native", "MyObject")); diff --git a/test/valid-data/type-mapped-never/index.test.ts b/test/valid-data/type-mapped-never/index.test.ts index 18fb2bfc9..1e4434d7e 100644 --- a/test/valid-data/type-mapped-never/index.test.ts +++ b/test/valid-data/type-mapped-never/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-never", assertValidSchema("type-mapped-never", "MyObject")); +test("valid-data - type-mapped-never", assertValidSchema("type-mapped-never", "MyObject")); diff --git a/test/valid-data/type-mapped-number/index.test.ts b/test/valid-data/type-mapped-number/index.test.ts index 18961e865..050d38a17 100644 --- a/test/valid-data/type-mapped-number/index.test.ts +++ b/test/valid-data/type-mapped-number/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-number", assertValidSchema("type-mapped-number", "*")); +test("valid-data - type-mapped-number", assertValidSchema("type-mapped-number", "*")); diff --git a/test/valid-data/type-mapped-optional/index.test.ts b/test/valid-data/type-mapped-optional/index.test.ts index f479ac0cc..9188fad0b 100644 --- a/test/valid-data/type-mapped-optional/index.test.ts +++ b/test/valid-data/type-mapped-optional/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-optional", assertValidSchema("type-mapped-optional", "MyObject")); +test("valid-data - type-mapped-optional", assertValidSchema("type-mapped-optional", "MyObject")); diff --git a/test/valid-data/type-mapped-pick-union-alias/index.test.ts b/test/valid-data/type-mapped-pick-union-alias/index.test.ts index fbb1fa24e..b0778b3e9 100644 --- a/test/valid-data/type-mapped-pick-union-alias/index.test.ts +++ b/test/valid-data/type-mapped-pick-union-alias/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-pick-union-alias", assertValidSchema("type-mapped-pick-union-alias", "PickAliasedLiteralUnion")); +test( + "valid-data - type-mapped-pick-union-alias", + assertValidSchema("type-mapped-pick-union-alias", "PickAliasedLiteralUnion"), +); diff --git a/test/valid-data/type-mapped-simple/index.test.ts b/test/valid-data/type-mapped-simple/index.test.ts index fd2a032f2..d1a2fd2c0 100644 --- a/test/valid-data/type-mapped-simple/index.test.ts +++ b/test/valid-data/type-mapped-simple/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-simple", assertValidSchema("type-mapped-simple", "MyObject")); +test("valid-data - type-mapped-simple", assertValidSchema("type-mapped-simple", "MyObject")); diff --git a/test/valid-data/type-mapped-symbol/index.test.ts b/test/valid-data/type-mapped-symbol/index.test.ts index 0d9541c5e..cc8379776 100644 --- a/test/valid-data/type-mapped-symbol/index.test.ts +++ b/test/valid-data/type-mapped-symbol/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-symbol", assertValidSchema("type-mapped-symbol", "MyObject")); +test("valid-data - type-mapped-symbol", assertValidSchema("type-mapped-symbol", "MyObject")); diff --git a/test/valid-data/type-mapped-template-literal/index.test.ts b/test/valid-data/type-mapped-template-literal/index.test.ts index 09f0ba4bc..756eca605 100644 --- a/test/valid-data/type-mapped-template-literal/index.test.ts +++ b/test/valid-data/type-mapped-template-literal/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-template-literal", assertValidSchema("type-mapped-template-literal", "MyObject")); +test("valid-data - type-mapped-template-literal", assertValidSchema("type-mapped-template-literal", "MyObject")); diff --git a/test/valid-data/type-mapped-union-intersection/index.test.ts b/test/valid-data/type-mapped-union-intersection/index.test.ts index 316f13343..c8edc0072 100644 --- a/test/valid-data/type-mapped-union-intersection/index.test.ts +++ b/test/valid-data/type-mapped-union-intersection/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-union-intersection", assertValidSchema("type-mapped-union-intersection", "MyObject")); +test("valid-data - type-mapped-union-intersection", assertValidSchema("type-mapped-union-intersection", "MyObject")); diff --git a/test/valid-data/type-mapped-union-union/index.test.ts b/test/valid-data/type-mapped-union-union/index.test.ts index 3eb4a89ba..656126361 100644 --- a/test/valid-data/type-mapped-union-union/index.test.ts +++ b/test/valid-data/type-mapped-union-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-union-union", assertValidSchema("type-mapped-union-union", "MyType")); +test("valid-data - type-mapped-union-union", assertValidSchema("type-mapped-union-union", "MyType")); diff --git a/test/valid-data/type-mapped-widened/index.test.ts b/test/valid-data/type-mapped-widened/index.test.ts index 47d4e4684..a64f2e6fb 100644 --- a/test/valid-data/type-mapped-widened/index.test.ts +++ b/test/valid-data/type-mapped-widened/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-mapped-widened", assertValidSchema("type-mapped-widened", "MyObject")); +test("valid-data - type-mapped-widened", assertValidSchema("type-mapped-widened", "MyObject")); diff --git a/test/valid-data/type-maps/index.test.ts b/test/valid-data/type-maps/index.test.ts index 1de1b4122..8da4f379f 100644 --- a/test/valid-data/type-maps/index.test.ts +++ b/test/valid-data/type-maps/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-maps", assertValidSchema("type-maps", "MyObject")); +test("valid-data - type-maps", assertValidSchema("type-maps", "MyObject")); diff --git a/test/valid-data/type-named-tuple-member/index.test.ts b/test/valid-data/type-named-tuple-member/index.test.ts index 0386ba48c..7ddcd2e44 100644 --- a/test/valid-data/type-named-tuple-member/index.test.ts +++ b/test/valid-data/type-named-tuple-member/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-named-tuple-member", assertValidSchema("type-named-tuple-member", "*")); +test("valid-data - type-named-tuple-member", assertValidSchema("type-named-tuple-member", "*")); diff --git a/test/valid-data/type-primitives/index.test.ts b/test/valid-data/type-primitives/index.test.ts index abbf0d127..d7ff166fd 100644 --- a/test/valid-data/type-primitives/index.test.ts +++ b/test/valid-data/type-primitives/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-primitives", assertValidSchema("type-primitives", "MyObject")); +test("valid-data - type-primitives", assertValidSchema("type-primitives", "MyObject")); diff --git a/test/valid-data/type-recursive-deep-exclude/index.test.ts b/test/valid-data/type-recursive-deep-exclude/index.test.ts index bce847de8..5962af83f 100644 --- a/test/valid-data/type-recursive-deep-exclude/index.test.ts +++ b/test/valid-data/type-recursive-deep-exclude/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-recursive-deep-exclude", assertValidSchema("type-recursive-deep-exclude", "MyType")); +test("valid-data - type-recursive-deep-exclude", assertValidSchema("type-recursive-deep-exclude", "MyType")); diff --git a/test/valid-data/type-regexp/index.test.ts b/test/valid-data/type-regexp/index.test.ts index 44aac95d3..89752b079 100644 --- a/test/valid-data/type-regexp/index.test.ts +++ b/test/valid-data/type-regexp/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-regexp", assertValidSchema("type-regexp", "MyObject")); +test("valid-data - type-regexp", assertValidSchema("type-regexp", "MyObject")); diff --git a/test/valid-data/type-satisfies/index.test.ts b/test/valid-data/type-satisfies/index.test.ts index 52bbd5297..c3162fd20 100644 --- a/test/valid-data/type-satisfies/index.test.ts +++ b/test/valid-data/type-satisfies/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-satisfies", assertValidSchema("type-satisfies", "MyType")); +test("valid-data - type-satisfies", assertValidSchema("type-satisfies", "MyType")); diff --git a/test/valid-data/type-tuple-nested-rest-to-union/index.test.ts b/test/valid-data/type-tuple-nested-rest-to-union/index.test.ts index 61630b00f..031574342 100644 --- a/test/valid-data/type-tuple-nested-rest-to-union/index.test.ts +++ b/test/valid-data/type-tuple-nested-rest-to-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-tuple-nested-rest-to-union", assertValidSchema("type-tuple-nested-rest-to-union", "MyType")); +test("valid-data - type-tuple-nested-rest-to-union", assertValidSchema("type-tuple-nested-rest-to-union", "MyType")); diff --git a/test/valid-data/type-tuple-nested-rest-uniform/index.test.ts b/test/valid-data/type-tuple-nested-rest-uniform/index.test.ts index fcc546094..b5a8c5e14 100644 --- a/test/valid-data/type-tuple-nested-rest-uniform/index.test.ts +++ b/test/valid-data/type-tuple-nested-rest-uniform/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-tuple-nested-rest-uniform", assertValidSchema("type-tuple-nested-rest-uniform", "MyType")); +test("valid-data - type-tuple-nested-rest-uniform", assertValidSchema("type-tuple-nested-rest-uniform", "MyType")); diff --git a/test/valid-data/type-tuple-nested-rest/index.test.ts b/test/valid-data/type-tuple-nested-rest/index.test.ts index 69e1824a6..826e91023 100644 --- a/test/valid-data/type-tuple-nested-rest/index.test.ts +++ b/test/valid-data/type-tuple-nested-rest/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-tuple-nested-rest", assertValidSchema("type-tuple-nested-rest", "MyType")); +test("valid-data - type-tuple-nested-rest", assertValidSchema("type-tuple-nested-rest", "MyType")); diff --git a/test/valid-data/type-typeof-class-static-property/index.test.ts b/test/valid-data/type-typeof-class-static-property/index.test.ts index 77f987b70..a6cab8ea9 100644 --- a/test/valid-data/type-typeof-class-static-property/index.test.ts +++ b/test/valid-data/type-typeof-class-static-property/index.test.ts @@ -1,4 +1,7 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-class-static-property", assertValidSchema("type-typeof-class-static-property", "MyType")); +test( + "valid-data - type-typeof-class-static-property", + assertValidSchema("type-typeof-class-static-property", "MyType"), +); diff --git a/test/valid-data/type-typeof-class/index.test.ts b/test/valid-data/type-typeof-class/index.test.ts index 1e68051e6..02ee59df3 100644 --- a/test/valid-data/type-typeof-class/index.test.ts +++ b/test/valid-data/type-typeof-class/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-class", assertValidSchema("type-typeof-class", "MyObject")); +test("valid-data - type-typeof-class", assertValidSchema("type-typeof-class", "MyObject")); diff --git a/test/valid-data/type-typeof-enum/index.test.ts b/test/valid-data/type-typeof-enum/index.test.ts index 0c30e8eb3..5bcbd917b 100644 --- a/test/valid-data/type-typeof-enum/index.test.ts +++ b/test/valid-data/type-typeof-enum/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-enum", assertValidSchema("type-typeof-enum", "MyObject")); +test("valid-data - type-typeof-enum", assertValidSchema("type-typeof-enum", "MyObject")); diff --git a/test/valid-data/type-typeof-function/index.test.ts b/test/valid-data/type-typeof-function/index.test.ts index 6f32a73e8..2b0cb13a6 100644 --- a/test/valid-data/type-typeof-function/index.test.ts +++ b/test/valid-data/type-typeof-function/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-function", assertValidSchema("type-typeof-function", "*")); +test("valid-data - type-typeof-function", assertValidSchema("type-typeof-function", "*")); diff --git a/test/valid-data/type-typeof-keys/index.test.ts b/test/valid-data/type-typeof-keys/index.test.ts index af9e5388a..c10e587db 100644 --- a/test/valid-data/type-typeof-keys/index.test.ts +++ b/test/valid-data/type-typeof-keys/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-keys", assertValidSchema("type-typeof-keys", "MyType")); +test("valid-data - type-typeof-keys", assertValidSchema("type-typeof-keys", "MyType")); diff --git a/test/valid-data/type-typeof-object-property/index.test.ts b/test/valid-data/type-typeof-object-property/index.test.ts index c32adf6f9..cf510ec1b 100644 --- a/test/valid-data/type-typeof-object-property/index.test.ts +++ b/test/valid-data/type-typeof-object-property/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-object-property", assertValidSchema("type-typeof-object-property", "MyType")); +test("valid-data - type-typeof-object-property", assertValidSchema("type-typeof-object-property", "MyType")); diff --git a/test/valid-data/type-typeof-value/index.test.ts b/test/valid-data/type-typeof-value/index.test.ts index 040488a5d..7048840f0 100644 --- a/test/valid-data/type-typeof-value/index.test.ts +++ b/test/valid-data/type-typeof-value/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof-value", assertValidSchema("type-typeof-value", "MyType")); +test("valid-data - type-typeof-value", assertValidSchema("type-typeof-value", "MyType")); diff --git a/test/valid-data/type-typeof/index.test.ts b/test/valid-data/type-typeof/index.test.ts index d7d343353..42b4e0e22 100644 --- a/test/valid-data/type-typeof/index.test.ts +++ b/test/valid-data/type-typeof/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-typeof", assertValidSchema("type-typeof", "MyType")); +test("valid-data - type-typeof", assertValidSchema("type-typeof", "MyType")); diff --git a/test/valid-data/type-union-tagged/index.test.ts b/test/valid-data/type-union-tagged/index.test.ts index ab16b19a4..6512170ec 100644 --- a/test/valid-data/type-union-tagged/index.test.ts +++ b/test/valid-data/type-union-tagged/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-union-tagged", assertValidSchema("type-union-tagged", "Shape")); +test("valid-data - type-union-tagged", assertValidSchema("type-union-tagged", "Shape")); diff --git a/test/valid-data/type-union/index.test.ts b/test/valid-data/type-union/index.test.ts index 37bee160d..16357adbb 100644 --- a/test/valid-data/type-union/index.test.ts +++ b/test/valid-data/type-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-union", assertValidSchema("type-union", "TypeUnion")); +test("valid-data - type-union", assertValidSchema("type-union", "TypeUnion")); diff --git a/test/valid-data/type-uri/index.test.ts b/test/valid-data/type-uri/index.test.ts index d046ca602..634e87c12 100644 --- a/test/valid-data/type-uri/index.test.ts +++ b/test/valid-data/type-uri/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("type-uri", assertValidSchema("type-uri", "MyObject")); +test("valid-data - type-uri", assertValidSchema("type-uri", "MyObject")); diff --git a/test/valid-data/undefined-alias/index.test.ts b/test/valid-data/undefined-alias/index.test.ts index be8a4b9a1..0626f57c0 100644 --- a/test/valid-data/undefined-alias/index.test.ts +++ b/test/valid-data/undefined-alias/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("undefined-alias", assertValidSchema("undefined-alias", "MyType")); +test("valid-data - undefined-alias", assertValidSchema("undefined-alias", "MyType")); diff --git a/test/valid-data/undefined-property/index.test.ts b/test/valid-data/undefined-property/index.test.ts index 0ae7b7fb4..fc4120ef6 100644 --- a/test/valid-data/undefined-property/index.test.ts +++ b/test/valid-data/undefined-property/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("undefined-property", assertValidSchema("undefined-property", "MyType")); +test("valid-data - undefined-property", assertValidSchema("undefined-property", "MyType")); diff --git a/test/valid-data/undefined-union/index.test.ts b/test/valid-data/undefined-union/index.test.ts index e85ff7e90..80596452c 100644 --- a/test/valid-data/undefined-union/index.test.ts +++ b/test/valid-data/undefined-union/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("undefined-union", assertValidSchema("undefined-union", "MyType")); +test("valid-data - undefined-union", assertValidSchema("undefined-union", "MyType")); diff --git a/test/valid-data/unique-symbol/index.test.ts b/test/valid-data/unique-symbol/index.test.ts index 46f9e86df..0377085e1 100644 --- a/test/valid-data/unique-symbol/index.test.ts +++ b/test/valid-data/unique-symbol/index.test.ts @@ -1,4 +1,4 @@ import { assertValidSchema } from "../../utils"; import { test } from "node:test"; -test("unique-symbol", assertValidSchema("unique-symbol", "MyObject")); +test("valid-data - unique-symbol", assertValidSchema("unique-symbol", "MyObject")); diff --git a/test/vega-lite.test.ts b/test/vega-lite.test.ts deleted file mode 100644 index 925503755..000000000 --- a/test/vega-lite.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import assert from "assert"; -import fs from "fs"; -import { describe, it } from "node:test"; -import { resolve } from "path"; -import stringify from "safe-stable-stringify"; -import { createGenerator } from "../factory/generator.js"; -import type { CompletedConfig } from "../src/Config.js"; -import { DEFAULT_CONFIG } from "../src/Config.js"; - -describe("vega-lite", () => { - it("schema", async () => { - const config: CompletedConfig = { - ...DEFAULT_CONFIG, - path: `node_modules/vega-lite/src/index.ts`, - type: "TopLevelSpec", - encodeRefs: false, - skipTypeCheck: true, - }; - - const generator = createGenerator(config); - const schema = generator.createSchema(config.type); - const schemaFile = resolve("test/vega-lite/schema.json"); - - if (process.env.UPDATE_SCHEMA) { - await fs.promises.writeFile(schemaFile, stringify(schema, null, 2) + "\n", "utf8"); - } - - const vegaLiteSchema = JSON.parse(await fs.promises.readFile(schemaFile, "utf8")); - - assert.deepStrictEqual(schema, vegaLiteSchema); - }); -}); diff --git a/test/vega-lite/vega-lite.test.ts b/test/vega-lite/vega-lite.test.ts new file mode 100644 index 000000000..8eb882fc2 --- /dev/null +++ b/test/vega-lite/vega-lite.test.ts @@ -0,0 +1,30 @@ +import assert from "assert"; +import fs from "fs"; +import { it } from "node:test"; +import stringify from "safe-stable-stringify"; +import { createGenerator } from "../../factory/generator.js"; +import type { CompletedConfig } from "../../src/Config.js"; +import { DEFAULT_CONFIG } from "../../src/Config.js"; +import path from "path"; + +it("vega-lite - schema", async () => { + const config: CompletedConfig = { + ...DEFAULT_CONFIG, + path: `node_modules/vega-lite/src/index.ts`, + type: "TopLevelSpec", + encodeRefs: false, + skipTypeCheck: true, + }; + + const generator = createGenerator(config); + const schema = generator.createSchema(config.type); + const schemaFile = path.resolve("test", "vega-lite", "schema.json"); + + if (process.env.UPDATE_SCHEMA) { + await fs.promises.writeFile(schemaFile, stringify(schema, null, 2) + "\n", "utf8"); + } + + const vegaLiteSchema = JSON.parse(await fs.promises.readFile(schemaFile, "utf8")); + + assert.deepStrictEqual(schema, vegaLiteSchema); +});