Skip to content

Commit

Permalink
feat(lib): multiple entries for umd/iife (fixed test)
Browse files Browse the repository at this point in the history
  • Loading branch information
schummar committed Oct 23, 2022
1 parent 0fc767d commit 276693a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions playground/vue-lib/__tests__/vue-lib.spec.ts
Expand Up @@ -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}')
})
})

0 comments on commit 276693a

Please sign in to comment.