Skip to content

Commit 6bf7782

Browse files
committed
test: update npm package test
1 parent 4993fde commit 6bf7782

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/packages/npm.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ test("npm@11.4.0", async () => {
66
await getPackageApi({
77
pkg: "npm@11.4.0",
88
}),
9-
).rejects.toThrow();
9+
).toMatchSnapshot({
10+
analyzedAt: expect.any(String),
11+
analyzedIn: expect.any(Number),
12+
dependencies: expect.any(Array),
13+
});
1014
});
1115

1216
test("@types/npm@7.19.3", async () => {

0 commit comments

Comments
 (0)