From dc1047650cc54e0cfa4e98a18a6546a4da060cd5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 1 Aug 2026 16:44:54 +0000 Subject: [PATCH] WIP: add reproduction sample for vitest tags issue --- samples/basic-v4/test/tags.test.ts | 11 +++++++++++ samples/basic-v4/vitest.config.ts | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 samples/basic-v4/test/tags.test.ts diff --git a/samples/basic-v4/test/tags.test.ts b/samples/basic-v4/test/tags.test.ts new file mode 100644 index 0000000..3a25d81 --- /dev/null +++ b/samples/basic-v4/test/tags.test.ts @@ -0,0 +1,11 @@ +import { describe, expect, it } from 'vitest' + +describe('getResultOrThrow', () => { + it('identifies an up-trending asset by a positive ROC', { tags: ['tulipindicators'] }, () => { + expect(1).toBe(1) + }) + + it('runs without a tag', () => { + expect(2).toBe(2) + }) +}) diff --git a/samples/basic-v4/vitest.config.ts b/samples/basic-v4/vitest.config.ts index 2bae845..877d0a0 100644 --- a/samples/basic-v4/vitest.config.ts +++ b/samples/basic-v4/vitest.config.ts @@ -11,6 +11,12 @@ export default defineConfig({ test: { include: ['src/should_included_test.ts', 'test/**/*.test.ts'], exclude: ['test/ignored.test.ts'], + tags: [ + { + description: '...', + name: 'tulipindicators', + }, + ], coverage: { provider: 'istanbul', }, -- 2.54.0