@stencil/core 4.7.1-dev.1699392001.7335898 → 4.7.1-dev.1699419717.e1858ea
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +4 -4
- package/compiler/stencil.min.js +2 -2
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -4
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/index.js +27 -33
- package/testing/jest/jest-stencil-connector.d.ts +115 -1
- package/testing/package.json +1 -1
- package/testing/testing-utils.d.ts +0 -24
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v4.7.1-dev.
|
|
2
|
+
Stencil Testing v4.7.1-dev.1699419717.e1858ea | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -1394,7 +1394,7 @@ function writeFile(e, t) {
|
|
|
1394
1394
|
async function compareScreenshot(e, t, r, s, n, o, i, a) {
|
|
1395
1395
|
var l, c, u, d, p, h, f, m;
|
|
1396
1396
|
const g = `${require$$3.createHash("md5").update(r).digest("hex")}.png`, w = path$2.join(t.imagesDir, g);
|
|
1397
|
-
await async function
|
|
1397
|
+
await async function v(e, t) {
|
|
1398
1398
|
const r = await function s(e) {
|
|
1399
1399
|
return new Promise((t => {
|
|
1400
1400
|
fs__default.default.access(e, (e => t(!e)));
|
|
@@ -1402,14 +1402,14 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
|
|
|
1402
1402
|
}(e);
|
|
1403
1403
|
r || await writeFile(e, t);
|
|
1404
1404
|
}(w, r), r = null, i && (i = normalizePath(path$2.relative(t.rootDir, i)));
|
|
1405
|
-
const
|
|
1405
|
+
const y = function _(e, t) {
|
|
1406
1406
|
if ("string" != typeof t || 0 === t.trim().length) throw new Error("invalid test description");
|
|
1407
1407
|
const r = require$$3.createHash("md5");
|
|
1408
1408
|
return r.update(t + ":"), r.update(e.userAgent + ":"), void 0 !== e.viewport && (r.update(e.viewport.width + ":"),
|
|
1409
1409
|
r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
|
|
1410
1410
|
r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":")), r.digest("hex").slice(0, 8).toLowerCase();
|
|
1411
1411
|
}(e, s), E = {
|
|
1412
|
-
id:
|
|
1412
|
+
id: y,
|
|
1413
1413
|
image: g,
|
|
1414
1414
|
device: e.device,
|
|
1415
1415
|
userAgent: e.userAgent,
|
|
@@ -1422,7 +1422,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
|
|
|
1422
1422
|
isLandscape: null === (u = e.viewport) || void 0 === u ? void 0 : u.isLandscape,
|
|
1423
1423
|
isMobile: null === (d = e.viewport) || void 0 === d ? void 0 : d.isMobile,
|
|
1424
1424
|
diff: {
|
|
1425
|
-
id:
|
|
1425
|
+
id: y,
|
|
1426
1426
|
desc: s,
|
|
1427
1427
|
imageA: g,
|
|
1428
1428
|
imageB: g,
|
|
@@ -3859,9 +3859,9 @@ try {
|
|
|
3859
3859
|
}(e, t, r, n);
|
|
3860
3860
|
}
|
|
3861
3861
|
var i, a, l, c, u, d, p, h, f, m, g, w;
|
|
3862
|
-
return polyfills(e), e.gracefulify = r, e.createReadStream = function
|
|
3862
|
+
return polyfills(e), e.gracefulify = r, e.createReadStream = function v(t, r) {
|
|
3863
3863
|
return new e.ReadStream(t, r);
|
|
3864
|
-
}, e.createWriteStream = function
|
|
3864
|
+
}, e.createWriteStream = function y(t, r) {
|
|
3865
3865
|
return new e.WriteStream(t, r);
|
|
3866
3866
|
}, i = e.readFile, e.readFile = function _(e, t, r) {
|
|
3867
3867
|
return "function" == typeof t && (r = t, t = null), function e(t, r, n, o) {
|
|
@@ -4627,7 +4627,7 @@ defaultIsFile$1 = function e(t, r) {
|
|
|
4627
4627
|
function n(e) {
|
|
4628
4628
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) T = path__default.default.resolve(e, t),
|
|
4629
4629
|
"." !== t && ".." !== t && "/" !== t.slice(-1) || (T += "/"), /\/$/.test(t) && T === e ? l(T, $.package, o) : i(T, $.package, o); else {
|
|
4630
|
-
if (
|
|
4630
|
+
if (y && isCoreModule(t)) return S(null, t);
|
|
4631
4631
|
!function r(e, t, s) {
|
|
4632
4632
|
var n = function() {
|
|
4633
4633
|
return getPackageCandidates$1(e, t, $);
|
|
@@ -4660,7 +4660,7 @@ defaultIsFile$1 = function e(t, r) {
|
|
|
4660
4660
|
function o(s, o, a) {
|
|
4661
4661
|
var u, p, h;
|
|
4662
4662
|
return c = o, s ? n(s) : a && c && $.pathFilter && (p = (u = path__default.default.relative(a, l)).slice(0, u.length - t[0].length),
|
|
4663
|
-
h = $.pathFilter(c, r, p)) ? e([ "" ].concat(
|
|
4663
|
+
h = $.pathFilter(c, r, p)) ? e([ "" ].concat(v.slice()), path__default.default.resolve(a, h), c) : void d(l, i);
|
|
4664
4664
|
}
|
|
4665
4665
|
function i(s, o) {
|
|
4666
4666
|
return s ? n(s) : o ? n(null, l, c) : void e(t.slice(1), r, c);
|
|
@@ -4668,7 +4668,7 @@ defaultIsFile$1 = function e(t, r) {
|
|
|
4668
4668
|
var l, c;
|
|
4669
4669
|
if (0 === t.length) return n(null, void 0, s);
|
|
4670
4670
|
l = r + t[0], (c = s) ? o(null, c) : a(path__default.default.dirname(l), o);
|
|
4671
|
-
}([ "" ].concat(
|
|
4671
|
+
}([ "" ].concat(v), e, s);
|
|
4672
4672
|
}
|
|
4673
4673
|
function a(e, t) {
|
|
4674
4674
|
return "" === e || "/" === e || "win32" === process.platform && /^\w:[/\\]*$/.test(e) || /[/\\]node_modules[/\\]*$/.test(e) ? t(null) : void maybeRealpath(f, e, $, (function(r, s) {
|
|
@@ -4715,7 +4715,7 @@ defaultIsFile$1 = function e(t, r) {
|
|
|
4715
4715
|
return s ? e(s) : a ? void i(n, $.package, r) : c(e, t.slice(1));
|
|
4716
4716
|
}));
|
|
4717
4717
|
}
|
|
4718
|
-
var u, d, p, h, f, m, g, w,
|
|
4718
|
+
var u, d, p, h, f, m, g, w, v, y, _, E, b, T, S = s, $ = r;
|
|
4719
4719
|
return "function" == typeof r && (S = $, $ = {}), "string" != typeof t ? (u = new TypeError("Path must be a string."),
|
|
4720
4720
|
process.nextTick((function() {
|
|
4721
4721
|
S(u);
|
|
@@ -4724,7 +4724,7 @@ defaultIsFile$1 = function e(t, r) {
|
|
|
4724
4724
|
m = $.readPackage || defaultReadPackage, $.readFile && $.readPackage ? (g = new TypeError("`readFile` and `readPackage` are mutually exclusive."),
|
|
4725
4725
|
process.nextTick((function() {
|
|
4726
4726
|
S(g);
|
|
4727
|
-
}))) : (w = $.packageIterator,
|
|
4727
|
+
}))) : (w = $.packageIterator, v = $.extensions || [ ".js" ], y = !1 !== $.includeCoreModules,
|
|
4728
4728
|
_ = $.basedir || path__default.default.dirname(caller()), E = $.filename || _, $.paths = $.paths || [],
|
|
4729
4729
|
b = path__default.default.resolve(_), void maybeRealpath(f, b, $, (function(e, t) {
|
|
4730
4730
|
e ? S(e) : n(t);
|
|
@@ -4889,7 +4889,7 @@ defaultIsFile = function e(t) {
|
|
|
4889
4889
|
}
|
|
4890
4890
|
return s(path__default.default.join(e, "/index"));
|
|
4891
4891
|
}
|
|
4892
|
-
var i, a, l, c, u, d, p, h, f, m, g, w,
|
|
4892
|
+
var i, a, l, c, u, d, p, h, f, m, g, w, v, y, _, E;
|
|
4893
4893
|
if ("string" != typeof t) throw new TypeError("Path must be a string.");
|
|
4894
4894
|
if (i = normalizeOptions(0, r), a = i.isFile || defaultIsFile, l = i.readFileSync || fs__default.default.readFileSync,
|
|
4895
4895
|
c = i.isDirectory || defaultIsDir, u = i.realpathSync || defaultRealpathSync, d = i.readPackageSync || defaultReadPackageSync,
|
|
@@ -4897,8 +4897,8 @@ defaultIsFile = function e(t) {
|
|
|
4897
4897
|
if (p = i.packageIterator, h = i.extensions || [ ".js" ], f = !1 !== i.includeCoreModules,
|
|
4898
4898
|
m = i.basedir || path__default.default.dirname(caller()), g = i.filename || m, i.paths = i.paths || [],
|
|
4899
4899
|
w = maybeRealpathSync(u, path__default.default.resolve(m), i), /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)) {
|
|
4900
|
-
if (
|
|
4901
|
-
|
|
4900
|
+
if (v = path__default.default.resolve(w, t), "." !== t && ".." !== t && "/" !== t.slice(-1) || (v += "/"),
|
|
4901
|
+
y = s(v) || o(v)) return maybeRealpathSync(u, y, i);
|
|
4902
4902
|
} else {
|
|
4903
4903
|
if (f && isCoreModule(t)) return t;
|
|
4904
4904
|
if (_ = function b(e, t) {
|
|
@@ -5013,7 +5013,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
5013
5013
|
path: l(e),
|
|
5014
5014
|
error: null
|
|
5015
5015
|
}), m = (e, t, r) => {
|
|
5016
|
-
const n =
|
|
5016
|
+
const n = v(e);
|
|
5017
5017
|
if (!n.error && !r.error) if (n.isFile) {
|
|
5018
5018
|
const n = path$2.dirname(t), o = u(n, {
|
|
5019
5019
|
recursive: !0
|
|
@@ -5056,13 +5056,13 @@ const getPackageDirPath = (e, t) => {
|
|
|
5056
5056
|
if (t && t.recursive) for (const e of n) {
|
|
5057
5057
|
const n = s.get(e);
|
|
5058
5058
|
if (n) if (n.isDirectory) w(e, t, r); else if (n.isFile) {
|
|
5059
|
-
const t =
|
|
5059
|
+
const t = y(e);
|
|
5060
5060
|
t.error ? r.error = t.error : r.removedFiles.push(e);
|
|
5061
5061
|
}
|
|
5062
5062
|
} else if (n.length > 0) return void (r.error = "cannot delete directory that contains files/subdirectories");
|
|
5063
5063
|
s.delete(e), _(e, new Set), r.removedDirs.push(e);
|
|
5064
5064
|
}
|
|
5065
|
-
},
|
|
5065
|
+
}, v = e => {
|
|
5066
5066
|
e = l(e);
|
|
5067
5067
|
const t = s.get(e);
|
|
5068
5068
|
return t && (t.isDirectory || t.isFile && "string" == typeof t.data) ? {
|
|
@@ -5078,7 +5078,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
5078
5078
|
size: 0,
|
|
5079
5079
|
error: `ENOENT: no such file or directory, statSync '${e}'`
|
|
5080
5080
|
};
|
|
5081
|
-
},
|
|
5081
|
+
}, y = e => {
|
|
5082
5082
|
e = l(e);
|
|
5083
5083
|
const t = {
|
|
5084
5084
|
basename: path$2.basename(e),
|
|
@@ -5116,7 +5116,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
5116
5116
|
u("/");
|
|
5117
5117
|
const S = {
|
|
5118
5118
|
name: "in-memory",
|
|
5119
|
-
version: "4.7.1-dev.
|
|
5119
|
+
version: "4.7.1-dev.1699419717.e1858ea",
|
|
5120
5120
|
events: a,
|
|
5121
5121
|
access: async e => c(e),
|
|
5122
5122
|
accessSync: c,
|
|
@@ -5177,7 +5177,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
5177
5177
|
isFile: !1,
|
|
5178
5178
|
isDirectory: !1,
|
|
5179
5179
|
error: null
|
|
5180
|
-
}, s =
|
|
5180
|
+
}, s = v(e);
|
|
5181
5181
|
if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
|
|
5182
5182
|
m(e, t, r), !r.error) if (r.isDirectory) {
|
|
5183
5183
|
const t = g(e, {
|
|
@@ -5185,7 +5185,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
5185
5185
|
});
|
|
5186
5186
|
t.error ? r.error = t.error : (r.oldDirs.push(...t.removedDirs), r.oldFiles.push(...t.removedFiles));
|
|
5187
5187
|
} else if (r.isFile) {
|
|
5188
|
-
const t =
|
|
5188
|
+
const t = y(e);
|
|
5189
5189
|
t.error ? r.error = t.error : r.oldFiles.push(e);
|
|
5190
5190
|
}
|
|
5191
5191
|
return r;
|
|
@@ -5194,11 +5194,11 @@ const getPackageDirPath = (e, t) => {
|
|
|
5194
5194
|
resolvePath: e => l(e),
|
|
5195
5195
|
removeDir: async (e, t = {}) => g(e, t),
|
|
5196
5196
|
removeDirSync: g,
|
|
5197
|
-
stat: async e =>
|
|
5198
|
-
statSync:
|
|
5197
|
+
stat: async e => v(e),
|
|
5198
|
+
statSync: v,
|
|
5199
5199
|
tmpDirSync: () => "/.tmp",
|
|
5200
|
-
removeFile: async e =>
|
|
5201
|
-
removeFileSync:
|
|
5200
|
+
removeFile: async e => y(e),
|
|
5201
|
+
removeFileSync: y,
|
|
5202
5202
|
watchDirectory: (e, t) => {
|
|
5203
5203
|
e = l(e);
|
|
5204
5204
|
const r = s.get(e), n = () => {
|
|
@@ -5743,13 +5743,7 @@ exports.createTesting = async e => {
|
|
|
5743
5743
|
exports.getCreateJestTestRunner = () => getJestFacade().getCreateJestTestRunner(),
|
|
5744
5744
|
exports.getJestPreprocessor = () => getJestFacade().getJestPreprocessor(), exports.getJestPreset = () => getJestFacade().getJestPreset(),
|
|
5745
5745
|
exports.getJestSetupTestFramework = () => getJestFacade().getJestSetupTestFramework(),
|
|
5746
|
-
exports.
|
|
5747
|
-
"node_modules/write-file-atomic": e.load(path$2.resolve(process.cwd(), "node_modules", "write-file-atomic")),
|
|
5748
|
-
"node_modules/imurmurhash": e.load(path$2.resolve(process.cwd(), "node_modules", "imurmurhash")),
|
|
5749
|
-
"node_modules/is-typedarray": e.load(path$2.resolve(process.cwd(), "node_modules", "is-typedarray")),
|
|
5750
|
-
"node_modules/typedarray-to-buffer": e.load(path$2.resolve(process.cwd(), "node_modules", "typedarray-to-buffer")),
|
|
5751
|
-
[path$2.resolve(process.cwd(), "sys")]: e.load(path$2.resolve(process.cwd(), "sys"))
|
|
5752
|
-
}), exports.mockBuildCtx = function mockBuildCtx(e, t) {
|
|
5746
|
+
exports.mockBuildCtx = function mockBuildCtx(e, t) {
|
|
5753
5747
|
return e || (e = mockValidatedConfig()), t || (t = mockCompilerCtx(e)), new BuildContext(e, t);
|
|
5754
5748
|
}, exports.mockCompilerCtx = mockCompilerCtx, exports.mockCompilerSystem = function mockCompilerSystem() {
|
|
5755
5749
|
return createTestingSystem();
|
|
@@ -61,4 +61,118 @@ export declare const getJestSetupTestFramework: () => () => void;
|
|
|
61
61
|
*
|
|
62
62
|
* @returns an object representing a Jest preset
|
|
63
63
|
*/
|
|
64
|
-
export declare const getJestPreset: () =>
|
|
64
|
+
export declare const getJestPreset: () => Partial<{
|
|
65
|
+
automock: boolean;
|
|
66
|
+
bail: number | boolean;
|
|
67
|
+
cache: boolean;
|
|
68
|
+
cacheDirectory: string;
|
|
69
|
+
ci: boolean;
|
|
70
|
+
clearMocks: boolean;
|
|
71
|
+
changedFilesWithAncestor: boolean;
|
|
72
|
+
changedSince: string;
|
|
73
|
+
collectCoverage: boolean;
|
|
74
|
+
collectCoverageFrom: string[];
|
|
75
|
+
collectCoverageOnlyFrom: {
|
|
76
|
+
[key: string]: boolean;
|
|
77
|
+
};
|
|
78
|
+
coverageDirectory: string;
|
|
79
|
+
coveragePathIgnorePatterns: string[];
|
|
80
|
+
coverageProvider: "v8" | "babel";
|
|
81
|
+
coverageReporters: import("@jest/types/build/Config").CoverageReporters;
|
|
82
|
+
coverageThreshold: {
|
|
83
|
+
[path: string]: import("@jest/types/build/Config").CoverageThresholdValue;
|
|
84
|
+
global: import("@jest/types/build/Config").CoverageThresholdValue;
|
|
85
|
+
};
|
|
86
|
+
dependencyExtractor: string;
|
|
87
|
+
detectLeaks: boolean;
|
|
88
|
+
detectOpenHandles: boolean;
|
|
89
|
+
displayName: string | import("@jest/types/build/Config").DisplayName;
|
|
90
|
+
expand: boolean;
|
|
91
|
+
extensionsToTreatAsEsm: string[];
|
|
92
|
+
extraGlobals: string[];
|
|
93
|
+
filter: string;
|
|
94
|
+
findRelatedTests: boolean;
|
|
95
|
+
forceCoverageMatch: string[];
|
|
96
|
+
forceExit: boolean;
|
|
97
|
+
json: boolean;
|
|
98
|
+
globals: import("@jest/types/build/Config").ConfigGlobals;
|
|
99
|
+
globalSetup: string;
|
|
100
|
+
globalTeardown: string;
|
|
101
|
+
haste: import("@jest/types/build/Config").HasteConfig;
|
|
102
|
+
injectGlobals: boolean;
|
|
103
|
+
reporters: (string | import("@jest/types/build/Config").ReporterConfig)[];
|
|
104
|
+
logHeapUsage: boolean;
|
|
105
|
+
lastCommit: boolean;
|
|
106
|
+
listTests: boolean;
|
|
107
|
+
maxConcurrency: number;
|
|
108
|
+
maxWorkers: string | number;
|
|
109
|
+
moduleDirectories: string[];
|
|
110
|
+
moduleFileExtensions: string[];
|
|
111
|
+
moduleLoader: string;
|
|
112
|
+
moduleNameMapper: {
|
|
113
|
+
[key: string]: string | string[];
|
|
114
|
+
};
|
|
115
|
+
modulePathIgnorePatterns: string[];
|
|
116
|
+
modulePaths: string[];
|
|
117
|
+
name: string;
|
|
118
|
+
noStackTrace: boolean;
|
|
119
|
+
notify: boolean;
|
|
120
|
+
notifyMode: string;
|
|
121
|
+
onlyChanged: boolean;
|
|
122
|
+
onlyFailures: boolean;
|
|
123
|
+
outputFile: string;
|
|
124
|
+
passWithNoTests: boolean;
|
|
125
|
+
preprocessorIgnorePatterns: string[];
|
|
126
|
+
preset: string;
|
|
127
|
+
prettierPath: string;
|
|
128
|
+
projects: (string | import("@jest/types/build/Config").InitialProjectOptions)[];
|
|
129
|
+
replname: string;
|
|
130
|
+
resetMocks: boolean;
|
|
131
|
+
resetModules: boolean;
|
|
132
|
+
resolver: string;
|
|
133
|
+
restoreMocks: boolean;
|
|
134
|
+
rootDir: string;
|
|
135
|
+
roots: string[];
|
|
136
|
+
runner: string;
|
|
137
|
+
runTestsByPath: boolean;
|
|
138
|
+
scriptPreprocessor: string;
|
|
139
|
+
setupFiles: string[];
|
|
140
|
+
setupTestFrameworkScriptFile: string;
|
|
141
|
+
setupFilesAfterEnv: string[];
|
|
142
|
+
silent: boolean;
|
|
143
|
+
skipFilter: boolean;
|
|
144
|
+
skipNodeResolution: boolean;
|
|
145
|
+
slowTestThreshold: number;
|
|
146
|
+
snapshotResolver: string;
|
|
147
|
+
snapshotSerializers: string[];
|
|
148
|
+
snapshotFormat: import("@jest/types/build/Config").PrettyFormatOptions;
|
|
149
|
+
errorOnDeprecated: boolean;
|
|
150
|
+
testEnvironment: string;
|
|
151
|
+
testEnvironmentOptions: Record<string, unknown>;
|
|
152
|
+
testFailureExitCode: string | number;
|
|
153
|
+
testLocationInResults: boolean;
|
|
154
|
+
testMatch: string[];
|
|
155
|
+
testNamePattern: string;
|
|
156
|
+
testPathDirs: string[];
|
|
157
|
+
testPathIgnorePatterns: string[];
|
|
158
|
+
testRegex: string | string[];
|
|
159
|
+
testResultsProcessor: string;
|
|
160
|
+
testRunner: string;
|
|
161
|
+
testSequencer: string;
|
|
162
|
+
testURL: string;
|
|
163
|
+
testTimeout: number;
|
|
164
|
+
timers: "real" | "fake" | "modern" | "legacy";
|
|
165
|
+
transform: {
|
|
166
|
+
[regex: string]: string | import("@jest/types/build/Config").TransformerConfig;
|
|
167
|
+
};
|
|
168
|
+
transformIgnorePatterns: string[];
|
|
169
|
+
watchPathIgnorePatterns: string[];
|
|
170
|
+
unmockedModulePathPatterns: string[];
|
|
171
|
+
updateSnapshot: boolean;
|
|
172
|
+
useStderr: boolean;
|
|
173
|
+
verbose?: boolean;
|
|
174
|
+
watch: boolean;
|
|
175
|
+
watchAll: boolean;
|
|
176
|
+
watchman: boolean;
|
|
177
|
+
watchPlugins: (string | [string, Record<string, unknown>])[];
|
|
178
|
+
}>;
|
package/testing/package.json
CHANGED
|
@@ -78,28 +78,4 @@ type SilentWarnFunc<T> = (mock: jest.Mock<typeof console.warn>) => Promise<T>;
|
|
|
78
78
|
* @returns a Promise wrapping the return value of the callback
|
|
79
79
|
*/
|
|
80
80
|
export declare function withSilentWarn<T>(cb: SilentWarnFunc<T>): Promise<T>;
|
|
81
|
-
/**
|
|
82
|
-
* This is a helper for using `mock-fs` in Jest.
|
|
83
|
-
*
|
|
84
|
-
* `mock-fs` replaces the node.js implementation of `fs` with a separate one
|
|
85
|
-
* which does filesystem operations against an in-memory filesystem instead of
|
|
86
|
-
* against the disk.
|
|
87
|
-
*
|
|
88
|
-
* This 'patch' consists of adding files to the in-memory filesystem from the
|
|
89
|
-
* disk (via `mock.load`) which are sometimes required by Jest between the
|
|
90
|
-
* `beforeEach` and `afterEach` calls in a test suite -- without adding these
|
|
91
|
-
* files to the in-memory filesystem the runtime require by Jest will fail.
|
|
92
|
-
*
|
|
93
|
-
* @param mock a `mock-fs` module, as imported in the particular test file
|
|
94
|
-
* where you want to mock the filesystem.
|
|
95
|
-
* @returns a filesystem manifest suitable for mocking out runtime
|
|
96
|
-
* dependencies of Jest
|
|
97
|
-
*/
|
|
98
|
-
export declare const getMockFSPatch: (mock: any) => {
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
'node_modules/write-file-atomic': any;
|
|
101
|
-
'node_modules/imurmurhash': any;
|
|
102
|
-
'node_modules/is-typedarray': any;
|
|
103
|
-
'node_modules/typedarray-to-buffer': any;
|
|
104
|
-
};
|
|
105
81
|
export {};
|