File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
packages/compass-smoke-tests/src/tests Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
2222
2323 const install = getInstaller ( kind ) ;
2424
25+ debug ( 'Installing' ) ;
2526 const { appName, appPath, uninstall } = install ( {
2627 ...subject ,
2728 filepath,
@@ -40,6 +41,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
4041 const HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE = `http://localhost:${ port } ` ;
4142
4243 try {
44+ debug ( 'Executing' ) ;
4345 // must be async because the update server is running in the same process
4446 await executeAsync (
4547 'npm' ,
@@ -71,6 +73,7 @@ export async function testAutoUpdateFrom(context: SmokeTestsContext) {
7173 delete process . env . UPDATE_CHECKER_ALLOW_DOWNGRADES ;
7274 }
7375 } finally {
76+ debug ( 'Uninstalling' ) ;
7477 await uninstall ( ) ;
7578 }
7679}
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict' ;
2- import fs from 'node:fs' ;
32import createDebug from 'debug' ;
43import { type SmokeTestsContext } from '../context' ;
54import { getInstaller } from '../installers' ;
@@ -40,6 +39,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
4039 context . forceDownload
4140 ) ;
4241
42+ debug ( 'Installing' ) ;
4343 const { appPath, appName, uninstall } = install ( {
4444 ...latestApp ,
4545 filepath,
@@ -72,6 +72,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
7272 const HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE = `http://localhost:${ port } ` ;
7373
7474 try {
75+ debug ( 'Executing' ) ;
7576 // must be async because the update server is running in the same process
7677 await executeAsync (
7778 'npm' ,
@@ -106,6 +107,7 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
106107 delete process . env . UPDATE_CHECKER_ALLOW_DOWNGRADES ;
107108 }
108109 } finally {
110+ debug ( 'Uninstalling' ) ;
109111 await uninstall ( ) ;
110112 }
111113}
Original file line number Diff line number Diff line change 1- import fs from 'node:fs' ;
21import createDebug from 'debug' ;
32import { type SmokeTestsContext } from '../context' ;
43import { execute } from '../execute' ;
@@ -18,12 +17,14 @@ export async function testTimeToFirstQuery(context: SmokeTestsContext) {
1817
1918 const install = getInstaller ( kind ) ;
2019
20+ debug ( 'Installing' ) ;
2121 const { appPath, appName, uninstall } = install ( {
2222 ...subject ,
2323 sandboxPath,
2424 } ) ;
2525
2626 try {
27+ debug ( 'Executing' ) ;
2728 execute (
2829 'npm' ,
2930 [
@@ -46,6 +47,7 @@ export async function testTimeToFirstQuery(context: SmokeTestsContext) {
4647 }
4748 ) ;
4849 } finally {
50+ debug ( 'Uninstalling' ) ;
4951 await uninstall ( ) ;
5052 }
5153}
You can’t perform that action at this time.
0 commit comments