repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/Handle.js
packages/core/workers/src/Handle.js
// @flow strict-local import {registerSerializableClass} from '@parcel/core'; // $FlowFixMe import packageJson from '../package.json'; let HANDLE_ID = 0; // $FlowFixMe export type HandleFunction = (...args: Array<any>) => any; type HandleOpts = {| fn?: HandleFunction, childId?: ?number, id?: number, |}; const ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/Worker.js
packages/core/workers/src/Worker.js
// @flow import type {FilePath} from '@parcel/types-internal'; import type {BackendType, WorkerImpl, WorkerMessage} from './types'; import type {SharedReference} from './WorkerFarm'; import nullthrows from 'nullthrows'; import EventEmitter from 'events'; import ThrowableDiagnostic from '@parcel/diagnostic'; import {g...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/backend.js
packages/core/workers/src/backend.js
// @flow import type {BackendType, WorkerImpl} from './types'; export function detectBackend(): BackendType { // $FlowFixMe if (process.browser) return 'web'; switch (process.env.PARCEL_WORKER_BACKEND) { case 'threads': case 'process': return process.env.PARCEL_WORKER_BACKEND; } try { req...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/core-worker.js
packages/core/workers/src/core-worker.js
// This is used only in browser builds module.exports = {};
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/child.js
packages/core/workers/src/child.js
// @flow import type { CallRequest, WorkerDataResponse, WorkerErrorResponse, WorkerMessage, WorkerRequest, WorkerResponse, ChildImpl, } from './types'; import type {Async, IDisposable} from '@parcel/types-internal'; import type {SharedReference} from './WorkerFarm'; import * as coreWorker from './core-w...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/WorkerFarm.js
packages/core/workers/src/WorkerFarm.js
// @flow import type {ErrorWithCode, FilePath} from '@parcel/types-internal'; import type { CallRequest, HandleCallRequest, WorkerRequest, WorkerDataResponse, WorkerErrorResponse, BackendType, } from './types'; import type {HandleFunction} from './Handle'; import * as coreWorker from './core-worker'; impo...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/process/ProcessWorker.js
packages/core/workers/src/process/ProcessWorker.js
// @flow import type { WorkerImpl, MessageHandler, ErrorHandler, ExitHandler, WorkerMessage, } from '../types'; import childProcess, {type ChildProcess} from 'child_process'; import path from 'path'; import {serialize, deserialize} from '@parcel/core'; const WORKER_PATH = path.join(__dirname, 'ProcessChild....
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/process/ProcessChild.js
packages/core/workers/src/process/ProcessChild.js
// @flow import type { ChildImpl, MessageHandler, ExitHandler, WorkerMessage, } from '../types'; import nullthrows from 'nullthrows'; import {setChild} from '../childState'; import {Child} from '../child'; import {serialize, deserialize} from '@parcel/core'; export default class ProcessChild implements ChildI...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/threads/ThreadsWorker.js
packages/core/workers/src/threads/ThreadsWorker.js
// @flow import type { WorkerImpl, MessageHandler, ErrorHandler, ExitHandler, WorkerMessage, } from '../types'; import {Worker} from 'worker_threads'; import path from 'path'; import {prepareForSerialization, restoreDeserializedObject} from '@parcel/core'; const WORKER_PATH = path.join(__dirname, 'ThreadsCh...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/threads/ThreadsChild.js
packages/core/workers/src/threads/ThreadsChild.js
// @flow import type { ChildImpl, MessageHandler, ExitHandler, WorkerMessage, } from '../types'; import {isMainThread, parentPort} from 'worker_threads'; import nullthrows from 'nullthrows'; import {setChild} from '../childState'; import {Child} from '../child'; import {prepareForSerialization, restoreDeserial...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/web/WebChild.js
packages/core/workers/src/web/WebChild.js
// @flow /* eslint-env worker*/ import type { ChildImpl, MessageHandler, ExitHandler, WorkerMessage, } from '../types'; import {setChild} from '../childState'; import {Child} from '../child'; import {prepareForSerialization, restoreDeserializedObject} from '@parcel/core'; export default class WebChild impleme...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/src/web/WebWorker.js
packages/core/workers/src/web/WebWorker.js
// @flow import type { WorkerImpl, MessageHandler, ErrorHandler, ExitHandler, WorkerMessage, } from '../types'; import {prepareForSerialization, restoreDeserializedObject} from '@parcel/core'; import {makeDeferredWithPromise} from '@parcel/utils'; let id = 0; export default class WebWorker implements Worke...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/workerfarm.js
packages/core/workers/test/workerfarm.js
import Logger from '@parcel/logger'; import assert from 'assert'; import WorkerFarm from '../src'; describe('WorkerFarm', function () { this.timeout(30000); it('Should start up workers', async () => { let workerfarm = new WorkerFarm({ warmWorkers: false, useLocalWorker: false, workerPath: re...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/cpuCount.test.js
packages/core/workers/test/cpuCount.test.js
import assert from 'assert'; import os from 'os'; import getCores, {detectRealCores} from '../src/cpuCount'; describe('cpuCount', function () { it('Should be able to detect real cpu count', () => { // Windows not supported as getting the cpu count takes a couple seconds... if (os.platform() === 'win32') ret...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/echo.js
packages/core/workers/test/integration/workerfarm/echo.js
function run(_, data) { return data; } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/ping.js
packages/core/workers/test/integration/workerfarm/ping.js
function run() { return 'pong'; } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/reverse-handle.js
packages/core/workers/test/integration/workerfarm/reverse-handle.js
function run(workerApi, handle) { return workerApi.runHandle(handle, []); } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/resolve-shared-reference.js
packages/core/workers/test/integration/workerfarm/resolve-shared-reference.js
function run(workerApi, ref) { return ref === workerApi.resolveSharedReference(workerApi.getSharedReference(ref)); } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/shared-reference.js
packages/core/workers/test/integration/workerfarm/shared-reference.js
function run(workerApi, ref) { let sharedReference = workerApi.getSharedReference(ref); return sharedReference || 'Shared reference does not exist'; } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/master-process-id.js
packages/core/workers/test/integration/workerfarm/master-process-id.js
module.exports = function() { return process.pid; };
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/console.js
packages/core/workers/test/integration/workerfarm/console.js
const WorkerFarm = require('../../../src/WorkerFarm').default; function run() { if (WorkerFarm.isWorker()) { // Only test this behavior in workers. Logging in the main process will // always work. console.log('one'); console.info('two'); console.warn('three'); console.error('four'); conso...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/ipc-pid.js
packages/core/workers/test/integration/workerfarm/ipc-pid.js
const WorkerFarm = require('../../../src/WorkerFarm').default; function run(api) { let result = [process.pid]; return new Promise((resolve, reject) => { api.callMaster({ location: require.resolve('./master-process-id.js'), args: [] }) .then(pid => { result.push(pid); resol...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/ipc.js
packages/core/workers/test/integration/workerfarm/ipc.js
const WorkerFarm = require('../../../src/WorkerFarm').default; function run(api, a, b) { return api.callMaster({ location: require.resolve('./master-sum.js'), args: [a, b] }); } exports.run = run;
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/master-sum.js
packages/core/workers/test/integration/workerfarm/master-sum.js
module.exports = function(a, b) { return a + b; };
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/workers/test/integration/workerfarm/logging.js
packages/core/workers/test/integration/workerfarm/logging.js
const WorkerFarm = require('../../../src/WorkerFarm').default; const Logger = require('@parcel/logger').default; function run() { if (WorkerFarm.isWorker()) { // Only test this behavior in workers. Logging in the main process will // always work. Logger.info({ origin: 'logging-worker', messag...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/logger/src/Logger.js
packages/core/logger/src/Logger.js
// @flow strict-local import type { IDisposable, LogEvent, PluginLogger as IPluginLogger, } from '@parcel/types'; import type { Diagnostic, Diagnostifiable, DiagnosticWithoutOrigin, } from '@parcel/diagnostic'; import {ValueEmitter} from '@parcel/events'; import {inspect} from 'util'; import {errorToDiagn...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/logger/test/Logger.test.js
packages/core/logger/test/Logger.test.js
// @flow strict-local import assert from 'assert'; import sinon from 'sinon'; import Logger from '../src/Logger'; describe('Logger', () => { let onLog; let logDisposable; beforeEach(() => { onLog = sinon.spy(); logDisposable = Logger.onLog(onLog); }); afterEach(() => { logDisposable.dispose(); ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/LMDBCache.js
packages/core/cache/src/LMDBCache.js
// @flow strict-local import type {FilePath} from '@parcel/types'; import type {Cache} from './types'; import type {Readable, Writable} from 'stream'; import stream from 'stream'; import path from 'path'; import {promisify} from 'util'; import {serialize, deserialize, registerSerializableClass} from '@parcel/core'; im...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/types.js
packages/core/cache/src/types.js
// @flow import type {Cache} from '@parcel/types'; export type {Cache};
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/index.js
packages/core/cache/src/index.js
// @flow export type {Cache} from './types'; export * from './LMDBCache'; export * from './FSCache'; export * from './IDBCache';
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/IDBCache.js
packages/core/cache/src/IDBCache.js
// @flow strict-local import type {Cache} from './types'; // $FlowFixMe export class IDBCache implements Cache { constructor() { throw new Error('IDBCache is only supported in the browser'); } }
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/IDBCache.browser.js
packages/core/cache/src/IDBCache.browser.js
// @flow strict-local import type {Cache} from './types'; import {Readable} from 'stream'; import {serialize, deserialize, registerSerializableClass} from '@parcel/core'; import {bufferStream} from '@parcel/utils'; // $FlowFixMe[untyped-import] import packageJson from '../package.json'; // $FlowFixMe[untyped-import] i...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/cache/src/FSCache.js
packages/core/cache/src/FSCache.js
// @flow strict-local import type {Readable, Writable} from 'stream'; import type {FilePath} from '@parcel/types'; import type {FileSystem} from '@parcel/fs'; import type {Cache} from './types'; import stream from 'stream'; import path from 'path'; import {promisify} from 'util'; import logger from '@parcel/logger'; ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/types.js
packages/core/graph/src/types.js
// @flow strict-local // forcing NodeId to be opaque as it should only be created once export type NodeId = number; export function toNodeId(x: number): NodeId { return x; } export function fromNodeId(x: NodeId): number { return x; } export type ContentKey = string; export type Edge<TEdgeType: number> = {| fro...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/AdjacencyList.js
packages/core/graph/src/AdjacencyList.js
// @flow import assert from 'assert'; import nullthrows from 'nullthrows'; import {SharedBuffer} from './shared-buffer'; import {fromNodeId, toNodeId} from './types'; import {ALL_EDGE_TYPES, type NullEdgeType, type AllEdgeTypes} from './Graph'; import type {NodeId} from './types'; /** The address of the node in the no...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
true
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/index.js
packages/core/graph/src/index.js
// @flow strict-local export type {NodeId, ContentKey, Edge} from './types'; export type {GraphOpts} from './Graph'; export type {ContentGraphOpts, SerializedContentGraph} from './ContentGraph'; export {toNodeId, fromNodeId} from './types'; export {default as Graph, ALL_EDGE_TYPES, mapVisitor} from './Graph'; export {...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/ContentGraph.js
packages/core/graph/src/ContentGraph.js
// @flow strict-local import type {ContentKey, NodeId} from './types'; import Graph, {type SerializedGraph, type GraphOpts} from './Graph'; import nullthrows from 'nullthrows'; export type ContentGraphOpts<TNode, TEdgeType: number = 1> = {| ...GraphOpts<TNode, TEdgeType>, _contentKeyToNodeId: Map<ContentKey, Node...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/shared-buffer.js
packages/core/graph/src/shared-buffer.js
// @flow // Copy from @parcel/utils to fix: https://github.com/stackblitz/core/issues/1855 export let SharedBuffer: Class<ArrayBuffer> | Class<SharedArrayBuffer>; // $FlowFixMe[prop-missing] if (process.browser) { SharedBuffer = ArrayBuffer; // Safari has removed the constructor if (typeof SharedArrayBuffer !== ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/Graph.js
packages/core/graph/src/Graph.js
// @flow strict-local import {fromNodeId} from './types'; import AdjacencyList, {type SerializedAdjacencyList} from './AdjacencyList'; import type {Edge, NodeId} from './types'; import type { TraversalActions, GraphVisitor, GraphTraversalCallback, } from '@parcel/types'; import {BitSet} from './BitSet'; import ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/src/BitSet.js
packages/core/graph/src/BitSet.js
// @flow strict-local // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32#implementing_count_leading_ones_and_beyond function ctz32(n: number): number { if (n === 0) { return 32; } let reversed = n & -n; return 31 - Math.clz32(reversed); } export class BitSet { ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/test/BitSet.test.js
packages/core/graph/test/BitSet.test.js
// @flow strict-local import assert from 'assert'; import {BitSet} from '../src/BitSet'; function assertValues(set: BitSet, values: Array<number>) { let setValues = []; set.forEach(bit => { setValues.push(bit); }); for (let value of values) { assert(set.has(value), 'Set.has returned false'); asse...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/test/ContentGraph.test.js
packages/core/graph/test/ContentGraph.test.js
// @flow strict-local import assert from 'assert'; import ContentGraph from '../src/ContentGraph'; describe('ContentGraph', () => { it('should addNodeByContentKey if no node exists with the content key', () => { let graph = new ContentGraph(); const node = {}; const nodeId1 = graph.addNodeByContentKey...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/test/AdjacencyList.test.js
packages/core/graph/test/AdjacencyList.test.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {Worker} from 'worker_threads'; import AdjacencyList, {NodeTypeMap, EdgeTypeMap} from '../src/AdjacencyList'; import {toNodeId} from '../src/types'; describe('AdjacencyList', () => { it('constructor should initialize an empty graph'...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/test/Graph.test.js
packages/core/graph/test/Graph.test.js
// @flow strict-local import assert from 'assert'; import sinon from 'sinon'; import type {TraversalActions} from '@parcel/types-internal'; import Graph from '../src/Graph'; import {toNodeId, type NodeId} from '../src/types'; describe('Graph', () => { it('constructor should initialize an empty graph', () => { ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/graph/test/integration/adjacency-list-shared-array.js
packages/core/graph/test/integration/adjacency-list-shared-array.js
require('@parcel/babel-register'); const {parentPort} = require('worker_threads'); const { default: AdjacencyList, NodeTypeMap, EdgeTypeMap, } = require('../../src/AdjacencyList'); parentPort.once('message', serialized => { let graph = AdjacencyList.deserialize(serialized); serialized.nodes.forEach((v, i) =>...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/vue.js
packages/core/integration-tests/test/vue.js
import assert from 'assert'; import path from 'path'; import {bundle, distDir, outputFS, run} from '@parcel/test-utils'; describe('vue', function () { it('should produce a basic vue bundle', async function () { let b = await bundle( path.join(__dirname, '/integration/vue-basic/Basic.vue'), ); let o...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/incremental-bundling.js
packages/core/integration-tests/test/incremental-bundling.js
// @flow strict-local import { bundler, getNextBuildSuccess, inputFS, overlayFS, run, fsFixture, } from '@parcel/test-utils'; import assert from 'assert'; import path from 'path'; import sinon from 'sinon'; import {NodePackageManager} from '@parcel/package-manager'; import {type Asset} from '@parcel/types'...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/json-reporter.js
packages/core/integration-tests/test/json-reporter.js
// @flow /* eslint-disable no-console */ import assert from 'assert'; import invariant from 'assert'; import path from 'path'; import {bundle} from '@parcel/test-utils'; import sinon from 'sinon'; const config = path.join( __dirname, './integration/custom-configs/.parcelrc-json-reporter', ); describe('json repo...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/svg-react.js
packages/core/integration-tests/test/svg-react.js
import assert from 'assert'; import {bundle, outputFS, fsFixture, overlayFS} from '@parcel/test-utils'; import path from 'path'; import Logger from '@parcel/logger'; import {md} from '@parcel/diagnostic'; describe('svg-react', function () { it('should support transforming SVGs to react components', async function ()...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/tailwind-tests.js
packages/core/integration-tests/test/tailwind-tests.js
import assert from 'assert'; import path from 'path'; import {bundle, outputFS} from '@parcel/test-utils'; describe('tailwind', function () { it('should support tailwind from SCSS', async function () { let fixture = path.join(__dirname, '/integration/tailwind-scss'); let b = await bundle(path.join(fixture, '...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/css.js
packages/core/integration-tests/test/css.js
// @flow import assert from 'assert'; import path from 'path'; import { bundle, run, assertBundles, distDir, removeDistDirectory, inputFS, outputFS, } from '@parcel/test-utils'; describe('css', () => { afterEach(async () => { await removeDistDirectory(); }); it('should produce two bundles when...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/typescript.js
packages/core/integration-tests/test/typescript.js
// @flow import assert from 'assert'; import path from 'path'; import url from 'url'; import nullthrows from 'nullthrows'; import { assertBundles, bundle, distDir, outputFS, run, } from '@parcel/test-utils'; const tscConfig = path.join( __dirname, '/integration/typescript-config/.parcelrc', ); describe(...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/output-formats.js
packages/core/integration-tests/test/output-formats.js
import assert from 'assert'; import path from 'path'; import {pathToFileURL} from 'url'; import nullthrows from 'nullthrows'; import { assertBundles, assertESMExports, bundle as _bundle, mergeParcelOptions, outputFS, run, runBundle, } from '@parcel/test-utils'; import * as react from 'react'; import * as ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
true
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/resolver.js
packages/core/integration-tests/test/resolver.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {bundle, run, ncp, overlayFS, outputFS} from '@parcel/test-utils'; describe('resolver', function () { it('should support resolving tilde in monorepo packages', async function () { let b = await bundle( path.join( __d...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/posthtml.js
packages/core/integration-tests/test/posthtml.js
import assert from 'assert'; import { bundle, assertBundles, removeDistDirectory, distDir, inputFS, outputFS, overlayFS, ncp, } from '@parcel/test-utils'; import path from 'path'; import { NodePackageManager, MockPackageInstaller, } from '@parcel/package-manager'; describe('posthtml', function () {...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/rust.js
packages/core/integration-tests/test/rust.js
import assert from 'assert'; import path from 'path'; import { bundle, bundler, run, assertBundleTree, outputFS, } from '@parcel/test-utils'; import commandExists from 'command-exists'; describe.skip('rust', function () { if (typeof WebAssembly === 'undefined' || !commandExists.sync('rustup')) { // esl...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/react-refresh.js
packages/core/integration-tests/test/react-refresh.js
// @flow strict-local import assert from 'assert'; import invariant from 'assert'; import path from 'path'; import { bundle, bundler, getNextBuild, overlayFS as fs, sleep, run, getNextBuildSuccess, } from '@parcel/test-utils'; import getPort from 'get-port'; import type {BuildEvent, Asset} from '@parcel/t...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/stylus.js
packages/core/integration-tests/test/stylus.js
import assert from 'assert'; import path from 'path'; import { bundle, run, assertBundles, distDir, outputFS, } from '@parcel/test-utils'; describe('stylus', function () { it('should support requiring stylus files', async function () { let b = await bundle(path.join(__dirname, '/integration/stylus/inde...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/feature-flags.js
packages/core/integration-tests/test/feature-flags.js
import assert from 'assert'; import path from 'node:path'; import {rimraf} from 'rimraf'; import {bundle, run, overlayFS, fsFixture} from '@parcel/test-utils'; describe('feature flags', () => { let dir = path.join(__dirname, 'feature-flags-fixture'); beforeEach(async () => { await rimraf(dir); await overla...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/ts-types.js
packages/core/integration-tests/test/ts-types.js
import assert from 'assert'; import path from 'path'; import { assertBundles, bundle, inputFS, overlayFS, outputFS, ncp, fsFixture, } from '@parcel/test-utils'; import {md} from '@parcel/diagnostic'; import {normalizeSeparators} from '@parcel/utils'; describe('typescript types', function () { it('shoul...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/proxy.js
packages/core/integration-tests/test/proxy.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {bundler, getNextBuild, inputFS} from '@parcel/test-utils'; import http from 'http'; import getPort from 'get-port'; const config = path.join( __dirname, './integration/custom-configs/.parcelrc-dev-server', ); function apiServer() ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/wasm.js
packages/core/integration-tests/test/wasm.js
import assert from 'assert'; import path from 'path'; import {assertBundleTree, bundle, deferred, run} from '@parcel/test-utils'; describe.skip('wasm', function () { if (typeof WebAssembly === 'undefined') { return; } for (const target of ['browser', 'node']) { describe(`--target=${target}`, function ()...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/plugin.js
packages/core/integration-tests/test/plugin.js
// @flow import assert from 'assert'; import invariant from 'assert'; import path from 'path'; import nullthrows from 'nullthrows'; import { assertBundles, bundle, bundler, distDir, findAsset, getNextBuild, outputFS as fs, overlayFS, run, } from '@parcel/test-utils'; import * as wasmmap from 'wasm-so...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/webmanifest.js
packages/core/integration-tests/test/webmanifest.js
import assert from 'assert'; import path from 'path'; import {assertBundles, bundle, inputFS, outputFS} from '@parcel/test-utils'; import {md} from '@parcel/diagnostic'; describe('webmanifest', function () { it('should support .webmanifest', async function () { let b = await bundle( path.join(__dirname, '/...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/glsl.js
packages/core/integration-tests/test/glsl.js
import assert from 'assert'; import path from 'path'; import fs from 'fs'; import {bundle, run, normaliseNewlines} from '@parcel/test-utils'; describe('glsl', function () { it('should support requiring GLSL files via glslify', async function () { let b = await bundle(path.join(__dirname, '/integration/glsl/index...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/react-server.js
packages/core/integration-tests/test/react-server.js
// @flow import assert from 'assert'; import path from 'path'; import { bundle, run, overlayFS, fsFixture, assertBundles, runBundle, } from '@parcel/test-utils'; import nullthrows from 'nullthrows'; import {relativePath} from '@parcel/utils'; describe('react server components', function () { for (let sho...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/graphql.js
packages/core/integration-tests/test/graphql.js
import assert from 'assert'; import path from 'path'; import {bundle, run} from '@parcel/test-utils'; import {parse, print} from 'graphql/language'; describe('graphql', function () { it('should support requiring graphql files', async function () { let b = await bundle(path.join(__dirname, '/integration/graphql/i...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/xml.js
packages/core/integration-tests/test/xml.js
import assert from 'assert'; import path from 'path'; import {assertBundles, bundle, outputFS} from '@parcel/test-utils'; describe('xml', function () { it('should transform an atom feed', async function () { let b = await bundle(path.join(__dirname, '/integration/xml/atom.xml'), { defaultTargetOptions: { ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/webextension.js
packages/core/integration-tests/test/webextension.js
import assert from 'assert'; import path from 'path'; import {assertBundles, bundle, distDir, outputFS} from '@parcel/test-utils'; describe('webextension', function () { it('should resolve a full webextension bundle', async function () { let b = await bundle( path.join(__dirname, '/integration/webextension...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/BundleGraph.js
packages/core/integration-tests/test/BundleGraph.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {bundle, fsFixture, overlayFS} from '@parcel/test-utils'; import type {BundleGraph, BundleGroup, PackagedBundle} from '@parcel/types'; describe('BundleGraph', () => { it('can traverse assets across bundles and contexts', async () => ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/sass.js
packages/core/integration-tests/test/sass.js
import assert from 'assert'; import path from 'path'; import { bundle, run, assertBundles, distDir, outputFS, overlayFS, fsFixture, } from '@parcel/test-utils'; describe('sass', function () { it('should support requiring sass files', async function () { let b = await bundle(path.join(__dirname, '/i...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/cache.js
packages/core/integration-tests/test/cache.js
// @flow import type {InitialParcelOptions, BuildSuccessEvent} from '@parcel/types'; import assert from 'assert'; import invariant from 'assert'; import nullthrows from 'nullthrows'; import path from 'path'; import { assertBundles, bundler, run, runBundle as runSingleBundle, overlayFS, outputFS, inputFS, ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
true
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/markdown.js
packages/core/integration-tests/test/markdown.js
import assert from 'assert'; import path from 'path'; import {assertBundleTree, bundle, outputFS} from '@parcel/test-utils'; describe.skip('markdown', function () { it('should support bundling Markdown', async function () { let b = await bundle( path.join(__dirname, '/integration/markdown/index.md'), )...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/namer.js
packages/core/integration-tests/test/namer.js
import assert from 'assert'; import path from 'path'; import {bundle, outputFS, distDir} from '@parcel/test-utils'; describe('namer', function () { it('should determine correct entry root when building a directory', async function () { await bundle(path.join(__dirname, 'integration/namer-dir')); assert(awai...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/compressors.js
packages/core/integration-tests/test/compressors.js
import assert from 'assert'; import path from 'path'; import zlib from 'zlib'; import {bundle, outputFS, distDir} from '@parcel/test-utils'; describe('compressors', function () { it('should not compress output with gzip and brotli in development', async function () { await bundle(path.join(__dirname, 'integratio...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/lazy-compile.js
packages/core/integration-tests/test/lazy-compile.js
import assert from 'assert'; import path from 'path'; import { bundler, outputFS, distDir, getNextBuild, assertBundles, removeDistDirectory, run, fsFixture, overlayFS, } from '@parcel/test-utils'; const findBundle = (bundleGraph, nameRegex) => { const result = bundleGraph.getBundles().find(b => nam...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/parcel-link.js
packages/core/integration-tests/test/parcel-link.js
// @flow strict-local import type {ProgramOptions} from '@parcel/link'; import {createProgram as _createProgram} from '@parcel/link'; import {fsFixture, overlayFS} from '@parcel/test-utils'; import assert from 'assert'; import path from 'path'; import sinon from 'sinon'; function createProgram(opts: ProgramOptions)...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/postcss.js
packages/core/integration-tests/test/postcss.js
import assert from 'assert'; import path from 'path'; import { bundle, bundler, run, assertBundles, distDir, inputFS, outputFS, overlayFS, ncp, getNextBuild, } from '@parcel/test-utils'; import { NodePackageManager, MockPackageInstaller, } from '@parcel/package-manager'; describe('postcss', () ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/monorepos.js
packages/core/integration-tests/test/monorepos.js
import assert from 'assert'; import path from 'path'; import { bundle, bundler, assertBundles, inputFS, outputFS, fsFixture, ncp, run, overlayFS, getNextBuild, runBundle, } from '@parcel/test-utils'; const distDir = path.join(__dirname, '/integration/monorepo/dist/default'); describe('monorepos'...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/parcel-query.js
packages/core/integration-tests/test/parcel-query.js
// @flow import assert from 'assert'; import path from 'path'; import {bundle, fsFixture, overlayFS} from '@parcel/test-utils'; import {loadGraphs} from '../../../dev/query/src'; describe('parcel-query', () => { it('loadGraphs', async function () { let entries = 'index.js'; let options = { mode: 'produ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/hmr.js
packages/core/integration-tests/test/hmr.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import { bundler, getNextBuild, getNextBuildSuccess, ncp, outputFS, overlayFS, sleep, run, request, distDir, } from '@parcel/test-utils'; import WebSocket from 'ws'; import json5 from 'json5'; import getPort from 'get-port';...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
true
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/reporters.js
packages/core/integration-tests/test/reporters.js
// @flow import assert from 'assert'; import {execSync} from 'child_process'; import path from 'path'; import {bundler} from '@parcel/test-utils'; describe('reporters', () => { let successfulEntry = path.join( __dirname, 'integration', 'reporters-success', 'index.js', ); let loadReporterFailur...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/metrics-reporter.js
packages/core/integration-tests/test/metrics-reporter.js
// @flow import assert from 'assert'; import path from 'path'; import {bundler, outputFS} from '@parcel/test-utils'; const config = path.join( __dirname, './integration/custom-configs/.parcelrc-build-metrics', ); describe('Build Metrics Reporter', () => { it('Should dump bundle metrics to parcel-metrics.json',...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/svg.js
packages/core/integration-tests/test/svg.js
import assert from 'assert'; import { assertBundles, bundle, distDir, outputFS, overlayFS, fsFixture, } from '@parcel/test-utils'; import path from 'path'; import Logger from '@parcel/logger'; import {md} from '@parcel/diagnostic'; describe('svg', function () { it('should support bundling SVG', async () ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/api.js
packages/core/integration-tests/test/api.js
// @flow strict-local import path from 'path'; import assert from 'assert'; import { assertBundles, bundle, distDir, fsFixture, outputFS, overlayFS, } from '@parcel/test-utils'; import {PARCEL_VERSION} from '../../core/src/constants'; describe('JS API', function () { it('should respect distEntry', async...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/globals.js
packages/core/integration-tests/test/globals.js
import assert from 'assert'; import path from 'path'; import {bundle, fsFixture, overlayFS, run} from '@parcel/test-utils'; import sinon from 'sinon'; describe('globals', function () { it('should support global alias syntax', async function () { let b = await bundle( path.join(__dirname, '/integration/glo...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/sugarss.js
packages/core/integration-tests/test/sugarss.js
import assert from 'assert'; import {assertBundles, bundle, distDir, outputFS} from '@parcel/test-utils'; import path from 'path'; describe('sugarss', function () { it('should correctly parse SugarSS asset', async function () { let b = await bundle( path.join(__dirname, '/integration/sugarss/index.sss'), ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/packager.js
packages/core/integration-tests/test/packager.js
import assert from 'assert'; import path from 'path'; import nullthrows from 'nullthrows'; import { bundle as _bundle, mergeParcelOptions, overlayFS, } from '@parcel/test-utils'; const runBundler = (name, opts = {}) => { return _bundle( name, // $FlowFixMe mergeParcelOptions({}, opts), ); }; fun...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/config-merging.js
packages/core/integration-tests/test/config-merging.js
import {bundle, run, outputFS} from '@parcel/test-utils'; import assert from 'assert'; import path from 'path'; describe('config merging', function () { it('should merge incomplete config packages', async function () { let b = await bundle( path.join(__dirname, '/integration/config-merging/index.js'), ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/css-modules.js
packages/core/integration-tests/test/css-modules.js
import assert from 'assert'; import path from 'path'; import { bundle, run, runBundle, assertBundles, distDir, outputFS, overlayFS, fsFixture, } from '@parcel/test-utils'; import postcss from 'postcss'; describe('css modules', () => { it('should support transforming css modules (require)', async () =...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/reason.js
packages/core/integration-tests/test/reason.js
import assert from 'assert'; import path from 'path'; import {bundle, run} from '@parcel/test-utils'; describe.skip('reason', function () { it('should produce a bundle', async function () { let b = await bundle(path.join(__dirname, '/integration/reason/index.js')); assert.equal(b.assets.size, 2); assert...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/transpilation.js
packages/core/integration-tests/test/transpilation.js
// @flow import assert from 'assert'; import path from 'path'; import { bundle, distDir, inputFS as fs, outputFS, overlayFS, run, ncp, } from '@parcel/test-utils'; import {symlinkSync} from 'fs'; import nullthrows from 'nullthrows'; const inputDir = path.join(__dirname, '/input'); describe('transpilatio...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/registered-plugins.js
packages/core/integration-tests/test/registered-plugins.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {bundle, run, overlayFS, fsFixture} from '@parcel/test-utils'; describe('plugins with "registered" languages', () => { it('should support plugins with esbuild-register', async () => { const dir = path.join(__dirname, 'esbuild-regi...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/workers.js
packages/core/integration-tests/test/workers.js
import assert from 'assert'; import path from 'path'; import { assertBundles, bundle, inputFS, outputFS, removeDistDirectory, run, runBundle, } from '@parcel/test-utils'; describe('workers', function () { beforeEach(async () => { await removeDistDirectory(); }); it('bundles workers and service...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
true
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/glob.js
packages/core/integration-tests/test/glob.js
// @flow import assert from 'assert'; import path from 'path'; import { assertRejectsWithDiagnostic, bundle, run, assertBundles, outputFS, inputFS, } from '@parcel/test-utils'; import nullthrows from 'nullthrows'; describe('glob', function () { it('should require a glob of files', async function () { ...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/react-ssg.js
packages/core/integration-tests/test/react-ssg.js
// @flow import assert from 'assert'; import path from 'path'; import {bundle, overlayFS, fsFixture, assertBundles} from '@parcel/test-utils'; import nullthrows from 'nullthrows'; describe('react static', function () { let count = 0; let dir; beforeEach(async () => { dir = path.join(__dirname, 'react-static'...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/symbol-propagation.js
packages/core/integration-tests/test/symbol-propagation.js
import assert from 'assert'; import path from 'path'; import {bundler, fsFixture, overlayFS, run} from '@parcel/test-utils'; describe('symbol propagation', () => { it('should handle removed assets from previous failed builds', async () => { await fsFixture(overlayFS, __dirname)` broken.js: mo...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/ts-validation.js
packages/core/integration-tests/test/ts-validation.js
import assert from 'assert'; import path from 'path'; import { bundle, bundler, getNextBuild, normalizeFilePath, outputFS, overlayFS, run, } from '@parcel/test-utils'; const config = path.join( __dirname, './integration/custom-configs/.parcelrc-typescript-validation', ); describe('ts-validator', fun...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/schema-jsonld.js
packages/core/integration-tests/test/schema-jsonld.js
import {assertBundles, bundle, distDir, outputFS} from '@parcel/test-utils'; import path from 'path'; import assert from 'assert'; describe('jsonld', function () { it('Should parse a LD+JSON schema and collect dependencies', async function () { let b = await bundle( path.join(__dirname, '/integration/schem...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false
parcel-bundler/parcel
https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/integration-tests/test/blob-url.js
packages/core/integration-tests/test/blob-url.js
// @flow strict-local import assert from 'assert'; import path from 'path'; import {bundle, distDir, outputFS, run} from '@parcel/test-utils'; class Blob { data; constructor(data) { this.data = data; } } const URL = { createObjectURL(blob) { assert(blob instanceof Blob); return `data:application/...
javascript
MIT
73f691d67d22482440babb2d1846b7da2160f7cc
2026-01-04T14:58:42.192224Z
false