'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var leftest = require('@antischematic/leftest'); var vitest = require('vitest'); var _a; class VitestTestSuiteAdapter { constructor() { this.isAsync = true; } afterScenario(impl, metadata) { vitest.test('After Scenario', impl); } afterStep(impl, metadata) { vitest.test('After Step', impl); } beforeScenario(impl, metadata) { vitest.test('Before Scenario', impl); } beforeStep(impl, metadata) { vitest.test('Before Step', impl); } step(name, description, impl, metadata) { vitest.test(`${name} ${description}`, impl); } suite(name, impl, flag) { switch (flag) { case leftest.Flag.ONLY: { vitest.suite.only(name, impl); break; } case leftest.Flag.SKIP: { vitest.suite.skip(name, impl); break; } case leftest.Flag.DEFAULT: { vitest.suite(name, impl); } } } test(name, impl, { flag }) { switch (flag) { case leftest.Flag.ONLY: { vitest.suite.only(name, impl); break; } case leftest.Flag.SKIP: { vitest.suite.skip(name, impl); break; } case leftest.Flag.DEFAULT: { vitest.suite(name, impl); } } } } leftest.setAdapter(new VitestTestSuiteAdapter()); leftest.setTags((_a = process.env['LEFTEST_TAGS']) !== null && _a !== void 0 ? _a : ''); class VitestHarnessEnvironment extends leftest.UnitTestHarnessEnvironment { } function getHarness(harnessType, options) { return VitestHarnessEnvironment.getHarness(harnessType, options); } function getHarnessOrNull(harnessType, options) { return VitestHarnessEnvironment.getHarnessOrNull(harnessType, options); } function getAllHarnesses(harnessType, options) { return VitestHarnessEnvironment.getAllHarnesses(harnessType, options); } function getHarnessForContainer(element, harnessType, options) { return VitestHarnessEnvironment.getHarnessForContainer(element, harnessType, options); } function getAllHarnessesForContainer(element, harnessType, options) { return VitestHarnessEnvironment.getAllHarnessesForContainer(element, harnessType, options); } function getNativeElement(element) { return VitestHarnessEnvironment.getNativeElement(element); } function getRootHarnessLoader() { return VitestHarnessEnvironment.getRootHarnessLoader(); } exports.VitestHarnessEnvironment = VitestHarnessEnvironment; exports.VitestTestSuiteAdapter = VitestTestSuiteAdapter; exports.getAllHarnesses = getAllHarnesses; exports.getAllHarnessesForContainer = getAllHarnessesForContainer; exports.getHarness = getHarness; exports.getHarnessForContainer = getHarnessForContainer; exports.getHarnessOrNull = getHarnessOrNull; exports.getNativeElement = getNativeElement; exports.getRootHarnessLoader = getRootHarnessLoader;