@jsenv/core 27.0.0-alpha.50 → 27.0.0-alpha.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.0.0-alpha.50",
3
+ "version": "27.0.0-alpha.51",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -262,6 +262,9 @@ export const createRuntimeFromPlaywright = ({
262
262
  cb({ reason: "page closed" })
263
263
  })
264
264
  cleanupCallbackList.add(closePage)
265
+ cleanupCallbackList.add(() => {
266
+ browser.removeListener("disconnected", disconnectedCallback)
267
+ })
265
268
  const notifyPrevious = stopAfterAllSignal.notify
266
269
  stopAfterAllSignal.notify = async () => {
267
270
  await notifyPrevious()
@@ -147,9 +147,6 @@ export const jsenvPluginHtmlSupervisor = ({
147
147
  return
148
148
  }
149
149
  })
150
- if (scriptsToSupervise.length === 0) {
151
- return null
152
- }
153
150
  const [htmlSupervisorInstallerFileReference] = referenceUtils.inject({
154
151
  type: "js_import_export",
155
152
  expectedType: "js_module",
@@ -60,7 +60,7 @@ export const formatExecutionResult = (
60
60
  file: fileRelativeUrl,
61
61
  runtime: `${runtimeName}/${runtimeVersion}`,
62
62
  duration: msAsDuration(duration),
63
- ...(error ? { error: error.stack } : {}),
63
+ ...(error ? { error: error.stack || error.message || error } : {}),
64
64
  },
65
65
  consoleOutput,
66
66
  })