From 276693a474cf6a082526e2f6556f9a99afaf6d91 Mon Sep 17 00:00:00 2001 From: Marco Schumacher Date: Mon, 24 Oct 2022 00:42:27 +0200 Subject: [PATCH] feat(lib): multiple entries for umd/iife (fixed test) --- playground/vue-lib/__tests__/vue-lib.spec.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/playground/vue-lib/__tests__/vue-lib.spec.ts b/playground/vue-lib/__tests__/vue-lib.spec.ts index 50b554d63f9f76..d386de85f84b65 100644 --- a/playground/vue-lib/__tests__/vue-lib.spec.ts +++ b/playground/vue-lib/__tests__/vue-lib.spec.ts @@ -25,12 +25,10 @@ describe('vue component library', () => { test('should inject css when cssCodeSplit = true', async () => { // Build lib - const { output } = ( - await build({ - logLevel: 'silent', - configFile: path.resolve(__dirname, '../vite.config.lib-css.ts') - }) - )[0] + const { output } = (await build({ + logLevel: 'silent', + configFile: path.resolve(__dirname, '../vite.config.lib-css.ts') + })) as RollupOutput expect(output[0].code).toContain('.card{padding:4rem}') }) })