import _Ajv from "./ajv" ; import getAjvInstances from "./ajv_instances" ; import { withStandalone } from "./ajv_standalone" ; import jsonSchemaTest = require ( "json-schema-test" ) ; import options from "./ajv_options" ; import { afterError , afterEach } from "./after_test" ; import chai from "./chai" ; const instances = getAjvInstances ( _Ajv , options , { schemas : [ require ( "../dist/refs/json-schema-secure.json" ) ] , strictTypes : false , } ) ; instances . forEach ( ( ajv ) => ( ajv . opts . code . source = true ) ) ; jsonSchemaTest ( withStandalone ( instances ) , { description : "Secure schemas tests of " + instances . length + " ajv instances with different options" , suites : { security : require ( "./_json/security" ) } , assert : chai . assert , afterError , afterEach , cwd : __dirname , hideFolder : "security/" , } ) ;