fix: update TopMenuSection test for isIdle change, add knip ignore for pending composable

This commit is contained in:
bymyself
2026-03-12 05:05:44 -07:00
parent 123284d03a
commit 304516a9ed
2 changed files with 14 additions and 1 deletions

View File

@@ -62,7 +62,9 @@ const config: KnipConfig = {
// Agent review check config, not part of the build
'.agents/checks/eslint.strict.config.js',
// Loaded via @plugin directive in CSS, not detected by knip
'packages/design-system/src/css/lucideStrokePlugin.js'
'packages/design-system/src/css/lucideStrokePlugin.js',
// Pending integration in stacked PR (concurrent job execution)
'src/composables/useConcurrentExecution.ts'
],
compilers: {
// https://github.com/webpro-nl/knip/issues/1008#issuecomment-3207756199

View File

@@ -384,6 +384,17 @@ describe('TopMenuSection', () => {
configureSettings(pinia, true)
const executionStore = useExecutionStore(pinia)
executionStore.activeJobId = 'job-1'
executionStore.nodeProgressStatesByJob = {
'job-1': {
'node-1': {
value: 50,
max: 100,
state: 'running',
node_id: 'node-1',
prompt_id: 'job-1'
}
}
}
const ComfyActionbarStub = createComfyActionbarStub(actionbarTarget)