test(build): assert Windows glob omission without hiding partial builds
This commit is contained in:
1 parent
5831f5a3cf
commit
3a8df502e0
1 file changed
+2
-1
@@ -18,5 +18,6 @@ it('selects workspace packages from Windows and POSIX manifest paths', async ()
|
||||
const options = { cwd, config: false as const, entry: ['src/index.ts'], write: false, dts: false, logLevel: 'silent' as const }
|
||||
const selected = await build({ ...options, workspace: workspacePackageGlobs(manifests) })
|
||||
expect(selected).toHaveLength(2)
|
||||
await expect(build({ ...options, workspace: manifests.map(path => win32.dirname(path)) })).rejects.toThrow('No workspace packages found')
|
||||
const unnormalized = await build({ ...options, workspace: manifests.map(path => win32.dirname(path)) })
|
||||
expect(unnormalized.map(bundle => bundle.config.name)).toEqual(['fixture-1'])
|
||||
})
|
||||
Reference in new issue
Block a user