@depup/jest-circus 30.3.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,200 @@
1
+ /*!
2
+ * /**
3
+ * * Copyright (c) Meta Platforms, Inc. and affiliates.
4
+ * *
5
+ * * This source code is licensed under the MIT license found in the
6
+ * * LICENSE file in the root directory of this source tree.
7
+ * * /
8
+ */
9
+ /******/ (() => { // webpackBootstrap
10
+ /******/ "use strict";
11
+ /******/ var __webpack_modules__ = ({
12
+
13
+ /***/ "./src/legacy-code-todo-rewrite/jestAdapter.ts"
14
+ (__unused_webpack_module, exports) {
15
+
16
+
17
+
18
+ Object.defineProperty(exports, "__esModule", ({
19
+ value: true
20
+ }));
21
+ exports["default"] = void 0;
22
+ var _jestUtil = require("jest-util");
23
+ var Symbol = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
24
+ var Symbol = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
25
+ var jestNow = globalThis[Symbol.for('jest-native-now')] || globalThis.Date.now;
26
+ /**
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+ const FRAMEWORK_INITIALIZER = require.resolve('./jestAdapterInit');
33
+ const jestAdapter = async (globalConfig, config, environment, runtime, testPath, sendMessageToJest) => {
34
+ const {
35
+ initialize,
36
+ runAndTransformResultsToJestFormat
37
+ } = runtime.requireInternalModule(FRAMEWORK_INITIALIZER);
38
+ const {
39
+ globals,
40
+ snapshotState
41
+ } = await initialize({
42
+ config,
43
+ environment,
44
+ globalConfig,
45
+ localRequire: runtime.requireModule.bind(runtime),
46
+ parentProcess: process,
47
+ runtime,
48
+ sendMessageToJest,
49
+ setGlobalsForRuntime: runtime.setGlobalsForRuntime.bind(runtime),
50
+ testPath
51
+ });
52
+ if (config.fakeTimers.enableGlobally) {
53
+ if (config.fakeTimers.legacyFakeTimers) {
54
+ // during setup, this cannot be null (and it's fine to explode if it is)
55
+ environment.fakeTimers.useFakeTimers();
56
+ } else {
57
+ environment.fakeTimersModern.useFakeTimers();
58
+ }
59
+ }
60
+ globals.beforeEach(() => {
61
+ if (config.resetModules) {
62
+ runtime.resetModules();
63
+ }
64
+ if (config.clearMocks) {
65
+ runtime.clearAllMocks();
66
+ }
67
+ if (config.resetMocks) {
68
+ runtime.resetAllMocks();
69
+ if (config.fakeTimers.enableGlobally && config.fakeTimers.legacyFakeTimers) {
70
+ // during setup, this cannot be null (and it's fine to explode if it is)
71
+ environment.fakeTimers.useFakeTimers();
72
+ }
73
+ }
74
+ if (config.restoreMocks) {
75
+ runtime.restoreAllMocks();
76
+ }
77
+ });
78
+ const setupAfterEnvStart = jestNow();
79
+ for (const path of config.setupFilesAfterEnv) {
80
+ const esm = runtime.unstable_shouldLoadAsEsm(path);
81
+ if (esm) {
82
+ await runtime.unstable_importModule(path);
83
+ } else {
84
+ const setupFile = runtime.requireModule(path);
85
+ if (typeof setupFile === 'function') {
86
+ await setupFile();
87
+ }
88
+ }
89
+ }
90
+ const setupAfterEnvEnd = jestNow();
91
+ const esm = runtime.unstable_shouldLoadAsEsm(testPath);
92
+ if (esm) {
93
+ await runtime.unstable_importModule(testPath);
94
+ } else {
95
+ runtime.requireModule(testPath);
96
+ }
97
+ const setupAfterEnvPerfStats = {
98
+ setupAfterEnvEnd,
99
+ setupAfterEnvStart
100
+ };
101
+ const results = await runAndTransformResultsToJestFormat({
102
+ config,
103
+ globalConfig,
104
+ setupAfterEnvPerfStats,
105
+ testPath
106
+ });
107
+ _addSnapshotData(results, snapshotState);
108
+
109
+ // We need to copy the results object to ensure we don't leaks the prototypes
110
+ // from the VM. Jasmine creates the result objects in the parent process, we
111
+ // should consider doing that for circus as well.
112
+ return (0, _jestUtil.deepCyclicCopy)(results, {
113
+ keepPrototype: false
114
+ });
115
+ };
116
+ const _addSnapshotData = (results, snapshotState) => {
117
+ for (const {
118
+ fullName,
119
+ status,
120
+ failing
121
+ } of results.testResults) {
122
+ if (status === 'pending' || status === 'failed' || failing && status === 'passed') {
123
+ // If test is skipped or failed, we don't want to mark
124
+ // its snapshots as obsolete.
125
+ // When tests called with test.failing pass, they've thrown an exception,
126
+ // so maintain any snapshots after the error.
127
+ snapshotState.markSnapshotsAsCheckedForTest(fullName);
128
+ }
129
+ }
130
+ const uncheckedCount = snapshotState.getUncheckedCount();
131
+ const uncheckedKeys = snapshotState.getUncheckedKeys();
132
+ if (uncheckedCount) {
133
+ snapshotState.removeUncheckedKeys();
134
+ }
135
+ const status = snapshotState.save();
136
+ results.snapshot.fileDeleted = status.deleted;
137
+ results.snapshot.added = snapshotState.added;
138
+ results.snapshot.matched = snapshotState.matched;
139
+ results.snapshot.unmatched = snapshotState.unmatched;
140
+ results.snapshot.updated = snapshotState.updated;
141
+ results.snapshot.unchecked = status.deleted ? 0 : uncheckedCount;
142
+ // Copy the array to prevent memory leaks
143
+ results.snapshot.uncheckedKeys = [...uncheckedKeys];
144
+ };
145
+ var _default = exports["default"] = jestAdapter;
146
+
147
+ /***/ }
148
+
149
+ /******/ });
150
+ /************************************************************************/
151
+ /******/ // The module cache
152
+ /******/ var __webpack_module_cache__ = {};
153
+ /******/
154
+ /******/ // The require function
155
+ /******/ function __webpack_require__(moduleId) {
156
+ /******/ // Check if module is in cache
157
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
158
+ /******/ if (cachedModule !== undefined) {
159
+ /******/ return cachedModule.exports;
160
+ /******/ }
161
+ /******/ // Create a new module (and put it into the cache)
162
+ /******/ var module = __webpack_module_cache__[moduleId] = {
163
+ /******/ // no module.id needed
164
+ /******/ // no module.loaded needed
165
+ /******/ exports: {}
166
+ /******/ };
167
+ /******/
168
+ /******/ // Execute the module function
169
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
170
+ /******/
171
+ /******/ // Return the exports of the module
172
+ /******/ return module.exports;
173
+ /******/ }
174
+ /******/
175
+ /************************************************************************/
176
+ var __webpack_exports__ = {};
177
+ // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
178
+ (() => {
179
+ var exports = __webpack_exports__;
180
+
181
+
182
+ Object.defineProperty(exports, "__esModule", ({
183
+ value: true
184
+ }));
185
+ exports["default"] = void 0;
186
+ var _jestAdapter = _interopRequireDefault(__webpack_require__("./src/legacy-code-todo-rewrite/jestAdapter.ts"));
187
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
188
+ /**
189
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
190
+ *
191
+ * This source code is licensed under the MIT license found in the
192
+ * LICENSE file in the root directory of this source tree.
193
+ */
194
+ // Allow people to use `jest-circus/runner` as a runner.
195
+ var _default = exports["default"] = _jestAdapter.default;
196
+ })();
197
+
198
+ module.exports = __webpack_exports__;
199
+ /******/ })()
200
+ ;
package/changes.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "bumped": {
3
+ "chalk": {
4
+ "from": "^4.1.2",
5
+ "to": "^5.6.2"
6
+ },
7
+ "dedent": {
8
+ "from": "^1.6.0",
9
+ "to": "^1.7.2"
10
+ },
11
+ "is-generator-fn": {
12
+ "from": "^2.1.0",
13
+ "to": "^3.0.0"
14
+ },
15
+ "p-limit": {
16
+ "from": "^3.1.0",
17
+ "to": "^7.3.0"
18
+ },
19
+ "pure-rand": {
20
+ "from": "^7.0.0",
21
+ "to": "^8.2.0"
22
+ },
23
+ "slash": {
24
+ "from": "^3.0.0",
25
+ "to": "^5.1.0"
26
+ }
27
+ },
28
+ "timestamp": "2026-03-17T16:37:07.212Z",
29
+ "totalUpdated": 6
30
+ }
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@depup/jest-circus",
3
+ "version": "30.3.0-depup.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/jestjs/jest.git",
7
+ "directory": "packages/jest-circus"
8
+ },
9
+ "license": "MIT",
10
+ "main": "./build/index.js",
11
+ "types": "./build/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./build/index.d.ts",
15
+ "require": "./build/index.js",
16
+ "import": "./build/index.mjs",
17
+ "default": "./build/index.js"
18
+ },
19
+ "./package.json": "./package.json",
20
+ "./runner": "./build/runner.js"
21
+ },
22
+ "dependencies": {
23
+ "@jest/environment": "30.3.0",
24
+ "@jest/expect": "30.3.0",
25
+ "@jest/test-result": "30.3.0",
26
+ "@jest/types": "30.3.0",
27
+ "@types/node": "*",
28
+ "chalk": "^5.6.2",
29
+ "co": "^4.6.0",
30
+ "dedent": "^1.7.2",
31
+ "is-generator-fn": "^3.0.0",
32
+ "jest-each": "30.3.0",
33
+ "jest-matcher-utils": "30.3.0",
34
+ "jest-message-util": "30.3.0",
35
+ "jest-runtime": "30.3.0",
36
+ "jest-snapshot": "30.3.0",
37
+ "jest-util": "30.3.0",
38
+ "p-limit": "^7.3.0",
39
+ "pretty-format": "30.3.0",
40
+ "pure-rand": "^8.2.0",
41
+ "slash": "^5.1.0",
42
+ "stack-utils": "^2.0.6"
43
+ },
44
+ "devDependencies": {
45
+ "@babel/core": "^7.27.4",
46
+ "@babel/register": "^7.27.1",
47
+ "@types/co": "^4.6.6",
48
+ "@types/graceful-fs": "^4.1.9",
49
+ "@types/stack-utils": "^2.0.3",
50
+ "execa": "^5.1.1",
51
+ "graceful-fs": "^4.2.11",
52
+ "tempy": "^1.0.1"
53
+ },
54
+ "engines": {
55
+ "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
56
+ },
57
+ "gitHead": "efb59c2e81083f8dc941f20d6d20a3af2dc8d068",
58
+ "description": "[DepUp] Dependency-bumped version of jest-circus",
59
+ "keywords": [
60
+ "depup",
61
+ "dependency-bumped",
62
+ "updated-deps",
63
+ "jest-circus"
64
+ ],
65
+ "depup": {
66
+ "changes": {
67
+ "chalk": {
68
+ "from": "^4.1.2",
69
+ "to": "^5.6.2"
70
+ },
71
+ "dedent": {
72
+ "from": "^1.6.0",
73
+ "to": "^1.7.2"
74
+ },
75
+ "is-generator-fn": {
76
+ "from": "^2.1.0",
77
+ "to": "^3.0.0"
78
+ },
79
+ "p-limit": {
80
+ "from": "^3.1.0",
81
+ "to": "^7.3.0"
82
+ },
83
+ "pure-rand": {
84
+ "from": "^7.0.0",
85
+ "to": "^8.2.0"
86
+ },
87
+ "slash": {
88
+ "from": "^3.0.0",
89
+ "to": "^5.1.0"
90
+ }
91
+ },
92
+ "depsUpdated": 6,
93
+ "originalPackage": "jest-circus",
94
+ "originalVersion": "30.3.0",
95
+ "processedAt": "2026-03-17T16:37:14.724Z",
96
+ "smokeTest": "failed"
97
+ }
98
+ }