validate-yaml/__tests__/main.test.ts
2021-10-01 00:17:49 -07:00

9 lines
301 B
TypeScript

import {validateYAML} from '../src/validate'
import {expect, test} from '@jest/globals'
test('valid yaml files', async () => {
const files: string[] = ['__tests__/valid.yaml']
const schemaPath: string = '__tests__/schema.json'
await expect(validateYAML(files, schemaPath)).resolves.toBe(0)
})