@stencil/core 4.4.0-dev.1696395716.cd91c3e → 4.4.0-dev.1696482119.8f1f6aa

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.4.0-dev.1696395716.cd91c3e",
3
+ "version": "4.4.0-dev.1696482119.8f1f6aa",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System Worker v4.4.0-dev.1696395716.cd91c3e | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.4.0-dev.1696482119.8f1f6aa | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v4.4.0-dev.1696395716.cd91c3e | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.4.0-dev.1696482119.8f1f6aa | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -211,12 +211,13 @@ async function runJest(e, t) {
211
211
  let r = !1;
212
212
  try {
213
213
  const n = function n(e, t) {
214
- let r = e.emulate.slice();
214
+ var r, n;
215
+ let s = null !== (n = null === (r = e.emulate) || void 0 === r ? void 0 : r.slice()) && void 0 !== n ? n : [];
215
216
  if ("string" == typeof t.emulate) {
216
217
  const e = t.emulate.toLowerCase();
217
- r = r.filter((t => "string" == typeof t.device && t.device.toLowerCase() === e || !("string" != typeof t.userAgent || !t.userAgent.toLowerCase().includes(e))));
218
+ s = s.filter((t => "string" == typeof t.device && t.device.toLowerCase() === e || !("string" != typeof t.userAgent || !t.userAgent.toLowerCase().includes(e))));
218
219
  }
219
- return r;
220
+ return s;
220
221
  }(e.testing, e.flags);
221
222
  t.__STENCIL_EMULATE_CONFIGS__ = JSON.stringify(n), t.__STENCIL_ENV__ = JSON.stringify(e.env),
222
223
  t.__STENCIL_TRANSPILE_PATHS__ = e.transformAliasedImportPaths ? "true" : "false",
@@ -1556,15 +1557,16 @@ const FETCH_DEFAULT_PATH = "/mock-fetch-data", HtmlSerializer = {
1556
1557
  return compareHtml(e, t, !1);
1557
1558
  },
1558
1559
  toEqualText: function toEqualText(e, t) {
1560
+ var r;
1559
1561
  if (null == e) throw new Error(`expect toEqualText() value is "${e}"`);
1560
1562
  if ("function" == typeof e.then) throw new Error("element must be a resolved value, not a promise, before it can be tested");
1561
- let r;
1562
- 1 === e.nodeType ? r = e.textContent.replace(/\s\s+/g, " ").trim() : null != e && (r = String(e).replace(/\s\s+/g, " ").trim()),
1563
+ let n;
1564
+ n = 1 === e.nodeType ? (null !== (r = e.textContent) && void 0 !== r ? r : "").replace(/\s\s+/g, " ").trim() : String(e).replace(/\s\s+/g, " ").trim(),
1563
1565
  "string" == typeof t && (t = t.replace(/\s\s+/g, " ").trim());
1564
- const n = r === t;
1566
+ const s = n === t;
1565
1567
  return {
1566
- message: () => `expected textContent "${t}" to ${n ? "not " : ""}equal "${r}"`,
1567
- pass: n
1568
+ message: () => `expected textContent "${t}" to ${s ? "not " : ""}equal "${n}"`,
1569
+ pass: s
1568
1570
  };
1569
1571
  },
1570
1572
  toHaveAttribute: function toHaveAttribute(e, t) {
@@ -3784,7 +3786,7 @@ const getPackageDirPath = (e, t) => {
3784
3786
  u("/");
3785
3787
  const S = {
3786
3788
  name: "in-memory",
3787
- version: "4.4.0-dev.1696395716.cd91c3e",
3789
+ version: "4.4.0-dev.1696482119.8f1f6aa",
3788
3790
  events: a,
3789
3791
  access: async e => c(e),
3790
3792
  accessSync: c,
@@ -4386,7 +4388,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4386
4388
  if (e = e.filter((e => function t(e, r) {
4387
4389
  const n = (e = e.toLowerCase().replace(/\\/g, "/")).includes(".e2e.") || e.includes("/e2e.");
4388
4390
  return !("true" !== r.__STENCIL_E2E_TESTS__ || !n) || "true" === r.__STENCIL_SPEC_TESTS__ && !n;
4389
- }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__) {
4391
+ }(e.path, i))), "true" === i.__STENCIL_SCREENSHOT__ && i.__STENCIL_EMULATE_CONFIGS__) {
4390
4392
  const a = JSON.parse(i.__STENCIL_EMULATE_CONFIGS__);
4391
4393
  for (let l = 0; l < a.length; l++) setScreenshotEmulateData(a[l], i), await super.runTests(e, t, r, n, s, o);
4392
4394
  } else await super.runTests(e, t, r, n, s, o);
@@ -4463,7 +4465,7 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
4463
4465
  rootDir: e.rootDir,
4464
4466
  cacheDir: e.cacheDir,
4465
4467
  packageDir: path$2.join(e.sys.getCompilerExecutingPath(), "..", ".."),
4466
- updateMaster: e.flags.updateScreenshot,
4468
+ updateMaster: !!e.flags.updateScreenshot,
4467
4469
  logger: e.logger,
4468
4470
  allowableMismatchedPixels: e.testing.allowableMismatchedPixels,
4469
4471
  allowableMismatchedRatio: e.testing.allowableMismatchedRatio,
@@ -6,4 +6,4 @@ export declare function jestSetupTestFramework(): void;
6
6
  *
7
7
  * @param node The mocked DOM node that will be removed from the DOM
8
8
  */
9
- export declare function removeDomNodes(node: MockNode): void;
9
+ export declare function removeDomNodes(node: MockNode | undefined | null): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.4.0-dev.1696395716.cd91c3e",
3
+ "version": "4.4.0-dev.1696482119.8f1f6aa",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",