tsds-web-test-runner 1.21.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -158,6 +158,8 @@ function run(args, options, callback) {
158
158
  if (_.length === 0) Array.prototype.push.apply(spawnArgs, [
159
159
  'test/**/*.test.{ts,tsx,jsx,mjs}'
160
160
  ]);
161
+ // the self link lives at test/node_modules/<name> and the file globber follows links: never walk node_modules
162
+ spawnArgs.push('!**/node_modules/**');
161
163
  var queue = new _queuecb.default(1);
162
164
  var operationFailed = false;
163
165
  var operationError;
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { installSync, matchesLibc, removeSync } from 'install-optional';\nimport { link, unlink } from 'link-unlink';\nimport debounce from 'lodash.debounce';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport { installPath } from 'tsds-lib';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst minor = +process.versions.node.split('.')[1];\n// @web/test-runner 1.x require()s ESM (puppeteer-core), unflagged only from 22.12\nconst supported = major > 22 || (major === 22 && minor >= 12);\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst config = path.join(dist, 'cjs', 'wtr.config.js');\n\nconst installSyncRollup = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\nconst installSynESBuild = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\n\nfunction commandError(failures: unknown[]): Error | undefined {\n if (failures.length === 0) return undefined;\n if (failures.length === 1 && failures[0] instanceof Error) return failures[0];\n const error: Error & { errors?: unknown[] } = new Error('Browser command or restoration failed');\n error.errors = failures;\n return error;\n}\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n const cwd: string = (options.cwd as string) || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c', 'dry-run': 'd' }, boolean: ['dry-run'] });\n const filteredArgs = args.filter((arg) => arg !== '--dry-run' && arg !== '-d');\n\n if (opts['dry-run']) {\n console.log('Dry-run: would run browser tests with @web/test-runner');\n return callback();\n }\n\n link(cwd, installPath(options), (err, restore) => {\n if (err !== undefined && err !== null) return callback(commandError([err]));\n if (!restore) return callback(new Error('link did not return restore path'));\n const acquiredTarget = restore;\n\n let cleanupStarted = false;\n function finish(operationFailed: boolean, operationError: unknown): void {\n if (cleanupStarted) return;\n cleanupStarted = true;\n let completed = false;\n function complete(cleanupFailed: boolean, cleanupError: unknown): void {\n if (completed) return;\n completed = true;\n const failures: unknown[] = [];\n if (operationFailed) failures.push(operationError);\n if (cleanupFailed) failures.push(cleanupError);\n callback(commandError(failures));\n }\n try {\n unlink(acquiredTarget, (error: unknown) => complete(error !== undefined && error !== null, error));\n } catch (error: unknown) {\n if (completed) throw error;\n complete(true, error);\n }\n }\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd, filter: matchesLibc });\n removeSync('esbuild', '@esbuild/', { cwd });\n installSynESBuild('esbuild', `${process.platform}-${process.arch}`, { cwd });\n\n const wtr = resolveBin('@web/test-runner', 'wtr');\n const spawnArgs: string[] = [];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, filteredArgs);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n const queue = new Queue(1);\n let operationFailed = false;\n let operationError: unknown;\n queue.defer((cb) =>\n spawn(wtr, spawnArgs, options, (error: unknown) => {\n operationFailed = error !== undefined && error !== null;\n operationError = error;\n // Retain the operation error before the queue's truthy classification.\n cb();\n })\n );\n queue.await(() => finish(operationFailed, operationError));\n } catch (error: unknown) {\n if (cleanupStarted) throw error;\n finish(true, error);\n }\n });\n}\n\ntype commandFunction = (args: string[], options: CommandOptions, callback: CommandCallback) => void;\n\nconst worker = (supported ? run : bind('>=22.12', path.join(dist, 'cjs', 'command.js'), { callbacks: true })) as commandFunction;\n\nexport default function testBrowser(args: string[], options: CommandOptions, callback: CommandCallback): void {\n worker(args, options, callback);\n}\n"],"names":["testBrowser","major","process","versions","node","split","minor","supported","__dirname","path","dirname","__filename","url","fileURLToPath","dist","join","config","installSyncRollup","debounce","installSync","leading","trailing","installSynESBuild","commandError","failures","length","undefined","Error","error","errors","run","args","options","callback","cwd","getopts","stopEarly","alias","boolean","_","opts","filteredArgs","filter","arg","console","log","link","installPath","err","restore","acquiredTarget","cleanupStarted","finish","operationFailed","operationError","completed","complete","cleanupFailed","cleanupError","push","unlink","platform","arch","matchesLibc","removeSync","wtr","resolveBin","spawnArgs","Array","prototype","apply","queue","Queue","defer","cb","spawn","await","worker","bind","callbacks"],"mappings":";;;;+BAsGA;;;eAAwBA;;;mEAtGN;oEACE;+BACiC;0BACxB;qEACR;+BACA;2DACJ;8DACC;qEACK;uBAEK;0DACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhB,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,IAAMC,QAAQ,CAACJ,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,kFAAkF;AAClF,IAAME,YAAYN,QAAQ,MAAOA,UAAU,MAAMK,SAAS;AAC1D,IAAME,YAAYC,aAAI,CAACC,OAAO,CAAC,OAAOC,eAAe,cAAcC,YAAG,CAACC,aAAa,CAAC,uDAAmBF;AACxG,IAAMG,OAAOL,aAAI,CAACM,IAAI,C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YAE7F,IAAMI,QAAQ,IAAIC,gBAAK,CAAC;YACxB,IAAInB,kBAAkB;YACtB,IAAIC;YACJiB,MAAME,KAAK,CAAC,SAACC;uBACXC,IAAAA,qBAAK,EAACV,KAAKE,WAAWnC,SAAS,SAACJ;oBAC9ByB,kBAAkBzB,UAAUF,aAAaE,UAAU;oBACnD0B,iBAAiB1B;oBACjB,uEAAuE;oBACvE8C;gBACF;;YAEFH,MAAMK,KAAK,CAAC;uBAAMxB,OAAOC,iBAAiBC;;QAC5C,EAAE,OAAO1B,OAAgB;YACvB,IAAIuB,gBAAgB,MAAMvB;YAC1BwB,OAAO,MAAMxB;QACf;IACF;AACF;AAIA,IAAMiD,SAAUtE,YAAYuB,MAAMgD,IAAAA,qBAAI,EAAC,WAAWrE,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEiE,WAAW;AAAK;AAE3F,SAAS/E,YAAY+B,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpG4C,OAAO9C,MAAMC,SAASC;AACxB"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { installSync, matchesLibc, removeSync } from 'install-optional';\nimport { link, unlink } from 'link-unlink';\nimport debounce from 'lodash.debounce';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport { installPath } from 'tsds-lib';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst minor = +process.versions.node.split('.')[1];\n// @web/test-runner 1.x require()s ESM (puppeteer-core), unflagged only from 22.12\nconst supported = major > 22 || (major === 22 && minor >= 12);\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst config = path.join(dist, 'cjs', 'wtr.config.js');\n\nconst installSyncRollup = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\nconst installSynESBuild = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\n\nfunction commandError(failures: unknown[]): Error | undefined {\n if (failures.length === 0) return undefined;\n if (failures.length === 1 && failures[0] instanceof Error) return failures[0];\n const error: Error & { errors?: unknown[] } = new Error('Browser command or restoration failed');\n error.errors = failures;\n return error;\n}\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n const cwd: string = (options.cwd as string) || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c', 'dry-run': 'd' }, boolean: ['dry-run'] });\n const filteredArgs = args.filter((arg) => arg !== '--dry-run' && arg !== '-d');\n\n if (opts['dry-run']) {\n console.log('Dry-run: would run browser tests with @web/test-runner');\n return callback();\n }\n\n link(cwd, installPath(options), (err, restore) => {\n if (err !== undefined && err !== null) return callback(commandError([err]));\n if (!restore) return callback(new Error('link did not return restore path'));\n const acquiredTarget = restore;\n\n let cleanupStarted = false;\n function finish(operationFailed: boolean, operationError: unknown): void {\n if (cleanupStarted) return;\n cleanupStarted = true;\n let completed = false;\n function complete(cleanupFailed: boolean, cleanupError: unknown): void {\n if (completed) return;\n completed = true;\n const failures: unknown[] = [];\n if (operationFailed) failures.push(operationError);\n if (cleanupFailed) failures.push(cleanupError);\n callback(commandError(failures));\n }\n try {\n unlink(acquiredTarget, (error: unknown) => complete(error !== undefined && error !== null, error));\n } catch (error: unknown) {\n if (completed) throw error;\n complete(true, error);\n }\n }\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd, filter: matchesLibc });\n removeSync('esbuild', '@esbuild/', { cwd });\n installSynESBuild('esbuild', `${process.platform}-${process.arch}`, { cwd });\n\n const wtr = resolveBin('@web/test-runner', 'wtr');\n const spawnArgs: string[] = [];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, filteredArgs);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n // the self link lives at test/node_modules/<name> and the file globber follows links: never walk node_modules\n spawnArgs.push('!**/node_modules/**');\n\n const queue = new Queue(1);\n let operationFailed = false;\n let operationError: unknown;\n queue.defer((cb) =>\n spawn(wtr, spawnArgs, options, (error: unknown) => {\n operationFailed = error !== undefined && error !== null;\n operationError = error;\n // Retain the operation error before the queue's truthy classification.\n cb();\n })\n );\n queue.await(() => finish(operationFailed, operationError));\n } catch (error: unknown) {\n if (cleanupStarted) throw error;\n finish(true, error);\n }\n });\n}\n\ntype commandFunction = (args: string[], options: CommandOptions, callback: CommandCallback) => void;\n\nconst worker = (supported ? run : bind('>=22.12', path.join(dist, 'cjs', 'command.js'), { callbacks: true })) as commandFunction;\n\nexport default function testBrowser(args: string[], options: CommandOptions, callback: CommandCallback): void {\n worker(args, options, callback);\n}\n"],"names":["testBrowser","major","process","versions","node","split","minor","supported","__dirname","path","dirname","__filename","url","fileURLToPath","dist","join","config","installSyncRollup","debounce","installSync","leading","trailing","installSynESBuild","commandError","failures","length","undefined","Error","error","errors","run","args","options","callback","cwd","getopts","stopEarly","alias","boolean","_","opts","filteredArgs","filter","arg","console","log","link","installPath","err","restore","acquiredTarget","cleanupStarted","finish","operationFailed","operationError","completed","complete","cleanupFailed","cleanupError","push","unlink","platform","arch","matchesLibc","removeSync","wtr","resolveBin","spawnArgs","Array","prototype","apply","queue","Queue","defer","cb","spawn","await","worker","bind","callbacks"],"mappings":";;;;+BAwGA;;;eAAwBA;;;mEAxGN;oEACE;+BACiC;0BACxB;qEACR;+BACA;2DACJ;8DACC;qEACK;uBAEK;0DACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhB,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,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,EAAC,oBAAoB;YAC3C,IAAMC,YAAsB,EAAE;YAC9B,IAAI,CAAC3B,KAAKxB,MAAM,EAAEoD,MAAMC,SAAS,CAACV,IAAI,CAACW,KAAK,CAACH,WAAW;gBAAC;gBAAYnD;aAAO;YAC5EoD,MAAMC,SAAS,CAACV,IAAI,CAACW,KAAK,CAACH,WAAW1B;YACtC,IAAIF,EAAEd,MAAM,KAAK,GAAG2C,MAAMC,SAAS,CAACV,IAAI,CAACW,KAAK,CAACH,WAAW;gBAAC;aAAkC;YAC7F,8GAA8G;YAC9GA,UAAUR,IAAI,CAAC;YAEf,IAAMY,QAAQ,IAAIC,gBAAK,CAAC;YACxB,IAAInB,kBAAkB;YACtB,IAAIC;YACJiB,MAAME,KAAK,CAAC,SAACC;uBACXC,IAAAA,qBAAK,EAACV,KAAKE,WAAWnC,SAAS,SAACJ;oBAC9ByB,kBAAkBzB,UAAUF,aAAaE,UAAU;oBACnD0B,iBAAiB1B;oBACjB,uEAAuE;oBACvE8C;gBACF;;YAEFH,MAAMK,KAAK,CAAC;uBAAMxB,OAAOC,iBAAiBC;;QAC5C,EAAE,OAAO1B,OAAgB;YACvB,IAAIuB,gBAAgB,MAAMvB;YAC1BwB,OAAO,MAAMxB;QACf;IACF;AACF;AAIA,IAAMiD,SAAUtE,YAAYuB,MAAMgD,IAAAA,qBAAI,EAAC,WAAWrE,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEiE,WAAW;AAAK;AAE3F,SAAS/E,YAAY+B,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpG4C,OAAO9C,MAAMC,SAASC;AACxB"}
@@ -95,6 +95,8 @@ function run(args, options, callback) {
95
95
  if (_.length === 0) Array.prototype.push.apply(spawnArgs, [
96
96
  'test/**/*.test.{ts,tsx,jsx,mjs}'
97
97
  ]);
98
+ // the self link lives at test/node_modules/<name> and the file globber follows links: never walk node_modules
99
+ spawnArgs.push('!**/node_modules/**');
98
100
  const queue = new Queue(1);
99
101
  let operationFailed = false;
100
102
  let operationError;
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { installSync, matchesLibc, removeSync } from 'install-optional';\nimport { link, unlink } from 'link-unlink';\nimport debounce from 'lodash.debounce';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport { installPath } from 'tsds-lib';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst minor = +process.versions.node.split('.')[1];\n// @web/test-runner 1.x require()s ESM (puppeteer-core), unflagged only from 22.12\nconst supported = major > 22 || (major === 22 && minor >= 12);\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst config = path.join(dist, 'cjs', 'wtr.config.js');\n\nconst installSyncRollup = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\nconst installSynESBuild = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\n\nfunction commandError(failures: unknown[]): Error | undefined {\n if (failures.length === 0) return undefined;\n if (failures.length === 1 && failures[0] instanceof Error) return failures[0];\n const error: Error & { errors?: unknown[] } = new Error('Browser command or restoration failed');\n error.errors = failures;\n return error;\n}\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n const cwd: string = (options.cwd as string) || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c', 'dry-run': 'd' }, boolean: ['dry-run'] });\n const filteredArgs = args.filter((arg) => arg !== '--dry-run' && arg !== '-d');\n\n if (opts['dry-run']) {\n console.log('Dry-run: would run browser tests with @web/test-runner');\n return callback();\n }\n\n link(cwd, installPath(options), (err, restore) => {\n if (err !== undefined && err !== null) return callback(commandError([err]));\n if (!restore) return callback(new Error('link did not return restore path'));\n const acquiredTarget = restore;\n\n let cleanupStarted = false;\n function finish(operationFailed: boolean, operationError: unknown): void {\n if (cleanupStarted) return;\n cleanupStarted = true;\n let completed = false;\n function complete(cleanupFailed: boolean, cleanupError: unknown): void {\n if (completed) return;\n completed = true;\n const failures: unknown[] = [];\n if (operationFailed) failures.push(operationError);\n if (cleanupFailed) failures.push(cleanupError);\n callback(commandError(failures));\n }\n try {\n unlink(acquiredTarget, (error: unknown) => complete(error !== undefined && error !== null, error));\n } catch (error: unknown) {\n if (completed) throw error;\n complete(true, error);\n }\n }\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd, filter: matchesLibc });\n removeSync('esbuild', '@esbuild/', { cwd });\n installSynESBuild('esbuild', `${process.platform}-${process.arch}`, { cwd });\n\n const wtr = resolveBin('@web/test-runner', 'wtr');\n const spawnArgs: string[] = [];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, filteredArgs);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n\n const queue = new Queue(1);\n let operationFailed = false;\n let operationError: unknown;\n queue.defer((cb) =>\n spawn(wtr, spawnArgs, options, (error: unknown) => {\n operationFailed = error !== undefined && error !== null;\n operationError = error;\n // Retain the operation error before the queue's truthy classification.\n cb();\n })\n );\n queue.await(() => finish(operationFailed, operationError));\n } catch (error: unknown) {\n if (cleanupStarted) throw error;\n finish(true, error);\n }\n });\n}\n\ntype commandFunction = (args: string[], options: CommandOptions, callback: CommandCallback) => void;\n\nconst worker = (supported ? run : bind('>=22.12', path.join(dist, 'cjs', 'command.js'), { callbacks: true })) as commandFunction;\n\nexport default function testBrowser(args: string[], options: CommandOptions, callback: CommandCallback): void {\n worker(args, options, callback);\n}\n"],"names":["spawn","getopts","installSync","matchesLibc","removeSync","link","unlink","debounce","bind","path","Queue","resolveBin","installPath","url","major","process","versions","node","split","minor","supported","__dirname","dirname","__filename","fileURLToPath","dist","join","config","installSyncRollup","leading","trailing","installSynESBuild","commandError","failures","length","undefined","Error","error","errors","run","args","options","callback","cwd","_","opts","stopEarly","alias","boolean","filteredArgs","filter","arg","console","log","err","restore","acquiredTarget","cleanupStarted","finish","operationFailed","operationError","completed","complete","cleanupFailed","cleanupError","push","platform","arch","wtr","spawnArgs","Array","prototype","apply","queue","defer","cb","await","worker","callbacks","testBrowser"],"mappings":"AAAA,OAAOA,WAAW,iBAAiB;AACnC,OAAOC,aAAa,iBAAiB;AACrC,SAASC,WAAW,EAAEC,WAAW,EAAEC,UAAU,QAAQ,mBAAmB;AACxE,SAASC,IAAI,EAAEC,MAAM,QAAQ,cAAc;AAC3C,OAAOC,cAAc,kBAAkB;AACvC,SAASC,IAAI,QAAQ,oBAAoB;AACzC,OAAOC,UAAU,OAAO;AACxB,OAAOC,WAAW,WAAW;AAC7B,OAAOC,gBAAgB,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,WAAW;AACvC,OAAOC,SAAS,MAAM;AAEtB,MAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,MAAMC,QAAQ,CAACJ,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,kFAAkF;AAClF,MAAME,YAAYN,QAAQ,MAAOA,UAAU,MAAMK,SAAS;AAC1D,MAAME,YAAYZ,KAAKa,OAAO,CAAC,OAAOC,eAAe,cAAcV,IAAIW,aAAa,CAAC,YAAYX,GAAG,IAAIU;AACxG,MAAME,OAAOhB,KAAKiB,IAAI,CAACL,WAAW;AAClC,MAAMM,SAASlB,KAAKiB,IAAI,CAACD,MAAM,OAAO;AAEtC,MAAMG,oBAAoBrB,SAASL,aAAwD,KAAK;IAAE2B,SAAS;IAAMC,UAAU;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gB,MAAMpB;YAC1BqB,OAAO,MAAMrB;QACf;IACF;AACF;AAIA,MAAMwC,SAAUzD,YAAYmB,MAAM/B,KAAK,WAAWC,KAAKiB,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEqD,WAAW;AAAK;AAE1G,eAAe,SAASC,YAAYvC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpGmC,OAAOrC,MAAMC,SAASC;AACxB"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/command.ts"],"sourcesContent":["import spawn from 'cross-spawn-cb';\nimport getopts from 'getopts-compat';\nimport { installSync, matchesLibc, removeSync } from 'install-optional';\nimport { link, unlink } from 'link-unlink';\nimport debounce from 'lodash.debounce';\nimport { bind } from 'node-version-call';\nimport path from 'path';\nimport Queue from 'queue-cb';\nimport resolveBin from 'resolve-bin-sync';\nimport type { CommandCallback, CommandOptions } from 'tsds-lib';\nimport { installPath } from 'tsds-lib';\nimport url from 'url';\n\nconst major = +process.versions.node.split('.')[0];\nconst minor = +process.versions.node.split('.')[1];\n// @web/test-runner 1.x require()s ESM (puppeteer-core), unflagged only from 22.12\nconst supported = major > 22 || (major === 22 && minor >= 12);\nconst __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);\nconst dist = path.join(__dirname, '..');\nconst config = path.join(dist, 'cjs', 'wtr.config.js');\n\nconst installSyncRollup = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\nconst installSynESBuild = debounce(installSync as unknown as (...args: unknown[]) => void, 300, { leading: true, trailing: false }) as unknown as typeof installSync;\n\nfunction commandError(failures: unknown[]): Error | undefined {\n if (failures.length === 0) return undefined;\n if (failures.length === 1 && failures[0] instanceof Error) return failures[0];\n const error: Error & { errors?: unknown[] } = new Error('Browser command or restoration failed');\n error.errors = failures;\n return error;\n}\n\nfunction run(args: string[], options: CommandOptions, callback: CommandCallback) {\n const cwd: string = (options.cwd as string) || process.cwd();\n const { _, ...opts } = getopts(args, { stopEarly: true, alias: { config: 'c', 'dry-run': 'd' }, boolean: ['dry-run'] });\n const filteredArgs = args.filter((arg) => arg !== '--dry-run' && arg !== '-d');\n\n if (opts['dry-run']) {\n console.log('Dry-run: would run browser tests with @web/test-runner');\n return callback();\n }\n\n link(cwd, installPath(options), (err, restore) => {\n if (err !== undefined && err !== null) return callback(commandError([err]));\n if (!restore) return callback(new Error('link did not return restore path'));\n const acquiredTarget = restore;\n\n let cleanupStarted = false;\n function finish(operationFailed: boolean, operationError: unknown): void {\n if (cleanupStarted) return;\n cleanupStarted = true;\n let completed = false;\n function complete(cleanupFailed: boolean, cleanupError: unknown): void {\n if (completed) return;\n completed = true;\n const failures: unknown[] = [];\n if (operationFailed) failures.push(operationError);\n if (cleanupFailed) failures.push(cleanupError);\n callback(commandError(failures));\n }\n try {\n unlink(acquiredTarget, (error: unknown) => complete(error !== undefined && error !== null, error));\n } catch (error: unknown) {\n if (completed) throw error;\n complete(true, error);\n }\n }\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd, filter: matchesLibc });\n removeSync('esbuild', '@esbuild/', { cwd });\n installSynESBuild('esbuild', `${process.platform}-${process.arch}`, { cwd });\n\n const wtr = resolveBin('@web/test-runner', 'wtr');\n const spawnArgs: string[] = [];\n if (!opts.config) Array.prototype.push.apply(spawnArgs, ['--config', config]);\n Array.prototype.push.apply(spawnArgs, filteredArgs);\n if (_.length === 0) Array.prototype.push.apply(spawnArgs, ['test/**/*.test.{ts,tsx,jsx,mjs}']);\n // the self link lives at test/node_modules/<name> and the file globber follows links: never walk node_modules\n spawnArgs.push('!**/node_modules/**');\n\n const queue = new Queue(1);\n let operationFailed = false;\n let operationError: unknown;\n queue.defer((cb) =>\n spawn(wtr, spawnArgs, options, (error: unknown) => {\n operationFailed = error !== undefined && error !== null;\n operationError = error;\n // Retain the operation error before the queue's truthy classification.\n cb();\n })\n );\n queue.await(() => finish(operationFailed, operationError));\n } catch (error: unknown) {\n if (cleanupStarted) throw error;\n finish(true, error);\n }\n });\n}\n\ntype commandFunction = (args: string[], options: CommandOptions, callback: CommandCallback) => void;\n\nconst worker = (supported ? run : bind('>=22.12', path.join(dist, 'cjs', 'command.js'), { callbacks: true })) as commandFunction;\n\nexport default function testBrowser(args: string[], options: CommandOptions, callback: CommandCallback): void {\n worker(args, options, callback);\n}\n"],"names":["spawn","getopts","installSync","matchesLibc","removeSync","link","unlink","debounce","bind","path","Queue","resolveBin","installPath","url","major","process","versions","node","split","minor","supported","__dirname","dirname","__filename","fileURLToPath","dist","join","config","installSyncRollup","leading","trailing","installSynESBuild","commandError","failures","length","undefined","Error","error","errors","run","args","options","callback","cwd","_","opts","stopEarly","alias","boolean","filteredArgs","filter","arg","console","log","err","restore","acquiredTarget","cleanupStarted","finish","operationFailed","operationError","completed","complete","cleanupFailed","cleanupError","push","platform","arch","wtr","spawnArgs","Array","prototype","apply","queue","defer","cb","await","worker","callbacks","testBrowser"],"mappings":"AAAA,OAAOA,WAAW,iBAAiB;AACnC,OAAOC,aAAa,iBAAiB;AACrC,SAASC,WAAW,EAAEC,WAAW,EAAEC,UAAU,QAAQ,mBAAmB;AACxE,SAASC,IAAI,EAAEC,MAAM,QAAQ,cAAc;AAC3C,OAAOC,cAAc,kBAAkB;AACvC,SAASC,IAAI,QAAQ,oBAAoB;AACzC,OAAOC,UAAU,OAAO;AACxB,OAAOC,WAAW,WAAW;AAC7B,OAAOC,gBAAgB,mBAAmB;AAE1C,SAASC,WAAW,QAAQ,WAAW;AACvC,OAAOC,SAAS,MAAM;AAEtB,MAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,MAAMC,QAAQ,CAACJ,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAClD,kFAAkF;AAClF,MAAME,YAAYN,QAAQ,MAAOA,UAA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AMQ,QAAQ,IAAI/D,MAAM;YACxB,IAAIiD,kBAAkB;YACtB,IAAIC;YACJa,MAAMC,KAAK,CAAC,CAACC,KACX3E,MAAMoE,KAAKC,WAAW5B,SAAS,CAACJ;oBAC9BsB,kBAAkBtB,UAAUF,aAAaE,UAAU;oBACnDuB,iBAAiBvB;oBACjB,uEAAuE;oBACvEsC;gBACF;YAEFF,MAAMG,KAAK,CAAC,IAAMlB,OAAOC,iBAAiBC;QAC5C,EAAE,OAAOvB,OAAgB;YACvB,IAAIoB,gBAAgB,MAAMpB;YAC1BqB,OAAO,MAAMrB;QACf;IACF;AACF;AAIA,MAAMwC,SAAUzD,YAAYmB,MAAM/B,KAAK,WAAWC,KAAKiB,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEqD,WAAW;AAAK;AAE1G,eAAe,SAASC,YAAYvC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpGmC,OAAOrC,MAAMC,SAASC;AACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsds-web-test-runner",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "description": "Development stack for TypeScript libraries",
5
5
  "keywords": [
6
6
  "c8",
@@ -55,7 +55,7 @@
55
55
  "node-version-call": "^3.2.0",
56
56
  "queue-cb": "^1.6.3",
57
57
  "resolve-bin-sync": "^1.0.12",
58
- "tsds-lib": "^1.21.1",
58
+ "tsds-lib": "^1.24.0",
59
59
  "webpack-merge": "^6.0.1"
60
60
  },
61
61
  "devDependencies": {
@@ -68,7 +68,6 @@
68
68
  "node-version-use": "*",
69
69
  "queue-cb": "^1.6.3",
70
70
  "resolve": "^1.22.11",
71
- "short-hash": "^1.0.0",
72
71
  "ts-dev-stack": "*",
73
72
  "tsds-config": "*",
74
73
  "tsds-lib-test": "^1.20.0"