import assert from 'node:assert/strict' import test from 'node:test' import { readFileSync } from 'node:fs' import { createHash } from 'node:crypto' import ts from 'typescript' import axios from 'axios' import { ref, computed } from 'vue' import { mkdtemp, writeFile, utimes, rm } from 'node:fs/promises' import { tmpdir } from 'node:os' import { join } from 'node:path' import { verifyReceiptFile, acceptReceiptDownload } from './receiptBrowserAcceptance.mjs' // Execute production HTTP, API and SFC setup code. Only transport, browser saving // and UI feedback are replaced; this is not a browser/server isolation test. function compile(path, dependencies, globals = {}) { let source = readFileSync(new URL(path, import.meta.url), 'utf8') if (path.endsWith('.vue')) { source = source.match(/