(code: string)
| 3 | import { ensureNativeScriptModuleBindings } from './websocket.js'; |
| 4 | |
| 5 | function parseOk(code: string): { ok: boolean; error?: any } { |
| 6 | try { |
| 7 | babelParse(code, { sourceType: 'module', plugins: ['jsx', 'importMeta', 'topLevelAwait', 'logicalAssignment', 'optionalChaining', 'nullishCoalescingOperator', 'optionalCatchBinding'] as any }); |
| 8 | return { ok: true }; |
| 9 | } catch (e) { |
| 10 | return { ok: false, error: e }; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | describe('vendor-binding syntax integrity', () => { |
| 15 | it('produces valid JS for multiple plugin import shapes (app-like)', () => { |
no outgoing calls
no test coverage detected