From ec6092f7d2834fdce3ccacdb8a787fd445365ff3 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Sat, 2 May 2020 10:45:32 -0400 Subject: [PATCH] dbg --- __tests__/authutil.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/__tests__/authutil.test.ts b/__tests__/authutil.test.ts index 373cbec5..a8b9ac2f 100644 --- a/__tests__/authutil.test.ts +++ b/__tests__/authutil.test.ts @@ -52,6 +52,11 @@ describe('authutil tests', () => { }); }, 100000); + + function dbg(message: string) { + process.stderr.write('dbg::' + message + '::\n'); + } + afterAll(async () => { if (_runnerDir) { await io.rmRF(_runnerDir); @@ -62,7 +67,9 @@ describe('authutil tests', () => { await auth.configAuthentication('https://registry.npmjs.org/', 'false'); expect(fs.statSync(rcFile)).toBeDefined(); - expect(fs.readFileSync(rcFile, {encoding: 'utf8'})).toMatchSnapshot(); + let contents = fs.readFileSync(rcFile, {encoding: 'utf8'}); + dbg(contents); + expect(contents).toMatchSnapshot(); }); it('Appends trailing slash to registry', async () => {