headlamp 0.1.19 → 0.1.21
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/cli.cjs +4 -6
- package/dist/cli.cjs.map +2 -2
- package/dist/index.js +4 -6
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -57596,8 +57596,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
|
|
|
57596
57596
|
const dbgPath = process.env.JEST_BRIDGE_DEBUG_PATH;
|
|
57597
57597
|
this._dbg = (msg) => {
|
|
57598
57598
|
try {
|
|
57599
|
-
if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '
|
|
57600
|
-
', 'utf8');
|
|
57599
|
+
if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '\\n', 'utf8');
|
|
57601
57600
|
} catch {}
|
|
57602
57601
|
};
|
|
57603
57602
|
} catch {}
|
|
@@ -57628,8 +57627,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
|
|
|
57628
57627
|
} catch {
|
|
57629
57628
|
line += JSON.stringify({ type: String(payload && payload.type || 'unknown') });
|
|
57630
57629
|
}
|
|
57631
|
-
stderr.write(line + '
|
|
57632
|
-
');
|
|
57630
|
+
stderr.write(line + '\\n');
|
|
57633
57631
|
} catch {}
|
|
57634
57632
|
};
|
|
57635
57633
|
// Expose to class methods (e.g., handleTestEvent). Also keep a safe fallback.
|
|
@@ -60971,7 +60969,7 @@ var program = async () => {
|
|
|
60971
60969
|
os4.tmpdir(),
|
|
60972
60970
|
`jest-bridge-${Date.now()}-${Math.random().toString(36).slice(2)}.json`
|
|
60973
60971
|
);
|
|
60974
|
-
const reporterPath = path13.
|
|
60972
|
+
const reporterPath = path13.join(os4.tmpdir(), "headlamp", "jest-vitest-bridge.cjs");
|
|
60975
60973
|
try {
|
|
60976
60974
|
const needsWrite = (() => {
|
|
60977
60975
|
try {
|
|
@@ -60985,7 +60983,7 @@ var program = async () => {
|
|
|
60985
60983
|
fsSync3.mkdirSync(path13.dirname(reporterPath), { recursive: true });
|
|
60986
60984
|
fsSync3.writeFileSync(reporterPath, JEST_BRIDGE_REPORTER_SOURCE, "utf8");
|
|
60987
60985
|
}
|
|
60988
|
-
const envPath = path13.
|
|
60986
|
+
const envPath = path13.join(os4.tmpdir(), "headlamp", "jest-bridge-env.cjs");
|
|
60989
60987
|
try {
|
|
60990
60988
|
const existingEnv = fsSync3.readFileSync(envPath, "utf8");
|
|
60991
60989
|
if (existingEnv !== JEST_BRIDGE_ENV_SOURCE) {
|