-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
chore: replace @types/jest with a new private @jest/test-globals package
#13344
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
Changes from 10 commits
e88b376
dac1388
fa584ca
eb97554
377d18d
65b31f0
3aaa602
04b951d
46af508
4811560
570a953
2d60a2b
6cb1488
0fa510d
dcd66d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,8 @@ | ||
| { | ||
| "extends": "../tsconfig.json", | ||
| "compilerOptions": { | ||
| "noEmit": true, | ||
|
|
||
| "target": "es2017", | ||
| "module": "commonjs", | ||
| "lib": ["dom", "es2017"], | ||
| "strict": true, | ||
|
|
||
| /* Additional Checks */ | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
|
|
||
| /* Module Resolution Options */ | ||
| "moduleResolution": "node", | ||
| "isolatedModules": true, | ||
| "importsNotUsedAsValues": "error", | ||
| "resolveJsonModule": true | ||
| } | ||
| "composite": false, | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ | |
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| /// <reference lib="dom" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. really? how? it's running in node env, so shouldn't need or use any DOM APIs
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is odd one. And it is used to type I added
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, for rAF it makes sense 👍 |
||
|
|
||
| import * as util from 'util'; | ||
| import {runInNewContext} from 'vm'; | ||
| import {ModuleMocker} from 'jest-mock'; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "extends": "../../../../../tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "rootDir": "../", | ||
| "types": ["@jest/test-globals"] | ||
| }, | ||
| "include": ["../**/*"] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.