Skip to content

Commit eaddaca

Browse files
committed
test(dogfood): alias the pinyin search plugin to source for the companion-scope pin
check:test-source-alias asks for it: the plugin's fill path is part of the pin's subject, so the verdict is about this checkout's source. Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3ded18f commit eaddaca

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎packages/qa/dogfood/vitest.config.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ export default defineConfig({
273273
find: /^@objectstack\/service-datasource$/,
274274
replacement: path.resolve(__dirname, '../../services/service-datasource/src/index.ts'),
275275
},
276+
// [#21880] `search-companion-field-scope.dogfood.test.ts` mounts
277+
// `PinyinSearchPlugin` on a real boot, and the companion values it
278+
// writes are what every search in that file matches through. The
279+
// plugin's fill path is part of the pin's subject, so the verdict
280+
// is aliased to THIS checkout's source, not to the last `pnpm build`.
281+
{
282+
find: /^@objectstack\/plugin-pinyin-search$/,
283+
replacement: path.resolve(__dirname, '../../plugins/plugin-pinyin-search/src/index.ts'),
284+
},
276285
],
277286
},
278287
test: {

0 commit comments

Comments
 (0)