From 465b724cd93c2798d4c064c03346d5042bdda17d Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Wed, 5 Feb 2025 11:28:32 +0100 Subject: [PATCH] test vite beta --- tests/scenarios/vite-internals-test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/scenarios/vite-internals-test.ts b/tests/scenarios/vite-internals-test.ts index a80ed0995..bc91bbe6c 100644 --- a/tests/scenarios/vite-internals-test.ts +++ b/tests/scenarios/vite-internals-test.ts @@ -266,7 +266,7 @@ function editBabelConfig(src: string): string { return src.replace(/babelCompatSupport\(\),/, `babelCompatSupport\(\), 'babel-plugin-is-a-module',`); } -function runViteInternalsTest(scenario: Scenario) { +function runViteInternalsTest(scenario: Scenario, useViteBeta = false) { Qmodule(scenario.name, function (hooks) { let app: PreparedApp; let server: CommandWatcher; @@ -274,6 +274,9 @@ function runViteInternalsTest(scenario: Scenario) { hooks.before(async () => { app = await scenario.prepare(); + if (useViteBeta) { + await app.execute('pnpm install vite@beta'); + } }); Qmodule('vite dev', function (hooks) { @@ -345,7 +348,10 @@ tsAppScenarios .map('vite-internals', app => { buildViteInternalsTest(true, app); }) - .forEachScenario(runViteInternalsTest); + .forEachScenario((scenario: Scenario) => { + runViteInternalsTest(scenario); + runViteInternalsTest(scenario, true); + }); // After 5.12, there is no non-colocated templates in ember. tsAppScenarios