Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to new major version 26 of Jest #81

Merged
merged 2 commits into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1,800 changes: 998 additions & 802 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"@typescript-eslint/parser": "^2.34.0",
"eslint": "^7.1.0",
"husky": "^4.2.5",
"jest": "^25.5.4",
"jest": "^26.0.1",
"lint-staged": "^10.2.6",
"prettier": "2.0.5",
"rdf-namespaces": "^1.8.0",
"rollup": "^2.10.9",
"rollup-plugin-typescript2": "^0.27.1",
"ts-jest": "^25.5.1",
"ts-jest": "^26.0.0",
"typescript": "^3.9.3"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/datatypes.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it, expect } from "@jest/globals";
import { DataFactory } from "n3";
import { LocalNode } from "./index";
import {
Expand Down
6 changes: 5 additions & 1 deletion src/fetcher.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { it, expect } from "@jest/globals";
jest.mock("cross-fetch");

import { fetch } from "./fetcher";

it("should fallback to cross-fetch if no Solid-specific fetcher is available", async () => {
const crossFetch = jest.requireMock("cross-fetch");
const crossFetch = jest.requireMock("cross-fetch") as jest.Mock<
ReturnType<typeof window.fetch>,
[RequestInfo, RequestInit]
>;

await fetch("https://some.url");

Expand Down