Skip to content

Commit f476c64

Browse files
committed
chore: re-introduce updated e2e test
1 parent 68db9e1 commit f476c64

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

api/src/publish.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,16 @@ pub mod tests {
13081308
assert_eq!(task.status, PublishingTaskStatus::Success, "{task:#?}");
13091309
}
13101310

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+
13111321
#[tokio::test]
13121322
async fn npm_tarball() {
13131323
let t = TestSetup::new().await;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "@scope/foo",
3+
"version": "1.2.3",
4+
"exports": "./mod.ts"
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { test } from "./other.cjs"; // bad
2+
3+
export const hello = `Hello, ${test}!`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports.test = "test";

0 commit comments

Comments
 (0)