From f1ba6ed990a7044a244a6b4176767d7b99c96697 Mon Sep 17 00:00:00 2001 From: Joshua Byrd Date: Wed, 6 Dec 2023 09:23:12 +1000 Subject: [PATCH] Minor remarks --- test/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.js b/test/test.js index 664670e..e39a9ef 100644 --- a/test/test.js +++ b/test/test.js @@ -54,6 +54,7 @@ beforeAll(async () => { await rmRecursive(tempRoot); await fs.mkdir(tempRoot); + // Link local aunty to global const linkOutput = execSync('npm link'); console.log('Running: npm link', linkOutput.toString()); }); @@ -112,6 +113,8 @@ afterAll(async () => { it('should build the generated project', async () => { process.chdir(generatedProjectRoot); + // execSync will throw on non-zero exit code + { const output = execSync('npm link @abcnews/aunty'); console.log('Running: npm link @abcnews/aunty', output.toString());