@stencil/core 4.4.0-dev.1696395716.cd91c3e → 4.4.0-dev.1696568523.8d03606

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v4.4.0-dev.1696395716.cd91c3e | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v4.4.0-dev.1696568523.8d03606 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -2370,7 +2370,15 @@ const taskTest = async (config) => {
2370
2370
  return config.sys.exit(1);
2371
2371
  }
2372
2372
  try {
2373
- // let's test!
2373
+ /**
2374
+ * We dynamically import the testing submodule here in order for Stencil's lazy module checking to work properly.
2375
+ *
2376
+ * Prior to this call, we create a collection of string-based node module names and ensure that they're installed &
2377
+ * on disk. The testing submodule includes `jest` (amongst other) testing libraries in its dependency chain. We need
2378
+ * to run the lazy module check _before_ we include `jest` et al. in our dependency chain otherwise, the lazy module
2379
+ * checking would fail to run properly (because we'd import `jest`, which wouldn't exist, before we even checked if
2380
+ * it was installed).
2381
+ */
2374
2382
  const { createTesting } = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('../testing/index.js')); });
2375
2383
  const testing = await createTesting(config);
2376
2384
  const passed = await testing.run(testingRunOpts);