Skip to content

Commit 8b0f62d

Browse files
committed
No @jest/globals
1 parent 1f536f8 commit 8b0f62d

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@
3939
},
4040
"homepage": "https://github.com/graphile/jest-time-helpers#readme",
4141
"peerDependencies": {
42-
"@jest/globals": "^30.2.0"
42+
"jest": ">=22 <30"
4343
},
4444
"devDependencies": {
4545
"@tsconfig/node20": "^20.1.9",
46+
"@types/jest": "^30.0.0",
4647
"@types/node": "^14.14.21",
4748
"@types/sinonjs__fake-timers": "^15.0.1",
4849
"@typescript-eslint/eslint-plugin": "^4.13.0",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { jest, afterEach, beforeEach } from "@jest/globals";
21
import * as assert from "assert";
32
import * as util from "util";
43
import type { Clock } from "@sinonjs/fake-timers";

yarn.lock

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -750,13 +750,6 @@
750750
dependencies:
751751
"@sinonjs/commons" "^3.0.1"
752752

753-
"@sinonjs/fake-timers@^15.1.0":
754-
version "15.1.0"
755-
resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-15.1.0.tgz#f42e713425d4eb1a7bc88ef5d7f76c4546586c25"
756-
integrity sha512-cqfapCxwTGsrR80FEgOoPsTonoefMBY7dnUEbQ+GRcved0jvkJLzvX6F4WtN+HBqbPX/SiFsIRUp+IrCW/2I2w==
757-
dependencies:
758-
"@sinonjs/commons" "^3.0.1"
759-
760753
"@tsconfig/node20@^20.1.9":
761754
version "20.1.9"
762755
resolved "https://registry.yarnpkg.com/@tsconfig/node20/-/node20-20.1.9.tgz#29716bc9ce538f0e5b5fea30b6481a0b0b7955df"
@@ -826,6 +819,14 @@
826819
dependencies:
827820
"@types/istanbul-lib-report" "*"
828821

822+
"@types/jest@^30.0.0":
823+
version "30.0.0"
824+
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-30.0.0.tgz#5e85ae568006712e4ad66f25433e9bdac8801f1d"
825+
integrity sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==
826+
dependencies:
827+
expect "^30.0.0"
828+
pretty-format "^30.0.0"
829+
829830
"@types/json-schema@^7.0.3":
830831
version "7.0.6"
831832
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"
@@ -1901,7 +1902,7 @@ exit-x@^0.2.2:
19011902
resolved "https://registry.yarnpkg.com/exit-x/-/exit-x-0.2.2.tgz#1f9052de3b8d99a696b10dad5bced9bdd5c3aa64"
19021903
integrity sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==
19031904

1904-
expect@30.2.0:
1905+
expect@30.2.0, expect@^30.0.0:
19051906
version "30.2.0"
19061907
resolved "https://registry.yarnpkg.com/expect/-/expect-30.2.0.tgz#d4013bed267013c14bc1199cec8aa57cee9b5869"
19071908
integrity sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==
@@ -3336,7 +3337,7 @@ prettier@^2.2.1:
33363337
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
33373338
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
33383339

3339-
pretty-format@30.2.0:
3340+
pretty-format@30.2.0, pretty-format@^30.0.0:
33403341
version "30.2.0"
33413342
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-30.2.0.tgz#2d44fe6134529aed18506f6d11509d8a62775ebe"
33423343
integrity sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==

0 commit comments

Comments
 (0)