File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
testdata/tarballs/graph_error Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1308,6 +1308,16 @@ pub mod tests {
1308
1308
assert_eq ! ( task. status, PublishingTaskStatus :: Success , "{task:#?}" ) ;
1309
1309
}
1310
1310
1311
+ #[ tokio:: test]
1312
+ async fn graph_error ( ) {
1313
+ let t = TestSetup :: new ( ) . await ;
1314
+ let bytes = create_mock_tarball ( "graph_error" ) ;
1315
+ let task = process_tarball_setup ( & t, bytes) . await ;
1316
+ assert_eq ! ( task. status, PublishingTaskStatus :: Failure , "{task:#?}" ) ;
1317
+ let error = task. error . unwrap ( ) ;
1318
+ assert_eq ! ( error. code, "graphError" ) ;
1319
+ }
1320
+
1311
1321
#[ tokio:: test]
1312
1322
async fn npm_tarball ( ) {
1313
1323
let t = TestSetup :: new ( ) . await ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @scope/foo" ,
3
+ "version" : " 1.2.3" ,
4
+ "exports" : " ./mod.ts"
5
+ }
Original file line number Diff line number Diff line change
1
+ import { test } from "./other.cjs" ; // bad
2
+
3
+ export const hello = `Hello, ${ test } !` ;
Original file line number Diff line number Diff line change
1
+ exports . test = "test" ;
You can’t perform that action at this time.
0 commit comments