From e1514e140f27773a057bed030d899382bf97b4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 8 Sep 2025 16:38:54 +0200 Subject: [PATCH] fix tests after the changes --- tools/modern-tests/react-router.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/modern-tests/react-router.test.js b/tools/modern-tests/react-router.test.js index 1941fa7b85..0cc7c98dc8 100644 --- a/tools/modern-tests/react-router.test.js +++ b/tools/modern-tests/react-router.test.js @@ -20,7 +20,7 @@ describe('ReactRouter App Bundling /', () => { }, customAssertions: { afterRun: async ({ result, port }) => { - await waitForReactEnvs(result.outputLines, { isJsxEnabled: true }); + await waitForReactEnvs(result.outputLines, { isTsxEnabled: true }); await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/); await assert404Page(port); // Less styles support @@ -47,7 +47,7 @@ describe('ReactRouter App Bundling /', () => { await waitForMeteorOutput(allConsoleLogs, /.*HMR.*Updated modules:.*/); }, afterRunProduction: async ({ result, port }) => { - await waitForReactEnvs(result.outputLines, { isJsxEnabled: true }); + await waitForReactEnvs(result.outputLines, { isTsxEnabled: true }); await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/); await assert404Page(port, { isProductionMode: true }); // Less styles support @@ -74,7 +74,7 @@ describe('ReactRouter App Bundling /', () => { await waitForReactEnvs(result.outputLines); }, afterBuild: async ({ result }) => { - await waitForReactEnvs(result.outputLines, { isJsxEnabled: true }); + await waitForReactEnvs(result.outputLines, { isTsxEnabled: true }); await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/); }, } @@ -95,10 +95,10 @@ export async function waitForReactEnvs(outputLines, options = {}) { /.*isReactEnabled:.*true.*/, options ); - if (options.isJsxEnabled) { + if (options.isTsxEnabled) { await waitForMeteorOutput( outputLines, - /.*isJsxEnabled:.*true.*/, + /.*isTsxEnabled:.*true.*/, options ); }