Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae86acc

Browse files
committed
(deps): use jest-without-globals to import jest globals
- no more globals used in tests!- also seems like we don't need @types/jest here, jest's internal types seem to be enough for our usage - and now that we're importing the globals, we don't need to reference any types ourselves
1 parentebddd6a commitae86acc

File tree

4 files changed

+9
-65
lines changed

4 files changed

+9
-65
lines changed

‎package-lock.json‎

Lines changed: 6 additions & 62 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"dependencies": {},
4141
"devDependencies": {
4242
"@agilgur5/changelog-maker":"^3.0.0",
43-
"@types/jest":"^24.0.23",
43+
"jest-without-globals":"^0.0.2",
4444
"mobx":"^5.11.0",
4545
"mobx-state-tree":"^3.14.0",
4646
"tsdx":"github:agilgur5/tsdx#dist",

‎test/index.node.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
// add tests in this file that are specific to node (vs. jsdom)
55

6-
/// <reference types="@types/jest" />
6+
import{describe,it,expect}from'jest-without-globals'
77

88
import{persist}from'../src/index'
99
import{UserStoreF}from'./fixtures'

‎test/index.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference types="@types/jest" />
1+
import{describe,it,expect,beforeEach}from'jest-without-globals'
22
import{getSnapshot}from'mobx-state-tree'
33

44
import{persist}from'../src/index'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp