Skip to content

Commit e2ffb0d

Browse files
committed
fix(ci): repair the unocss 66.10 dep-update fallout
- `@unocss/inspector` 66.10 imports `@devframes/vite/single` at module load, and pnpm links it to the workspace package, so the two example builds that load `unocss/vite` in their vite config now declare a turbo edge on `@devframes/vite#build` instead of racing it - dedupe the auto-installed `@unocss/core` peer to 66.10.0 (the stale 66.8.1 copy made `design/uno.config.ts` fail typecheck) - capture the DP_MESSAGES_0001 warning in a plain array: vitest 5 clears spy call history recorded during `beforeAll` - refresh the a11y client-script API snapshot for tsnapi 1.4.2's default export rendering
1 parent b0ee7ee commit e2ffb0d

5 files changed

Lines changed: 59 additions & 180 deletions

File tree

‎plugins/messages/test/dev-server.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ describe('messages dev-server (hub context)', () => {
101101

102102
describe('messages dev-server (plain context: warn + noop)', () => {
103103
let server: MessagesServer
104-
const warn = vi.spyOn(console, 'warn').mockImplementation(() => {})
104+
// The warning fires during `beforeAll`, and vitest clears spy call history
105+
// before the first test runs, so capture the output in a plain array.
106+
const warned: string[] = []
107+
const warn = vi.spyOn(console, 'warn').mockImplementation((...args) => {
108+
warned.push(args.map(String).join(' '))
109+
})
105110

106111
beforeAll(async () => {
107112
assertSpaBuilt()
@@ -114,8 +119,7 @@ describe('messages dev-server (plain context: warn + noop)', () => {
114119
})
115120

116121
it('warns DP_MESSAGES_0001 when no messages host is attached', () => {
117-
const output = warn.mock.calls.flat().map(String).join('\n')
118-
expect(output).toContain('DP_MESSAGES_0001')
122+
expect(warned.join('\n')).toContain('DP_MESSAGES_0001')
119123
})
120124

121125
it('list no-ops with an empty full snapshot', async () => {

0 commit comments

Comments
 (0)