You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
Summary:
Error message format1.test is not a function is thrown when assertSchema with a custom format. So could you please help me to check if there is an issue with this or it is a bug? I am using Cypress with JavaScript
Create an index.ts file under formats folder as below:
// single custom format
import { CustomFormat, CustomFormats } from '@cypress/schema-tools'
const uuid: CustomFormat = {
name: 'uuid', // the name
description: 'GUID used through the system',
// regular expression to use to validate value
detect: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
}
// export all custom formats, in our case just 1
export const formats: CustomFormats = { uuid }
Summary:
Error message
format1.test is not a function
is thrown whenassertSchema
with a custom format. So could you please help me to check if there is an issue with this or it is a bug? I am using Cypress with JavaScriptEnvironment:
Cypress: 8.7.0
@cypress/schema-tools: 4.7.8
ts-node: 5.0.1,
typescript: 4.4.3
Steps to Reproduce
index.ts
file underformats
folder as below:temp-response-schema.ts
as belowActual Result:
format1.test is not a function
. Please find following capture for the errorThe text was updated successfully, but these errors were encountered: