From 584b9e26a1e5531e7f5cab37ef2e21f1f7d8108c Mon Sep 17 00:00:00 2001 From: Bogdan Savluk Date: Fri, 21 Jul 2023 18:21:40 +0200 Subject: [PATCH] ts-ignore --- .../validator-ajv8/test/createPrecompiledValidator.test.ts | 2 ++ packages/validator-ajv8/test/harness/compileTestSchema.js | 1 + packages/validator-ajv8/test/precompiledValidator.test.ts | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/packages/validator-ajv8/test/createPrecompiledValidator.test.ts b/packages/validator-ajv8/test/createPrecompiledValidator.test.ts index f8c9d28c18..37ae968371 100644 --- a/packages/validator-ajv8/test/createPrecompiledValidator.test.ts +++ b/packages/validator-ajv8/test/createPrecompiledValidator.test.ts @@ -2,6 +2,8 @@ import { RJSFSchema } from '@rjsf/utils'; import AJV8PrecompiledValidator from '../src/precompiledValidator'; import { Localizer, ValidatorFunctions } from '../src'; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js import * as superSchemaFns from './harness/superSchema'; import superSchema from './harness/superSchema.json'; import createPrecompiledValidator from '../src/createPrecompiledValidator'; diff --git a/packages/validator-ajv8/test/harness/compileTestSchema.js b/packages/validator-ajv8/test/harness/compileTestSchema.js index 5504056428..c404533543 100644 --- a/packages/validator-ajv8/test/harness/compileTestSchema.js +++ b/packages/validator-ajv8/test/harness/compileTestSchema.js @@ -9,6 +9,7 @@ * Then add the two updated `superSchema.js` and `superSchemaOptions.js` files to your PR */ +// @ts-ignore todo: update this to use sources directly const compileSchemaValidators = require('../../dist/compileSchemaValidators').default; const superSchema = require('./superSchema.json'); diff --git a/packages/validator-ajv8/test/precompiledValidator.test.ts b/packages/validator-ajv8/test/precompiledValidator.test.ts index 3b4953e693..6173270fba 100644 --- a/packages/validator-ajv8/test/precompiledValidator.test.ts +++ b/packages/validator-ajv8/test/precompiledValidator.test.ts @@ -11,7 +11,11 @@ import { import AJV8PrecompiledValidator from '../src/precompiledValidator'; import { Localizer, ValidatorFunctions } from '../src'; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js import * as superSchemaFns from './harness/superSchema'; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js import * as superSchemaOptionsFns from './harness/superSchemaOptions'; import superSchema from './harness/superSchema.json';