diff --git a/libraries/faker-factory/src/__tests__/get-schemas.test.ts b/libraries/faker-factory/src/__tests__/get-schemas.test.ts deleted file mode 100644 index a0d72987e..000000000 --- a/libraries/faker-factory/src/__tests__/get-schemas.test.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { IsDiceNotation } from '@cats-cradle/validation-schemas'; -import { getSchemas } from '../get-schemas'; - -describe('getSchemas', () => { - let testClass: TestClass; - - class TestClass { - @IsDiceNotation() - public property: string; - } - - beforeEach(async () => { - testClass = new TestClass(); - }); - - it('should get accurate pattern for schemas', async () => { - const schemas = getSchemas(); - - expect(schemas).toMatchObject({ - TestClass: { - properties: { - property: { - pattern: /(\d+)?d(\d+)([+-]\d+)?/, - type: 'string', - }, - }, - type: 'object', - required: ['property'], - }, - }); - }); -}); diff --git a/libraries/faker-factory/src/get-schemas.ts b/libraries/faker-factory/src/get-schemas.ts deleted file mode 100644 index 9ade1f64e..000000000 --- a/libraries/faker-factory/src/get-schemas.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { validationMetadatasToSchemas } from 'class-validator-jsonschema'; -import { SchemaObject } from 'openapi3-ts'; - -export function getSchemas(): Record { - return validationMetadatasToSchemas(); -}