From db747bbfc22e6bbc59a8d470facd11a8a965eb7e Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 13 Feb 2021 16:01:27 +0200 Subject: [PATCH] test(publish): improve assertions --- packages/plugin-commands-publishing/test/publish.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-commands-publishing/test/publish.ts b/packages/plugin-commands-publishing/test/publish.ts index 09c681a087..0a6d255851 100644 --- a/packages/plugin-commands-publishing/test/publish.ts +++ b/packages/plugin-commands-publishing/test/publish.ts @@ -111,7 +111,9 @@ test('pack packages with workspace LICENSE if no own LICENSE is present', async crossSpawn.sync(pnpmBin, ['add', '../project-1/project-1-1.0.0.tgz', '../project-2/project-2-1.0.0.tgz']) + expect(await exists('node_modules/project-1/LICENSE')).toBeTruthy() expect(await fs.readFile('node_modules/project-1/LICENSE', 'utf8')).toBe('workspace license') + expect(await exists('node_modules/project-2/LICENSE')).toBeTruthy() expect(await fs.readFile('node_modules/project-2/LICENSE', 'utf8')).toBe('project-2 license') process.chdir('..')