import test from 'node:test'; import assert from 'node:assert/strict'; import { existsSync, readFileSync } from 'node:fs'; import { resolve } from 'node:path'; function readSource(relativePath) { const directPath = resolve(process.cwd(), relativePath); if (existsSync(directPath)) { return readFileSync(directPath, 'utf8'); } return readFileSync(resolve(process.cwd(), 'frontend', relativePath), 'utf8'); } test('shell route host sources do not contain iframe rendering paths', () => { const files = [ 'src/portal-shell/App.vue', 'src/portal-shell/views/NativeRouteView.vue', 'src/portal-shell/router.js', 'src/portal-shell/navigationState.js', ]; files.forEach((filePath) => { const source = readSource(filePath).toLowerCase(); assert.doesNotMatch(source, /