import test from 'node:test'; import assert from 'node:assert/strict'; import { fixture } from './fixtures.ts'; import { transport } from './http.ts'; import { handler } from '../server.ts'; import { Readable, Writable } from 'node:stream'; import type { IncomingMessage, ServerResponse } from 'node:http'; import { readdir } from 'node:fs/promises'; test('wrapper serves the locally built Motion editor and hides local source/runtime files', () => fixture(async store => { const request = transport(store); const html = await (await request('/')).text(); assert.match(html, /data-motion-studio/); assert.doesNotMatch(html, /