Skip to content

Commit 8a62fc2

Browse files
authored
net - chore: upgrading vitest to 4.0.4 (#1426)
1 parent 0ebbf6a commit 8a62fc2

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

packages/net/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"@faker-js/faker": "^10.1.0",
3434
"@types/http-cache-semantics": "^4.0.4",
3535
"@types/node": "^24.9.1",
36-
"@vitest/coverage-v8": "^4.0.3",
36+
"@vitest/coverage-v8": "^4.0.4",
3737
"rimraf": "^6.0.1",
3838
"tsup": "^8.5.0",
3939
"typescript": "^5.9.3",
40-
"vitest": "^4.0.3"
40+
"vitest": "^4.0.4"
4141
},
4242
"dependencies": {
4343
"cacheable": "workspace:^",

packages/net/test/index.test.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,20 @@ describe("Cacheable Net", () => {
6060
expect(net.cache).toBe(newCache);
6161
});
6262

63-
test("should fetch data using fetch method", async () => {
64-
const cache = new Cacheable();
65-
const url = `${testUrl}/get`;
66-
const options: FetchOptions = {
67-
method: "GET",
68-
cache,
69-
};
70-
const response = await fetch(url, options);
71-
expect(response).toBeDefined();
72-
});
63+
test(
64+
"should fetch data using fetch method",
65+
async () => {
66+
const cache = new Cacheable();
67+
const url = `${testUrl}/get`;
68+
const options: FetchOptions = {
69+
method: "GET",
70+
cache,
71+
};
72+
const response = await fetch(url, options);
73+
expect(response).toBeDefined();
74+
},
75+
testTimeout,
76+
);
7377

7478
test(
7579
"should fetch data using CacheableNet fetch method",

0 commit comments

Comments
 (0)