Skip to content

Commit

Permalink
add cross-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Feb 9, 2024
1 parent 42f048d commit ccf1e07
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/create-signed-fetcher.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it, vi } from "vitest";
import { createSignedFetcher } from "../create-signed-fetcher";
import { createSignedFetcher } from "../create-signed-fetcher.js";

describe("createSignedFetcher", () => {
it("should create a signed fetcher", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/get-fetch.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { getFetchFn } from "../get-fetch";
import { getFetchFn } from "../get-fetch.js";

describe("getFetchFn", () => {
// Set up a global fetch mock
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/get-headers.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "cross-fetch/polyfill";
import { describe, expect, it } from "vitest";
import { getHeaders } from "../get-headers";
import { getHeaders } from "../get-headers.js";

describe("getHeaders", () => {
it("should return an empty Map if no arguments are provided", () => {
Expand Down
1 change: 1 addition & 0 deletions test/commonjs/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "cross-fetch/polyfill";
import { expect, test } from "vitest";
import { createSignedFetcher } from "../../dist/index.cjs";

Expand Down
1 change: 1 addition & 0 deletions test/esm/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "cross-fetch/polyfill";
import { expect, it } from "vitest";
import { createSignedFetcher } from "../../dist/index.js";

Expand Down

0 comments on commit ccf1e07

Please sign in to comment.