@@ -814,7 +814,7 @@ use schemars::JsonSchema;
814814use serde:: Serialize ;
815815
816816/// Serializable gate specification — the JSON document consumed by the
817- /// Node gate evaluator (`scripts/gate.js`) at pipeline runtime.
817+ /// Node gate evaluator (`scripts/ado-script/dist/ gate/index .js`) at pipeline runtime.
818818#[ derive( Debug , Clone , Serialize , JsonSchema ) ]
819819pub struct GateSpec {
820820 pub context : GateContextSpec ,
@@ -1519,7 +1519,7 @@ mod tests {
15191519 let result = compile_gate_step_external (
15201520 GateContext :: PullRequest ,
15211521 & [ ] ,
1522- "/tmp/ado-aw-scripts/gate.js" ,
1522+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
15231523 )
15241524 . unwrap ( ) ;
15251525 assert ! ( result. is_empty( ) ) ;
@@ -1538,7 +1538,7 @@ mod tests {
15381538 let result = compile_gate_step_external (
15391539 GateContext :: PullRequest ,
15401540 & checks,
1541- "/tmp/ado-aw-scripts/gate.js" ,
1541+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
15421542 )
15431543 . unwrap ( ) ;
15441544 assert ! ( result. contains( "- bash:" ) , "should be a bash step" ) ;
@@ -1547,7 +1547,7 @@ mod tests {
15471547 "should include base64 spec in env"
15481548 ) ;
15491549 assert ! (
1550- result. contains( "node '/tmp/ado-aw-scripts/gate.js'" ) ,
1550+ result. contains( "node '/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js'" ) ,
15511551 "should reference external evaluator script"
15521552 ) ;
15531553 assert ! ( result. contains( "name: prGate" ) , "should set step name" ) ;
@@ -1570,7 +1570,7 @@ mod tests {
15701570 let result = compile_gate_step_external (
15711571 GateContext :: PullRequest ,
15721572 & checks,
1573- "/tmp/ado-aw-scripts/gate.js" ,
1573+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
15741574 )
15751575 . unwrap ( ) ;
15761576 assert ! (
@@ -1597,7 +1597,7 @@ mod tests {
15971597 let result = compile_gate_step_external (
15981598 GateContext :: PipelineCompletion ,
15991599 & checks,
1600- "/tmp/ado-aw-scripts/gate.js" ,
1600+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
16011601 )
16021602 . unwrap ( ) ;
16031603 assert ! (
@@ -1627,7 +1627,7 @@ mod tests {
16271627 let result = compile_gate_step_external (
16281628 GateContext :: PullRequest ,
16291629 & checks,
1630- "/tmp/ado-aw-scripts/gate.js" ,
1630+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
16311631 )
16321632 . unwrap ( ) ;
16331633 assert ! (
@@ -1653,7 +1653,7 @@ mod tests {
16531653 let result = compile_gate_step_external (
16541654 GateContext :: PullRequest ,
16551655 & checks,
1656- "/tmp/ado-aw-scripts/gate.js" ,
1656+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
16571657 )
16581658 . unwrap ( ) ;
16591659 // Check export lines only (evaluator script always contains these strings)
@@ -1746,7 +1746,7 @@ mod tests {
17461746 let step = compile_gate_step_external (
17471747 GateContext :: PullRequest ,
17481748 & checks,
1749- "/tmp/ado-aw-scripts/gate.js" ,
1749+ "/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js" ,
17501750 )
17511751 . unwrap ( ) ;
17521752 // Step structure
0 commit comments