From a0a2d1863d342e08e9a184506c80b1ffb52298ca Mon Sep 17 00:00:00 2001 From: Artur Fedorov Date: Sat, 13 Dec 2025 00:20:55 +0100 Subject: [PATCH] Remove skip vue 3 helper It is no longer used --- spec/frontend/__helpers__/vue3_conditional.js | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 spec/frontend/__helpers__/vue3_conditional.js diff --git a/spec/frontend/__helpers__/vue3_conditional.js b/spec/frontend/__helpers__/vue3_conditional.js deleted file mode 100644 index 9b3c1ca3e98094..00000000000000 --- a/spec/frontend/__helpers__/vue3_conditional.js +++ /dev/null @@ -1,35 +0,0 @@ -/* eslint-disable jest/valid-describe-callback, jest/no-disabled-tests, jest/no-export, jest/valid-title */ -import { env, argv } from 'node:process'; - -const skipVue3 = env.VUE_VERSION === '3' && !argv.includes('--no-skip-vue3'); - -export class SkipReason { - constructor({ name, reason, issue } = {}) { - if (!name || !reason || !issue) { - throw new Error(`Provide a name, reason and issue: new SkipReason({name,reason,issue})`); - } - this.name = name; - this.reason = reason; - } - toString() { - return skipVue3 ? ` [SKIPPED with Vue@3]: ${this.name} (${this.reason})` : this.name; - } -} - -export function describeSkipVue3(reason, ...args) { - if (!(reason instanceof SkipReason)) { - throw new Error('Please provide a proper SkipReason'); - } - - return skipVue3 - ? describe.skip(reason.toString(), ...args) - : describe(reason.toString(), ...args); -} - -export function itSkipVue3(reason, ...args) { - if (!(reason instanceof SkipReason)) { - throw new Error('Please provide a proper SkipReason'); - } - - return skipVue3 ? it.skip(reason.toString(), ...args) : it(reason.toString(), ...args); -} -- GitLab