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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
"@types/wallabyjs",
"@types/mocha",
"markdownlint-cli2-formatter-pretty",
"asciinema-player",
"@astrojs/mdx",
"astro-broken-link-checker",
"jest",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import * as z from 'zod';

import { partialModestBenchConfigSchema } from '../src/config/schema.js';
import { partialModestBenchConfigInputSchema } from '../src/config/schema.js';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const generateSchema = async () => {
try {
// Convert Zod schema to JSON Schema using native Zod v4 functionality
const jsonSchema = z.toJSONSchema(partialModestBenchConfigSchema, {
const jsonSchema = z.toJSONSchema(partialModestBenchConfigInputSchema, {
target: 'draft-2020-12',
});

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import type {
BenchmarkDefinition,
BenchmarkSuite,
} from '../core/benchmark-schema.js';
} from '../config/benchmark-schema.js';

/**
* A captured test suite (describe block) from a test framework
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { z } from 'zod';

import type { ModestBenchConfig } from '../types/core.js';

import { partialModestBenchConfigSchema } from '../config/schema.js';
import { partialModestBenchConfigSchema } from './schema.js';

/**
* Schema for benchmark functions
Expand Down
Loading