()
| 113 | } |
| 114 | |
| 115 | envGlobals(): EnvironmentGlobals { |
| 116 | if (this.envGlobalsOverride) { |
| 117 | return {...this.envGlobalsOverride}; |
| 118 | } |
| 119 | let cached = this.cachedEnvGlobals; |
| 120 | if (cached === undefined) { |
| 121 | cached = { |
| 122 | afterAll: this.environment.global.afterAll, |
| 123 | afterEach: this.environment.global.afterEach, |
| 124 | beforeAll: this.environment.global.beforeAll, |
| 125 | beforeEach: this.environment.global.beforeEach, |
| 126 | describe: this.environment.global.describe, |
| 127 | expect: this.environment.global.expect as typeof expect, |
| 128 | fdescribe: this.environment.global.fdescribe, |
| 129 | fit: this.environment.global.fit, |
| 130 | it: this.environment.global.it, |
| 131 | test: this.environment.global.test, |
| 132 | xdescribe: this.environment.global.xdescribe, |
| 133 | xit: this.environment.global.xit, |
| 134 | xtest: this.environment.global.xtest, |
| 135 | }; |
| 136 | this.cachedEnvGlobals = cached; |
| 137 | } |
| 138 | return {...cached}; |
| 139 | } |
| 140 | |
| 141 | cjsGlobals(from: string): JestGlobalsWithJest { |
| 142 | return {...this.envGlobals(), jest: this.jestObjectFor(from)}; |
no outgoing calls
no test coverage detected