MCPcopy Index your code
hub / github.com/rollup/plugins / testBundle

Function testBundle

packages/wasm/test/test.mjs:25–29  ·  view source on GitHub ↗
(t, bundle)

Source from the content-addressed store, hash-verified

23const outputFile = './output/bundle.js';
24const outputDir = './output/';
25const testBundle = async (t, bundle) => {
26 const code = await getCode(bundle);
27 const func = new AsyncFunction('t', `let result;\n\n${code}\n\nreturn result;`);
28 return func(t);
29};
30test('async compiling', async () => {
31 expect.assertions(2);
32 const bundle = await rollup({

Callers 1

test.mjsFile · 0.70

Calls 1

getCodeFunction · 0.90

Tested by

no test coverage detected