@procore/hammer-test-jest 0.4.0 → 0.5.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.
- package/dist/transforms/file.test.js +61 -48
- package/dist/transforms/file.test.mjs +61 -48
- package/dist/transforms/reactSvg.test.js +61 -48
- package/dist/transforms/reactSvg.test.mjs +61 -48
- package/package.json +11 -11
|
@@ -8817,6 +8817,8 @@ function serializeError(val, seen = /* @__PURE__ */ new WeakMap()) {
|
|
|
8817
8817
|
return val.tagName;
|
|
8818
8818
|
if (typeof val.asymmetricMatch === "function")
|
|
8819
8819
|
return `${val.toString()} ${format(val.sample)}`;
|
|
8820
|
+
if (typeof val.toJSON === "function")
|
|
8821
|
+
return val.toJSON();
|
|
8820
8822
|
if (seen.has(val))
|
|
8821
8823
|
return seen.get(val);
|
|
8822
8824
|
if (Array.isArray(val)) {
|
|
@@ -9549,8 +9551,8 @@ var collectorContext = {
|
|
|
9549
9551
|
currentSuite: null
|
|
9550
9552
|
};
|
|
9551
9553
|
function collectTask(task) {
|
|
9552
|
-
var
|
|
9553
|
-
(
|
|
9554
|
+
var _a;
|
|
9555
|
+
(_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);
|
|
9554
9556
|
}
|
|
9555
9557
|
async function runWithSuite(suite2, fn2) {
|
|
9556
9558
|
const prev = collectorContext.currentSuite;
|
|
@@ -9564,17 +9566,17 @@ function withTimeout(fn2, timeout, isHook = false) {
|
|
|
9564
9566
|
const { setTimeout, clearTimeout } = getSafeTimers();
|
|
9565
9567
|
return (...args) => {
|
|
9566
9568
|
return Promise.race([fn2(...args), new Promise((resolve3, reject) => {
|
|
9567
|
-
var
|
|
9569
|
+
var _a;
|
|
9568
9570
|
const timer = setTimeout(() => {
|
|
9569
9571
|
clearTimeout(timer);
|
|
9570
9572
|
reject(new Error(makeTimeoutMsg(isHook, timeout)));
|
|
9571
9573
|
}, timeout);
|
|
9572
|
-
(
|
|
9574
|
+
(_a = timer.unref) == null ? void 0 : _a.call(timer);
|
|
9573
9575
|
})]);
|
|
9574
9576
|
};
|
|
9575
9577
|
}
|
|
9576
9578
|
function createTestContext(test3, runner2) {
|
|
9577
|
-
var
|
|
9579
|
+
var _a;
|
|
9578
9580
|
const context = function() {
|
|
9579
9581
|
throw new Error("done() callback is deprecated, use promise instead");
|
|
9580
9582
|
};
|
|
@@ -9591,7 +9593,7 @@ function createTestContext(test3, runner2) {
|
|
|
9591
9593
|
test3.onFinished || (test3.onFinished = []);
|
|
9592
9594
|
test3.onFinished.push(fn2);
|
|
9593
9595
|
};
|
|
9594
|
-
return ((
|
|
9596
|
+
return ((_a = runner2.extendTaskContext) == null ? void 0 : _a.call(runner2, context)) || context;
|
|
9595
9597
|
}
|
|
9596
9598
|
function makeTimeoutMsg(isHook, timeout) {
|
|
9597
9599
|
return `${isHook ? "Hook" : "Test"} timed out in ${timeout}ms.
|
|
@@ -9952,9 +9954,14 @@ function createSuite() {
|
|
|
9952
9954
|
optionsOrFn,
|
|
9953
9955
|
fnOrOptions
|
|
9954
9956
|
);
|
|
9957
|
+
const fnFirst = typeof optionsOrFn === "function";
|
|
9955
9958
|
cases.forEach((i2, idx) => {
|
|
9956
9959
|
const items = Array.isArray(i2) ? i2 : [i2];
|
|
9957
|
-
|
|
9960
|
+
if (fnFirst) {
|
|
9961
|
+
arrayOnlyCases ? suite2(formatTitle(_name, items, idx), () => handler(...items), options) : suite2(formatTitle(_name, items, idx), () => handler(i2), options);
|
|
9962
|
+
} else {
|
|
9963
|
+
arrayOnlyCases ? suite2(formatTitle(_name, items, idx), options, () => handler(...items)) : suite2(formatTitle(_name, items, idx), options, () => handler(i2));
|
|
9964
|
+
}
|
|
9958
9965
|
});
|
|
9959
9966
|
this.setContext("each", void 0);
|
|
9960
9967
|
};
|
|
@@ -9980,9 +9987,14 @@ function createTaskCollector(fn2, context) {
|
|
|
9980
9987
|
optionsOrFn,
|
|
9981
9988
|
fnOrOptions
|
|
9982
9989
|
);
|
|
9990
|
+
const fnFirst = typeof optionsOrFn === "function";
|
|
9983
9991
|
cases.forEach((i2, idx) => {
|
|
9984
9992
|
const items = Array.isArray(i2) ? i2 : [i2];
|
|
9985
|
-
|
|
9993
|
+
if (fnFirst) {
|
|
9994
|
+
arrayOnlyCases ? test22(formatTitle(_name, items, idx), () => handler(...items), options) : test22(formatTitle(_name, items, idx), () => handler(i2), options);
|
|
9995
|
+
} else {
|
|
9996
|
+
arrayOnlyCases ? test22(formatTitle(_name, items, idx), options, () => handler(...items)) : test22(formatTitle(_name, items, idx), options, () => handler(i2));
|
|
9997
|
+
}
|
|
9986
9998
|
});
|
|
9987
9999
|
this.setContext("each", void 0);
|
|
9988
10000
|
};
|
|
@@ -10024,8 +10036,8 @@ function formatTitle(template, items, idx) {
|
|
|
10024
10036
|
/\$([$\w_.]+)/g,
|
|
10025
10037
|
// https://github.com/chaijs/chai/pull/1490
|
|
10026
10038
|
(_, key) => {
|
|
10027
|
-
var
|
|
10028
|
-
return objDisplay(objectAttr(items[0], key), { truncate: (_b = (
|
|
10039
|
+
var _a, _b;
|
|
10040
|
+
return objDisplay(objectAttr(items[0], key), { truncate: (_b = (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig) == null ? void 0 : _b.truncateThreshold });
|
|
10029
10041
|
}
|
|
10030
10042
|
);
|
|
10031
10043
|
}
|
|
@@ -10094,13 +10106,13 @@ function createTestHook(name, handler) {
|
|
|
10094
10106
|
};
|
|
10095
10107
|
}
|
|
10096
10108
|
|
|
10097
|
-
// ../../node_modules/vitest/dist/vendor/benchmark.
|
|
10109
|
+
// ../../node_modules/vitest/dist/vendor/benchmark.yGkUTKnC.js
|
|
10098
10110
|
init_esm_shims();
|
|
10099
10111
|
|
|
10100
10112
|
// ../../node_modules/@vitest/runner/dist/utils.js
|
|
10101
10113
|
init_esm_shims();
|
|
10102
10114
|
|
|
10103
|
-
// ../../node_modules/vitest/dist/vendor/index.
|
|
10115
|
+
// ../../node_modules/vitest/dist/vendor/index.SMVOaj7F.js
|
|
10104
10116
|
init_esm_shims();
|
|
10105
10117
|
|
|
10106
10118
|
// ../../node_modules/vitest/dist/vendor/global.CkGT_TMy.js
|
|
@@ -10118,10 +10130,7 @@ function getCurrentEnvironment() {
|
|
|
10118
10130
|
return state == null ? void 0 : state.environment.name;
|
|
10119
10131
|
}
|
|
10120
10132
|
|
|
10121
|
-
// ../../node_modules/vitest/dist/vendor/index.
|
|
10122
|
-
var _a;
|
|
10123
|
-
var isNode = typeof process < "u" && typeof process.stdout < "u" && !((_a = process.versions) == null ? void 0 : _a.deno) && !globalThis.window;
|
|
10124
|
-
var isWindows = isNode && process.platform === "win32";
|
|
10133
|
+
// ../../node_modules/vitest/dist/vendor/index.SMVOaj7F.js
|
|
10125
10134
|
function getRunMode() {
|
|
10126
10135
|
return getWorkerState().config.mode;
|
|
10127
10136
|
}
|
|
@@ -10129,7 +10138,7 @@ function isRunningInBenchmark() {
|
|
|
10129
10138
|
return getRunMode() === "benchmark";
|
|
10130
10139
|
}
|
|
10131
10140
|
|
|
10132
|
-
// ../../node_modules/vitest/dist/vendor/benchmark.
|
|
10141
|
+
// ../../node_modules/vitest/dist/vendor/benchmark.yGkUTKnC.js
|
|
10133
10142
|
var benchFns = /* @__PURE__ */ new WeakMap();
|
|
10134
10143
|
var benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
10135
10144
|
var bench = createBenchmark(
|
|
@@ -10182,7 +10191,7 @@ function isFirstRun() {
|
|
|
10182
10191
|
return firstRun;
|
|
10183
10192
|
}
|
|
10184
10193
|
|
|
10185
|
-
// ../../node_modules/vitest/dist/vendor/vi.
|
|
10194
|
+
// ../../node_modules/vitest/dist/vendor/vi.YFlodzP_.js
|
|
10186
10195
|
init_esm_shims();
|
|
10187
10196
|
|
|
10188
10197
|
// ../../node_modules/chai/index.mjs
|
|
@@ -10769,6 +10778,10 @@ function iterableEquality(a, b2, customTesters = [], aStack = [], bStack = []) {
|
|
|
10769
10778
|
}
|
|
10770
10779
|
if (!bIterator.next().done)
|
|
10771
10780
|
return false;
|
|
10781
|
+
const aEntries = Object.entries(a);
|
|
10782
|
+
const bEntries = Object.entries(b2);
|
|
10783
|
+
if (!equals(aEntries, bEntries))
|
|
10784
|
+
return false;
|
|
10772
10785
|
aStack.pop();
|
|
10773
10786
|
bStack.pop();
|
|
10774
10787
|
return true;
|
|
@@ -10788,7 +10801,7 @@ function subsetEquality(object2, subset, customTesters = []) {
|
|
|
10788
10801
|
if (!isObjectWithKeys(subset2))
|
|
10789
10802
|
return void 0;
|
|
10790
10803
|
return Object.keys(subset2).every((key) => {
|
|
10791
|
-
if (typeof subset2[key] === "object") {
|
|
10804
|
+
if (subset2[key] != null && typeof subset2[key] === "object") {
|
|
10792
10805
|
if (seenReferences.has(subset2[key]))
|
|
10793
10806
|
return equals(object22[key], subset2[key], filteredCustomTesters);
|
|
10794
10807
|
seenReferences.set(subset2[key], true);
|
|
@@ -10857,8 +10870,8 @@ function getObjectKeys(object2) {
|
|
|
10857
10870
|
...Object.keys(object2),
|
|
10858
10871
|
...Object.getOwnPropertySymbols(object2).filter(
|
|
10859
10872
|
(s) => {
|
|
10860
|
-
var
|
|
10861
|
-
return (
|
|
10873
|
+
var _a;
|
|
10874
|
+
return (_a = Object.getOwnPropertyDescriptor(object2, s)) == null ? void 0 : _a.enumerable;
|
|
10862
10875
|
}
|
|
10863
10876
|
)
|
|
10864
10877
|
];
|
|
@@ -11193,7 +11206,7 @@ function recordAsyncExpect(test3, promise) {
|
|
|
11193
11206
|
}
|
|
11194
11207
|
function wrapSoft(utils, fn2) {
|
|
11195
11208
|
return function(...args) {
|
|
11196
|
-
var
|
|
11209
|
+
var _a;
|
|
11197
11210
|
const test3 = utils.flag(this, "vitest-test");
|
|
11198
11211
|
const state = (test3 == null ? void 0 : test3.context._local) ? test3.context.expect.getState() : getState(globalThis[GLOBAL_EXPECT]);
|
|
11199
11212
|
if (!state.soft)
|
|
@@ -11205,7 +11218,7 @@ function wrapSoft(utils, fn2) {
|
|
|
11205
11218
|
} catch (err) {
|
|
11206
11219
|
test3.result || (test3.result = { state: "fail" });
|
|
11207
11220
|
test3.result.state = "fail";
|
|
11208
|
-
(
|
|
11221
|
+
(_a = test3.result).errors || (_a.errors = []);
|
|
11209
11222
|
test3.result.errors.push(processError(err));
|
|
11210
11223
|
}
|
|
11211
11224
|
};
|
|
@@ -12325,9 +12338,9 @@ ${snapshots.join("\n\n")}
|
|
|
12325
12338
|
}
|
|
12326
12339
|
function prepareExpected(expected) {
|
|
12327
12340
|
function findStartIndent() {
|
|
12328
|
-
var
|
|
12341
|
+
var _a, _b;
|
|
12329
12342
|
const matchObject = /^( +)}\s+$/m.exec(expected || "");
|
|
12330
|
-
const objectIndent = (
|
|
12343
|
+
const objectIndent = (_a = matchObject == null ? void 0 : matchObject[1]) == null ? void 0 : _a.length;
|
|
12331
12344
|
if (objectIndent)
|
|
12332
12345
|
return objectIndent;
|
|
12333
12346
|
const matchText = /^\n( +)"/.exec(expected || "");
|
|
@@ -12894,8 +12907,8 @@ function parseStacktrace(stack, options = {}) {
|
|
|
12894
12907
|
if (ignoreStackEntries.length)
|
|
12895
12908
|
stacks = stacks.filter((stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p)));
|
|
12896
12909
|
return stacks.map((stack2) => {
|
|
12897
|
-
var
|
|
12898
|
-
const map2 = (
|
|
12910
|
+
var _a;
|
|
12911
|
+
const map2 = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file);
|
|
12899
12912
|
if (!map2 || typeof map2 !== "object" || !map2.version)
|
|
12900
12913
|
return stack2;
|
|
12901
12914
|
const traceMap = new TraceMap(map2);
|
|
@@ -13307,10 +13320,10 @@ var SnapshotClient = class {
|
|
|
13307
13320
|
snapshotState;
|
|
13308
13321
|
snapshotStateMap = /* @__PURE__ */ new Map();
|
|
13309
13322
|
async startCurrentRun(filepath, name, options) {
|
|
13310
|
-
var
|
|
13323
|
+
var _a;
|
|
13311
13324
|
this.filepath = filepath;
|
|
13312
13325
|
this.name = name;
|
|
13313
|
-
if (((
|
|
13326
|
+
if (((_a = this.snapshotState) == null ? void 0 : _a.testFilePath) !== filepath) {
|
|
13314
13327
|
await this.finishCurrentRun();
|
|
13315
13328
|
if (!this.getSnapshotState(filepath)) {
|
|
13316
13329
|
this.snapshotStateMap.set(
|
|
@@ -13332,11 +13345,11 @@ var SnapshotClient = class {
|
|
|
13332
13345
|
this.name = void 0;
|
|
13333
13346
|
}
|
|
13334
13347
|
skipTestSnapshots(name) {
|
|
13335
|
-
var
|
|
13336
|
-
(
|
|
13348
|
+
var _a;
|
|
13349
|
+
(_a = this.snapshotState) == null ? void 0 : _a.markSnapshotsAsCheckedForTest(name);
|
|
13337
13350
|
}
|
|
13338
13351
|
assert(options) {
|
|
13339
|
-
var
|
|
13352
|
+
var _a, _b, _c, _d;
|
|
13340
13353
|
const {
|
|
13341
13354
|
filepath = this.filepath,
|
|
13342
13355
|
name = this.name,
|
|
@@ -13355,7 +13368,7 @@ var SnapshotClient = class {
|
|
|
13355
13368
|
if (typeof received !== "object" || !received)
|
|
13356
13369
|
throw new Error("Received value must be an object when the matcher has properties");
|
|
13357
13370
|
try {
|
|
13358
|
-
const pass2 = ((_b = (
|
|
13371
|
+
const pass2 = ((_b = (_a = this.options).isEqual) == null ? void 0 : _b.call(_a, received, properties)) ?? false;
|
|
13359
13372
|
if (!pass2)
|
|
13360
13373
|
throw createMismatchError("Snapshot properties mismatched", (_c = this.snapshotState) == null ? void 0 : _c.expand, received, properties);
|
|
13361
13374
|
else
|
|
@@ -13416,7 +13429,7 @@ function getFullName(task, separator = " > ") {
|
|
|
13416
13429
|
return getNames(task).join(separator);
|
|
13417
13430
|
}
|
|
13418
13431
|
|
|
13419
|
-
// ../../node_modules/vitest/dist/vendor/base.
|
|
13432
|
+
// ../../node_modules/vitest/dist/vendor/base.5NT-gWu5.js
|
|
13420
13433
|
init_esm_shims();
|
|
13421
13434
|
function isChildProcess() {
|
|
13422
13435
|
return typeof process !== "undefined" && !!process.send;
|
|
@@ -13474,7 +13487,7 @@ function resetDate() {
|
|
|
13474
13487
|
globalThis.Date = RealDate;
|
|
13475
13488
|
}
|
|
13476
13489
|
|
|
13477
|
-
// ../../node_modules/vitest/dist/vendor/vi.
|
|
13490
|
+
// ../../node_modules/vitest/dist/vendor/vi.YFlodzP_.js
|
|
13478
13491
|
function resetModules(modules, resetMocks = false) {
|
|
13479
13492
|
const skipPaths = [
|
|
13480
13493
|
// Vitest
|
|
@@ -13655,11 +13668,11 @@ function getError(expected, promise) {
|
|
|
13655
13668
|
}
|
|
13656
13669
|
var SnapshotPlugin = (chai3, utils) => {
|
|
13657
13670
|
const getTestNames = (test3) => {
|
|
13658
|
-
var
|
|
13671
|
+
var _a;
|
|
13659
13672
|
if (!test3)
|
|
13660
13673
|
return {};
|
|
13661
13674
|
return {
|
|
13662
|
-
filepath: (
|
|
13675
|
+
filepath: (_a = test3.file) == null ? void 0 : _a.filepath,
|
|
13663
13676
|
name: getNames(test3).slice(1).join(" > ")
|
|
13664
13677
|
};
|
|
13665
13678
|
};
|
|
@@ -13716,12 +13729,12 @@ var SnapshotPlugin = (chai3, utils) => {
|
|
|
13716
13729
|
chai3.Assertion.prototype,
|
|
13717
13730
|
"toMatchInlineSnapshot",
|
|
13718
13731
|
function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {
|
|
13719
|
-
var
|
|
13732
|
+
var _a;
|
|
13720
13733
|
const isNot = utils.flag(this, "negate");
|
|
13721
13734
|
if (isNot)
|
|
13722
13735
|
throw new Error('toMatchInlineSnapshot cannot be used with "not"');
|
|
13723
13736
|
const test3 = utils.flag(this, "vitest-test");
|
|
13724
|
-
const isInsideEach = test3 && (test3.each || ((
|
|
13737
|
+
const isInsideEach = test3 && (test3.each || ((_a = test3.suite) == null ? void 0 : _a.each));
|
|
13725
13738
|
if (isInsideEach)
|
|
13726
13739
|
throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");
|
|
13727
13740
|
const expected = utils.flag(this, "object");
|
|
@@ -13769,12 +13782,12 @@ var SnapshotPlugin = (chai3, utils) => {
|
|
|
13769
13782
|
chai3.Assertion.prototype,
|
|
13770
13783
|
"toThrowErrorMatchingInlineSnapshot",
|
|
13771
13784
|
function __INLINE_SNAPSHOT__(inlineSnapshot, message) {
|
|
13772
|
-
var
|
|
13785
|
+
var _a;
|
|
13773
13786
|
const isNot = utils.flag(this, "negate");
|
|
13774
13787
|
if (isNot)
|
|
13775
13788
|
throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');
|
|
13776
13789
|
const test3 = utils.flag(this, "vitest-test");
|
|
13777
|
-
const isInsideEach = test3 && (test3.each || ((
|
|
13790
|
+
const isInsideEach = test3 && (test3.each || ((_a = test3.suite) == null ? void 0 : _a.each));
|
|
13778
13791
|
if (isInsideEach)
|
|
13779
13792
|
throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");
|
|
13780
13793
|
const expected = utils.flag(this, "object");
|
|
@@ -13806,7 +13819,7 @@ use(Subset);
|
|
|
13806
13819
|
use(SnapshotPlugin);
|
|
13807
13820
|
use(JestAsymmetricMatchers);
|
|
13808
13821
|
function createExpect(test3) {
|
|
13809
|
-
var
|
|
13822
|
+
var _a;
|
|
13810
13823
|
const expect2 = (value, message) => {
|
|
13811
13824
|
const { assertionCalls } = getState(expect2);
|
|
13812
13825
|
setState({ assertionCalls: assertionCalls + 1, soft: false }, expect2);
|
|
@@ -13831,7 +13844,7 @@ function createExpect(test3) {
|
|
|
13831
13844
|
expectedAssertionsNumber: null,
|
|
13832
13845
|
expectedAssertionsNumberErrorGen: null,
|
|
13833
13846
|
environment: getCurrentEnvironment(),
|
|
13834
|
-
testPath: test3 ? (
|
|
13847
|
+
testPath: test3 ? (_a = test3.suite.file) == null ? void 0 : _a.filepath : globalState.testPath,
|
|
13835
13848
|
currentTestName: test3 ? getFullName(test3) : globalState.currentTestName
|
|
13836
13849
|
}, expect2);
|
|
13837
13850
|
expect2.extend = (matchers) => expect.extend(expect2, matchers);
|
|
@@ -15406,7 +15419,7 @@ var FakeTimers = class {
|
|
|
15406
15419
|
}
|
|
15407
15420
|
}
|
|
15408
15421
|
useFakeTimers() {
|
|
15409
|
-
var
|
|
15422
|
+
var _a, _b, _c;
|
|
15410
15423
|
if (this._fakingDate) {
|
|
15411
15424
|
throw new Error(
|
|
15412
15425
|
'"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.'
|
|
@@ -15414,7 +15427,7 @@ var FakeTimers = class {
|
|
|
15414
15427
|
}
|
|
15415
15428
|
if (!this._fakingTime) {
|
|
15416
15429
|
const toFake = Object.keys(this._fakeTimers.timers).filter((timer) => timer !== "nextTick");
|
|
15417
|
-
if (((_b = (
|
|
15430
|
+
if (((_b = (_a = this._userConfig) == null ? void 0 : _a.toFake) == null ? void 0 : _b.includes("nextTick")) && isChildProcess())
|
|
15418
15431
|
throw new Error("process.nextTick cannot be mocked inside child_process");
|
|
15419
15432
|
const existingFakedMethods = (((_c = this._userConfig) == null ? void 0 : _c.toFake) || toFake).filter((method) => {
|
|
15420
15433
|
switch (method) {
|
|
@@ -15615,9 +15628,9 @@ function createVitest() {
|
|
|
15615
15628
|
};
|
|
15616
15629
|
const utils = {
|
|
15617
15630
|
useFakeTimers(config2) {
|
|
15618
|
-
var
|
|
15631
|
+
var _a, _b, _c, _d;
|
|
15619
15632
|
if (isChildProcess()) {
|
|
15620
|
-
if (((
|
|
15633
|
+
if (((_a = config2 == null ? void 0 : config2.toFake) == null ? void 0 : _a.includes("nextTick")) || ((_d = (_c = (_b = workerState.config) == null ? void 0 : _b.fakeTimers) == null ? void 0 : _c.toFake) == null ? void 0 : _d.includes("nextTick"))) {
|
|
15621
15634
|
throw new Error(
|
|
15622
15635
|
'vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.'
|
|
15623
15636
|
);
|
|
@@ -15817,7 +15830,7 @@ function createVitest() {
|
|
|
15817
15830
|
var vitest = createVitest();
|
|
15818
15831
|
var vi = vitest;
|
|
15819
15832
|
|
|
15820
|
-
// ../../node_modules/vitest/dist/vendor/index.
|
|
15833
|
+
// ../../node_modules/vitest/dist/vendor/index.dI9lHwVn.js
|
|
15821
15834
|
init_esm_shims();
|
|
15822
15835
|
function getRunningMode() {
|
|
15823
15836
|
return process.env.VITEST_MODE === "WATCH" ? "watch" : "run";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/hammer-test-jest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Hammer test runner, jest",
|
|
5
5
|
"author": "Procore Technologies, Inc",
|
|
6
6
|
"homepage": "https://github.com/procore/hammer/packages/test-jest",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"test:watch": "vitest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@babel/core": "^7.24.
|
|
47
|
-
"@babel/preset-env": "^7.24.
|
|
46
|
+
"@babel/core": "^7.24.5",
|
|
47
|
+
"@babel/preset-env": "^7.24.5",
|
|
48
48
|
"@babel/preset-react": "^7.24.1",
|
|
49
49
|
"@babel/preset-typescript": "^7.24.1",
|
|
50
50
|
"@procore/hammer-types": "^0.3.0",
|
|
@@ -55,19 +55,19 @@
|
|
|
55
55
|
"jest-watch-typeahead": "^2.2.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@procore/prettier-config": "^1.
|
|
59
|
-
"@types/node": "^20.12.
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
61
|
-
"@typescript-eslint/parser": "^7.
|
|
62
|
-
"@vitest/coverage-v8": "^1.
|
|
58
|
+
"@procore/prettier-config": "^1.1.0",
|
|
59
|
+
"@types/node": "^20.12.12",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
|
61
|
+
"@typescript-eslint/parser": "^7.10.0",
|
|
62
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
63
63
|
"eslint": "^8.57.0",
|
|
64
64
|
"eslint-define-config": "^2.1.0",
|
|
65
|
-
"lint-staged": "^15.2.
|
|
65
|
+
"lint-staged": "^15.2.4",
|
|
66
66
|
"pathe": "^1.1.2",
|
|
67
67
|
"prettier": "^3.2.5",
|
|
68
|
-
"rimraf": "^5.0.
|
|
68
|
+
"rimraf": "^5.0.7",
|
|
69
69
|
"tsup": "^8.0.2",
|
|
70
70
|
"typescript": "^5.4.5",
|
|
71
|
-
"vitest": "^1.
|
|
71
|
+
"vitest": "^1.6.0"
|
|
72
72
|
}
|
|
73
73
|
}
|