Testing PackagerRunner Bundle Processing in Parcel
This test suite validates the PackagerRunner functionality in Parcel, focusing on bundle packaging operations and module integration. It verifies the core bundling process by testing how PackagerRunner handles multiple module assets and configures output paths.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
parcel-bundler/parcel
packages/core/core/test/PackagerRunner.test.js
// // @flow
// 'use strict';
// const PackagerRunner = require('../src/PackagerRunner');
// const assert = require('assert');
// const path = require('path');
// const config = require('@parcel/config-default');
// describe('PackagerRunner', () => {
// it('works', async () => {
// let bundle = {
// destPath: path.join(__dirname, 'dist', 'bundle.js'),
// assets: [
// {blobs: {code: require.resolve('./fixtures/module-a')}},
// {blobs: {code: require.resolve('./fixtures/module-b')}},
// ],
// };
// let packagerRunner = new PackagerRunner({
// parcelConfig: config,
// options: {}
// });
// await packagerRunner.runPackager({ bundle });
// });
// });