@sap-ux/ui5-test-writer 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,9 +28,12 @@ export async function generateOPAFiles(basePath, options, metadata, fs, log, sta
28
28
  const manifest = readManifest(editor, basePath);
29
29
  const { applicationType, hideFilterBar } = getAppTypeAndHideFilterBarFromManifest(manifest);
30
30
  const config = createConfig(manifest, options, hideFilterBar);
31
+ // When any page in the app uses the FPM template, all generated files must be JS.
32
+ // FPM has no TypeScript templates, so a mixed FPM + LR/OP app cannot use TS test files.
33
+ const hasFPMPage = config.pages.some((page) => page.template === 'FPM');
31
34
  // In standalone mode, auto-detect TS vs JS from the project (presence of `tsconfig.json`)
32
35
  // when the caller has not made an explicit choice. This enforces "TS app → TS tests, JS app → JS tests".
33
- const enableTypeScript = options.enableTypeScript ?? (standalone && existsSync(join(basePath, FileName.Tsconfig)));
36
+ const enableTypeScript = !hasFPMPage && (options.enableTypeScript ?? (standalone && existsSync(join(basePath, FileName.Tsconfig))));
34
37
  const dotFileExtension = enableTypeScript ? DotFileExtension.TS : DotFileExtension.JS;
35
38
  const rootCommonTemplateDirPath = join(__dirname, '../templates/common');
36
39
  const rootV4TemplateDirPath = join(__dirname, `../templates/${applicationType}`); // Only v4 is supported for the time being
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-test-writer",
3
3
  "description": "SAP UI5 tests writer",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,11 +28,11 @@
28
28
  "@sap/ux-specification": "1.144.0",
29
29
  "@sap-ux/edmx-parser": "0.10.0",
30
30
  "@sap-ux/annotation-converter": "0.10.21",
31
- "@sap-ux/ui5-application-writer": "2.0.4",
32
31
  "@sap-ux/logger": "1.0.1",
33
- "@sap-ux/fiori-generator-shared": "1.0.10",
34
- "@sap-ux/project-access": "2.1.2",
35
- "@sap-ux/preview-middleware": "1.0.16"
32
+ "@sap-ux/preview-middleware": "1.0.17",
33
+ "@sap-ux/fiori-generator-shared": "1.0.11",
34
+ "@sap-ux/ui5-application-writer": "2.0.4",
35
+ "@sap-ux/project-access": "2.1.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@jest/globals": "30.3.0",