@@ -724,16 +724,19 @@ describe("qa suite", () => {
724724 } ;
725725 } ;
726726 const capabilityMatrixPath = summary . run ?. channelCapabilityMatrixPath ;
727- const smokeArtifactPath = summary . run ?. channelDriverSmokePath ;
728- if ( typeof capabilityMatrixPath !== "string" || typeof smokeArtifactPath !== "string" ) {
727+ const providerReadinessArtifactPath = summary . run ?. channelDriverSmokePath ;
728+ if (
729+ typeof capabilityMatrixPath !== "string" ||
730+ typeof providerReadinessArtifactPath !== "string"
731+ ) {
729732 throw new Error ( "Crabline generation artifact paths missing from QA summary." ) ;
730733 }
731734 const artifactGenerationDirectory = path . dirname ( capabilityMatrixPath ) ;
732735 expect ( path . dirname ( artifactGenerationDirectory ) ) . toBe ( ".crabline-channel-driver-artifacts" ) ;
733736 expect ( path . basename ( artifactGenerationDirectory ) ) . toMatch ( / ^ g e n e r a t i o n - [ ^ / \\ ] + $ / u) ;
734737 expect ( path . basename ( capabilityMatrixPath ) ) . toBe ( "crabline-channel-driver-capabilities.json" ) ;
735- expect ( path . dirname ( smokeArtifactPath ) ) . toBe ( artifactGenerationDirectory ) ;
736- expect ( path . basename ( smokeArtifactPath ) ) . toBe ( "crabline-provider-readiness.json" ) ;
738+ expect ( path . dirname ( providerReadinessArtifactPath ) ) . toBe ( artifactGenerationDirectory ) ;
739+ expect ( path . basename ( providerReadinessArtifactPath ) ) . toBe ( "crabline-provider-readiness.json" ) ;
737740 await expect (
738741 fs . access ( path . join ( outputDir , "crabline-channel-driver-capabilities.json" ) ) ,
739742 ) . rejects . toMatchObject ( { code : "ENOENT" } ) ;
@@ -749,10 +752,13 @@ describe("qa suite", () => {
749752 expect ( matrix . report ?. result ?. supportedChannels ?. toSorted ( ) ) . toEqual (
750753 [ ...CRABLINE_SERVER_CHANNELS ] . toSorted ( ) ,
751754 ) ;
752- const smoke = JSON . parse (
753- await fs . readFile ( path . resolve ( outputDir , smokeArtifactPath ) , "utf8" ) ,
755+ const readiness = JSON . parse (
756+ await fs . readFile ( path . resolve ( outputDir , providerReadinessArtifactPath ) , "utf8" ) ,
754757 ) as { providerReadiness ?: { result ?: { ok ?: boolean ; provider ?: string } } } ;
755- expect ( smoke . providerReadiness ?. result ) . toMatchObject ( { ok : true , provider : "telegram" } ) ;
758+ expect ( readiness . providerReadiness ?. result ) . toMatchObject ( {
759+ ok : true ,
760+ provider : "telegram" ,
761+ } ) ;
756762 const evidence = JSON . parse ( await fs . readFile ( artifacts . evidencePath , "utf8" ) ) as {
757763 entries ?: Array < {
758764 execution ?: {
@@ -765,7 +771,11 @@ describe("qa suite", () => {
765771 expect ( evidence . entries ?. [ 0 ] ?. execution ?. artifacts ) . toEqual (
766772 expect . arrayContaining ( [
767773 { kind : "channel-capability-matrix" , path : capabilityMatrixPath , source : "qa-suite" } ,
768- { kind : "channel-driver-smoke" , path : smokeArtifactPath , source : "qa-suite" } ,
774+ {
775+ kind : "channel-driver-smoke" ,
776+ path : providerReadinessArtifactPath ,
777+ source : "qa-suite" ,
778+ } ,
769779 ] ) ,
770780 ) ;
771781 expect ( evidence . entries ?. [ 0 ] ?. execution ?. channel ) . toMatchObject ( {
0 commit comments