tsds-web-test-runner 1.20.10 → 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.
package/README.md CHANGED
@@ -2,14 +2,34 @@
2
2
 
3
3
  This package is an internal command adapter for running browser tests through [ts-dev-stack](https://www.npmjs.com/package/ts-dev-stack), not a standalone end-user command.
4
4
 
5
- Install and run the parent CLI:
5
+ Install the parent CLI and this adapter locally so browser installation uses the
6
+ adapter's resolved Playwright version.
7
+
8
+ The default configuration runs Chromium, Firefox and WebKit. Their matching
9
+ Playwright binaries and OS dependencies must be installed before running tests.
10
+ The browser installation step below uses the locally installed Playwright CLI.
11
+ Provide browser tests using Mocha's `describe` and `it` under
12
+ `test/**/*.test.{ts,tsx,jsx,mjs}` before running the test command.
6
13
 
7
14
  ```bash
8
- npm install --save-dev ts-dev-stack
9
- tsds test:browser
15
+ npm install --save-dev ts-dev-stack tsds-web-test-runner
16
+ npm exec --no -- playwright install --with-deps
17
+ npm exec --no -- tsds test:browser
10
18
  ```
11
19
 
12
- Pass the Web Test Runner arguments after `test:browser`, for example `tsds test:browser --config wtr.config.mjs`.
20
+ Repeat browser installation after changing the resolved Playwright version. If
21
+ you set `PLAYWRIGHT_BROWSERS_PATH`, use the same absolute path for installation
22
+ and execution. See [Playwright browser management](https://playwright.dev/docs/browsers#managing-browser-binaries)
23
+ and [repository test setup](CONTRIBUTING.md).
24
+
25
+ Pass the Web Test Runner arguments after `test:browser`, for example
26
+ `npm exec --no -- tsds test:browser --config wtr.config.mjs`.
13
27
 
14
28
  Without an explicit test path, it runs `test/**/*.test.{ts,tsx,jsx,mjs}`. Add
15
29
  `--dry-run` to check command selection without opening a browser.
30
+
31
+ Starting with the planned 1.21.0 release, the adapter attempts to restore its
32
+ temporary installation link after setup or test failure. A sole operation or
33
+ restoration failure is reported directly. If both fail, the callback
34
+ receives an Error whose `errors` array contains the operation error first and the
35
+ restoration error second.
@@ -72,7 +72,7 @@ var minor = +process.versions.node.split('.')[1];
72
72
  var supported = major > 22 || major === 22 && minor >= 12;
73
73
  var __dirname = _path.default.dirname(typeof __filename === 'undefined' ? _url.default.fileURLToPath(require("url").pathToFileURL(__filename).toString()) : __filename);
74
74
  var dist = _path.default.join(__dirname, '..');
75
- var config = _path.default.join(dist, 'esm', 'wtr.config.js');
75
+ var config = _path.default.join(dist, 'cjs', 'wtr.config.js');
76
76
  var installSyncRollup = (0, _lodashdebounce.default)(_installoptional.installSync, 300, {
77
77
  leading: true,
78
78
  trailing: false
@@ -81,6 +81,13 @@ var installSynESBuild = (0, _lodashdebounce.default)(_installoptional.installSyn
81
81
  leading: true,
82
82
  trailing: false
83
83
  });
84
+ function commandError(failures) {
85
+ if (failures.length === 0) return undefined;
86
+ if (failures.length === 1 && _instanceof(failures[0], Error)) return failures[0];
87
+ var error = new Error('Browser command or restoration failed');
88
+ error.errors = failures;
89
+ return error;
90
+ }
84
91
  function run(args, options, callback) {
85
92
  var cwd = options.cwd || process.cwd();
86
93
  var _getopts = (0, _getoptscompat.default)(args, {
@@ -103,11 +110,37 @@ function run(args, options, callback) {
103
110
  return callback();
104
111
  }
105
112
  (0, _linkunlink.link)(cwd, (0, _tsdslib.installPath)(options), function(err, restore) {
106
- if (err) return callback(err);
113
+ if (err !== undefined && err !== null) return callback(commandError([
114
+ err
115
+ ]));
107
116
  if (!restore) return callback(new Error('link did not return restore path'));
117
+ var acquiredTarget = restore;
118
+ var cleanupStarted = false;
119
+ function finish(operationFailed, operationError) {
120
+ if (cleanupStarted) return;
121
+ cleanupStarted = true;
122
+ var completed = false;
123
+ function complete(cleanupFailed, cleanupError) {
124
+ if (completed) return;
125
+ completed = true;
126
+ var failures = [];
127
+ if (operationFailed) failures.push(operationError);
128
+ if (cleanupFailed) failures.push(cleanupError);
129
+ callback(commandError(failures));
130
+ }
131
+ try {
132
+ (0, _linkunlink.unlink)(acquiredTarget, function(error) {
133
+ return complete(error !== undefined && error !== null, error);
134
+ });
135
+ } catch (error) {
136
+ if (completed) throw error;
137
+ complete(true, error);
138
+ }
139
+ }
108
140
  try {
109
141
  installSyncRollup('rollup', "".concat(process.platform, "-").concat(process.arch), {
110
- cwd: cwd
142
+ cwd: cwd,
143
+ filter: _installoptional.matchesLibc
111
144
  });
112
145
  (0, _installoptional.removeSync)('esbuild', '@esbuild/', {
113
146
  cwd: cwd
@@ -125,13 +158,25 @@ function run(args, options, callback) {
125
158
  if (_.length === 0) Array.prototype.push.apply(spawnArgs, [
126
159
  'test/**/*.test.{ts,tsx,jsx,mjs}'
127
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/**');
128
163
  var queue = new _queuecb.default(1);
129
- queue.defer(_crossspawncb.default.bind(null, wtr, spawnArgs, options));
130
- queue.await(function(err) {
131
- return (0, _linkunlink.unlink)(restore, callback.bind(null, err));
164
+ var operationFailed = false;
165
+ var operationError;
166
+ queue.defer(function(cb) {
167
+ return (0, _crossspawncb.default)(wtr, spawnArgs, options, function(error) {
168
+ operationFailed = error !== undefined && error !== null;
169
+ operationError = error;
170
+ // Retain the operation error before the queue's truthy classification.
171
+ cb();
172
+ });
173
+ });
174
+ queue.await(function() {
175
+ return finish(operationFailed, operationError);
132
176
  });
133
- } catch (err) {
134
- callback(_instanceof(err, Error) ? err : new Error(String(err)));
177
+ } catch (error) {
178
+ if (cleanupStarted) throw error;
179
+ finish(true, error);
135
180
  }
136
181
  });
137
182
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/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, 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, 'esm', '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 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) return callback(err);\n if (!restore) return callback(new Error('link did not return restore path'));\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd });\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 queue.defer(spawn.bind(null, wtr, spawnArgs, options));\n queue.await((err) => unlink(restore, callback.bind(null, err)));\n } catch (err) {\n callback(err instanceof Error ? err : new Error(String(err)));\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","run","args","options","callback","cwd","getopts","stopEarly","alias","boolean","_","opts","filteredArgs","filter","arg","console","log","link","installPath","err","restore","Error","platform","arch","removeSync","wtr","resolveBin","spawnArgs","Array","prototype","push","apply","length","queue","Queue","defer","spawn","bind","await","unlink","String","worker","callbacks"],"mappings":";;;;+BA8DA;;;eAAwBA;;;mEA9DN;oEACE;+BACoB;0BACX;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,CAACP,WAAW;AAClC,IAAMQ,SAASP,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO;AAEtC,IAAMG,oBAAoBC,IAAAA,uBAAQ,EAACC,4BAAW,EAA6C,KAAK;IAAEC,SAAS;IAAMC,UAAU;AAAM;AACjI,IAAMC,oBAAoBJ,IAA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AAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAWf;YACtC,IAAIF,EAAEsB,MAAM,KAAK,GAAGJ,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAW;gBAAC;aAAkC;YAE7F,IAAMM,QAAQ,IAAIC,gBAAK,CAAC;YACxBD,MAAME,KAAK,CAACC,qBAAK,CAACC,IAAI,CAAC,MAAMZ,KAAKE,WAAWxB;YAC7C8B,MAAMK,KAAK,CAAC,SAACnB;uBAAQoB,IAAAA,kBAAM,EAACnB,SAAShB,SAASiC,IAAI,CAAC,MAAMlB;;QAC3D,EAAE,OAAOA,KAAK;YACZf,SAASe,AAAG,YAAHA,KAAeE,SAAQF,MAAM,IAAIE,MAAMmB,OAAOrB;QACzD;IACF;AACF;AAIA,IAAMsB,SAAUxD,YAAYgB,MAAMoC,IAAAA,qBAAI,EAAC,WAAWlD,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEkD,WAAW;AAAK;AAE3F,SAAShE,YAAYwB,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpGqC,OAAOvC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AI,GAAI;gBAAE5B,KAAAA;YAAI;YAE1E,IAAM+B,MAAMC,IAAAA,uBAAU,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"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/exports/createConfig.ts"],"sourcesContent":["import { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { importMapsPlugin } from '@web/dev-server-import-maps';\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { merge } from 'webpack-merge';\n\nconst options = {\n concurrency: 1,\n launchOptions: {\n headless: true,\n },\n};\n\nexport default function createConfig(mergeConfig = {}) {\n const config = {\n browserStartTimeout: 600000, // 10 mins\n testsStartTimeout: 600000, // 10 mins\n staticLogging: true,\n nodeResolve: true,\n browsers: [\n playwrightLauncher({\n product: 'chromium',\n ...options,\n }),\n playwrightLauncher({\n product: 'firefox',\n ...options,\n }),\n playwrightLauncher({\n product: 'webkit',\n ...options,\n }),\n ],\n plugins: [\n importMapsPlugin({\n inject: {\n importMap: {\n imports: {\n assert: 'https://esm.sh/assert',\n },\n },\n },\n }),\n esbuildPlugin({\n loaders: {\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.jsx': 'jsx',\n '.cjs': 'js',\n '.mjs': 'js',\n },\n jsxFactory: 'React.createElement',\n jsxFragment: 'Fragment',\n }),\n ],\n };\n return merge(mergeConfig, config);\n}\n"],"names":["createConfig","options","concurrency","launchOptions","headless","mergeConfig","config","browserStartTimeout","testsStartTimeout","staticLogging","nodeResolve","browsers","playwrightLauncher","product","plugins","importMapsPlugin","inject","importMap","imports","assert","esbuildPlugin","loaders","jsxFactory","jsxFragment","merge"],"mappings":";;;;+BAYA;;;eAAwBA;;;gCAZM;mCACG;oCACE;4BACb;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB,IAAMC,UAAU;IACdC,aAAa;IACbC,eAAe;QACbC,UAAU;IACZ;AACF;AAEe,SAASJ;QAAaK,cAAAA,iEAAc,CAAC;IAClD,IAAMC,SAAS;QACbC,qBAAqB;QACrBC,mBAAmB;QACnBC,eAAe;QACfC,aAAa;QACbC,UAAU;YACRC,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;YAELW,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;YAELW,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;SAEN;QACDa,SAAS;YACPC,IAAAA,qCAAgB,EAAC;gBACfC,QAAQ;oBACNC,WAAW;wBACTC,SAAS;4BACPC,QAAQ;wBACV;oBACF;gBACF;YACF;YACAC,IAAAA,+BAAa,EAAC;gBACZC,SAAS;oBACP,OAAO;oBACP,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,QAAQ;gBACV;gBACAC,YAAY;gBACZC,aAAa;YACf;SACD;IACH;IACA,OAAOC,IAAAA,mBAAK,EAACnB,aAAaC;AAC5B"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/exports/createConfig.ts"],"sourcesContent":["import { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { importMapsPlugin } from '@web/dev-server-import-maps';\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { merge } from 'webpack-merge';\n\nconst options = {\n concurrency: 1,\n launchOptions: {\n headless: true,\n },\n};\n\nexport default function createConfig(mergeConfig = {}) {\n const config = {\n browserStartTimeout: 600000, // 10 mins\n testsStartTimeout: 600000, // 10 mins\n staticLogging: true,\n nodeResolve: true,\n browsers: [\n playwrightLauncher({\n product: 'chromium',\n ...options,\n }),\n playwrightLauncher({\n product: 'firefox',\n ...options,\n }),\n playwrightLauncher({\n product: 'webkit',\n ...options,\n }),\n ],\n plugins: [\n importMapsPlugin({\n inject: {\n importMap: {\n imports: {\n assert: 'https://esm.sh/assert',\n },\n },\n },\n }),\n esbuildPlugin({\n loaders: {\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.jsx': 'jsx',\n '.cjs': 'js',\n '.mjs': 'js',\n },\n jsxFactory: 'React.createElement',\n jsxFragment: 'Fragment',\n }),\n ],\n };\n return merge(mergeConfig, config);\n}\n"],"names":["createConfig","options","concurrency","launchOptions","headless","mergeConfig","config","browserStartTimeout","testsStartTimeout","staticLogging","nodeResolve","browsers","playwrightLauncher","product","plugins","importMapsPlugin","inject","importMap","imports","assert","esbuildPlugin","loaders","jsxFactory","jsxFragment","merge"],"mappings":";;;;+BAYA;;;eAAwBA;;;gCAZM;mCACG;oCACE;4BACb;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB,IAAMC,UAAU;IACdC,aAAa;IACbC,eAAe;QACbC,UAAU;IACZ;AACF;AAEe,SAASJ;QAAaK,cAAAA,iEAAc,CAAC;IAClD,IAAMC,SAAS;QACbC,qBAAqB;QACrBC,mBAAmB;QACnBC,eAAe;QACfC,aAAa;QACbC,UAAU;YACRC,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;YAELW,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;YAELW,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNZ;SAEN;QACDa,SAAS;YACPC,IAAAA,qCAAgB,EAAC;gBACfC,QAAQ;oBACNC,WAAW;wBACTC,SAAS;4BACPC,QAAQ;wBACV;oBACF;gBACF;YACF;YACAC,IAAAA,+BAAa,EAAC;gBACZC,SAAS;oBACP,OAAO;oBACP,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,QAAQ;gBACV;gBACAC,YAAY;gBACZC,aAAa;YACf;SACD;IACH;IACA,OAAOC,IAAAA,mBAAK,EAACnB,aAAaC;AAC5B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":";;;;+BAASA;;;eAAAA,kBAAO;;;gEAAQ"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":";;;;+BAASA;;;eAAAA,kBAAO;;;gEAAQ"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/wtr.config.ts"],"sourcesContent":["import createConfig from './exports/createConfig.ts';\n\nexport default createConfig();\n"],"names":["createConfig"],"mappings":";;;;+BAEA;;;eAAA;;;qEAFyB;;;;;;IAEzB,WAAeA,IAAAA,uBAAY"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/wtr.config.ts"],"sourcesContent":["import createConfig from './exports/createConfig.ts';\n\nexport default createConfig();\n"],"names":["createConfig"],"mappings":";;;;+BAEA;;;eAAA;;;qEAFyB;;;;;;IAEzB,WAAeA,IAAAA,uBAAY"}
@@ -1,6 +1,6 @@
1
1
  import spawn from 'cross-spawn-cb';
2
2
  import getopts from 'getopts-compat';
3
- import { installSync, removeSync } from 'install-optional';
3
+ import { installSync, matchesLibc, removeSync } from 'install-optional';
4
4
  import { link, unlink } from 'link-unlink';
5
5
  import debounce from 'lodash.debounce';
6
6
  import { bind } from 'node-version-call';
@@ -15,7 +15,7 @@ const minor = +process.versions.node.split('.')[1];
15
15
  const supported = major > 22 || major === 22 && minor >= 12;
16
16
  const __dirname = path.dirname(typeof __filename === 'undefined' ? url.fileURLToPath(import.meta.url) : __filename);
17
17
  const dist = path.join(__dirname, '..');
18
- const config = path.join(dist, 'esm', 'wtr.config.js');
18
+ const config = path.join(dist, 'cjs', 'wtr.config.js');
19
19
  const installSyncRollup = debounce(installSync, 300, {
20
20
  leading: true,
21
21
  trailing: false
@@ -24,6 +24,13 @@ const installSynESBuild = debounce(installSync, 300, {
24
24
  leading: true,
25
25
  trailing: false
26
26
  });
27
+ function commandError(failures) {
28
+ if (failures.length === 0) return undefined;
29
+ if (failures.length === 1 && failures[0] instanceof Error) return failures[0];
30
+ const error = new Error('Browser command or restoration failed');
31
+ error.errors = failures;
32
+ return error;
33
+ }
27
34
  function run(args, options, callback) {
28
35
  const cwd = options.cwd || process.cwd();
29
36
  const { _, ...opts } = getopts(args, {
@@ -42,11 +49,35 @@ function run(args, options, callback) {
42
49
  return callback();
43
50
  }
44
51
  link(cwd, installPath(options), (err, restore)=>{
45
- if (err) return callback(err);
52
+ if (err !== undefined && err !== null) return callback(commandError([
53
+ err
54
+ ]));
46
55
  if (!restore) return callback(new Error('link did not return restore path'));
56
+ const acquiredTarget = restore;
57
+ let cleanupStarted = false;
58
+ function finish(operationFailed, operationError) {
59
+ if (cleanupStarted) return;
60
+ cleanupStarted = true;
61
+ let completed = false;
62
+ function complete(cleanupFailed, cleanupError) {
63
+ if (completed) return;
64
+ completed = true;
65
+ const failures = [];
66
+ if (operationFailed) failures.push(operationError);
67
+ if (cleanupFailed) failures.push(cleanupError);
68
+ callback(commandError(failures));
69
+ }
70
+ try {
71
+ unlink(acquiredTarget, (error)=>complete(error !== undefined && error !== null, error));
72
+ } catch (error) {
73
+ if (completed) throw error;
74
+ complete(true, error);
75
+ }
76
+ }
47
77
  try {
48
78
  installSyncRollup('rollup', `${process.platform}-${process.arch}`, {
49
- cwd
79
+ cwd,
80
+ filter: matchesLibc
50
81
  });
51
82
  removeSync('esbuild', '@esbuild/', {
52
83
  cwd
@@ -64,11 +95,21 @@ function run(args, options, callback) {
64
95
  if (_.length === 0) Array.prototype.push.apply(spawnArgs, [
65
96
  'test/**/*.test.{ts,tsx,jsx,mjs}'
66
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/**');
67
100
  const queue = new Queue(1);
68
- queue.defer(spawn.bind(null, wtr, spawnArgs, options));
69
- queue.await((err)=>unlink(restore, callback.bind(null, err)));
70
- } catch (err) {
71
- callback(err instanceof Error ? err : new Error(String(err)));
101
+ let operationFailed = false;
102
+ let operationError;
103
+ queue.defer((cb)=>spawn(wtr, spawnArgs, options, (error)=>{
104
+ operationFailed = error !== undefined && error !== null;
105
+ operationError = error;
106
+ // Retain the operation error before the queue's truthy classification.
107
+ cb();
108
+ }));
109
+ queue.await(()=>finish(operationFailed, operationError));
110
+ } catch (error) {
111
+ if (cleanupStarted) throw error;
112
+ finish(true, error);
72
113
  }
73
114
  });
74
115
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/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, 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, 'esm', '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 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) return callback(err);\n if (!restore) return callback(new Error('link did not return restore path'));\n\n try {\n installSyncRollup('rollup', `${process.platform}-${process.arch}`, { cwd });\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 queue.defer(spawn.bind(null, wtr, spawnArgs, options));\n queue.await((err) => unlink(restore, callback.bind(null, err)));\n } catch (err) {\n callback(err instanceof Error ? err : new Error(String(err)));\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","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","run","args","options","callback","cwd","_","opts","stopEarly","alias","boolean","filteredArgs","filter","arg","console","log","err","restore","Error","platform","arch","wtr","spawnArgs","Array","prototype","push","apply","length","queue","defer","await","String","worker","callbacks","testBrowser"],"mappings":"AAAA,OAAOA,WAAW,iBAAiB;AACnC,OAAOC,aAAa,iBAAiB;AACrC,SAASC,WAAW,EAAEC,UAAU,QAAQ,mBAAmB;AAC3D,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,KAA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ACzEhC,WAAW,WAAW,aAAa;gBAAEgC;YAAI;YACzCL,kBAAkB,WAAW,GAAGhB,QAAQmC,QAAQ,CAAC,CAAC,EAAEnC,QAAQoC,IAAI,EAAE,EAAE;gBAAEf;YAAI;YAE1E,MAAMgB,MAAMzC,WAAW,oBAAoB;YAC3C,MAAM0C,YAAsB,EAAE;YAC9B,IAAI,CAACf,KAAKX,MAAM,EAAE2B,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAW;gBAAC;gBAAY1B;aAAO;YAC5E2B,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAWX;YACtC,IAAIL,EAAEqB,MAAM,KAAK,GAAGJ,MAAMC,SAAS,CAACC,IAAI,CAACC,KAAK,CAACJ,WAAW;gBAAC;aAAkC;YAE7F,MAAMM,QAAQ,IAAIjD,MAAM;YACxBiD,MAAMC,KAAK,CAAC3D,MAAMO,IAAI,CAAC,MAAM4C,KAAKC,WAAWnB;YAC7CyB,MAAME,KAAK,CAAC,CAACd,MAAQzC,OAAO0C,SAASb,SAAS3B,IAAI,CAAC,MAAMuC;QAC3D,EAAE,OAAOA,KAAK;YACZZ,SAASY,eAAeE,QAAQF,MAAM,IAAIE,MAAMa,OAAOf;QACzD;IACF;AACF;AAIA,MAAMgB,SAAU3C,YAAYY,MAAMxB,KAAK,WAAWC,KAAKiB,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEuC,WAAW;AAAK;AAE1G,eAAe,SAASC,YAAYhC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpG4B,OAAO9B,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,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;AAAM;AACjI,MAAMC,oBAAoBxB,SAASL,aAAwD,KAAK;IAAE2B,SAAS;IAAMC,UAAU;AAAM;AAEjI,SAASE,aAAaC,QAAmB;IACvC,IAAIA,SAASC,MAAM,KAAK,GAAG,OAAOC;IAClC,IAAIF,SAASC,MAAM,KAAK,KAAKD,QAAQ,CAA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K;AAE1G,eAAe,SAASC,YAAYvC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpGmC,OAAOrC,MAAMC,SAASC;AACxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/exports/createConfig.ts"],"sourcesContent":["import { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { importMapsPlugin } from '@web/dev-server-import-maps';\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { merge } from 'webpack-merge';\n\nconst options = {\n concurrency: 1,\n launchOptions: {\n headless: true,\n },\n};\n\nexport default function createConfig(mergeConfig = {}) {\n const config = {\n browserStartTimeout: 600000, // 10 mins\n testsStartTimeout: 600000, // 10 mins\n staticLogging: true,\n nodeResolve: true,\n browsers: [\n playwrightLauncher({\n product: 'chromium',\n ...options,\n }),\n playwrightLauncher({\n product: 'firefox',\n ...options,\n }),\n playwrightLauncher({\n product: 'webkit',\n ...options,\n }),\n ],\n plugins: [\n importMapsPlugin({\n inject: {\n importMap: {\n imports: {\n assert: 'https://esm.sh/assert',\n },\n },\n },\n }),\n esbuildPlugin({\n loaders: {\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.jsx': 'jsx',\n '.cjs': 'js',\n '.mjs': 'js',\n },\n jsxFactory: 'React.createElement',\n jsxFragment: 'Fragment',\n }),\n ],\n };\n return merge(mergeConfig, config);\n}\n"],"names":["esbuildPlugin","importMapsPlugin","playwrightLauncher","merge","options","concurrency","launchOptions","headless","createConfig","mergeConfig","config","browserStartTimeout","testsStartTimeout","staticLogging","nodeResolve","browsers","product","plugins","inject","importMap","imports","assert","loaders","jsxFactory","jsxFragment"],"mappings":"AAAA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,KAAK,QAAQ,gBAAgB;AAEtC,MAAMC,UAAU;IACdC,aAAa;IACbC,eAAe;QACbC,UAAU;IACZ;AACF;AAEA,eAAe,SAASC,aAAaC,cAAc,CAAC,CAAC;IACnD,MAAMC,SAAS;QACbC,qBAAqB;QACrBC,mBAAmB;QACnBC,eAAe;QACfC,aAAa;QACbC,UAAU;YACRb,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;YACAF,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;YACAF,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;SACD;QACDa,SAAS;YACPhB,iBAAiB;gBACfiB,QAAQ;oBACNC,WAAW;wBACTC,SAAS;4BACPC,QAAQ;wBACV;oBACF;gBACF;YACF;YACArB,cAAc;gBACZsB,SAAS;oBACP,OAAO;oBACP,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,QAAQ;gBACV;gBACAC,YAAY;gBACZC,aAAa;YACf;SACD;IACH;IACA,OAAOrB,MAAMM,aAAaC;AAC5B"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/exports/createConfig.ts"],"sourcesContent":["import { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { importMapsPlugin } from '@web/dev-server-import-maps';\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { merge } from 'webpack-merge';\n\nconst options = {\n concurrency: 1,\n launchOptions: {\n headless: true,\n },\n};\n\nexport default function createConfig(mergeConfig = {}) {\n const config = {\n browserStartTimeout: 600000, // 10 mins\n testsStartTimeout: 600000, // 10 mins\n staticLogging: true,\n nodeResolve: true,\n browsers: [\n playwrightLauncher({\n product: 'chromium',\n ...options,\n }),\n playwrightLauncher({\n product: 'firefox',\n ...options,\n }),\n playwrightLauncher({\n product: 'webkit',\n ...options,\n }),\n ],\n plugins: [\n importMapsPlugin({\n inject: {\n importMap: {\n imports: {\n assert: 'https://esm.sh/assert',\n },\n },\n },\n }),\n esbuildPlugin({\n loaders: {\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.jsx': 'jsx',\n '.cjs': 'js',\n '.mjs': 'js',\n },\n jsxFactory: 'React.createElement',\n jsxFragment: 'Fragment',\n }),\n ],\n };\n return merge(mergeConfig, config);\n}\n"],"names":["esbuildPlugin","importMapsPlugin","playwrightLauncher","merge","options","concurrency","launchOptions","headless","createConfig","mergeConfig","config","browserStartTimeout","testsStartTimeout","staticLogging","nodeResolve","browsers","product","plugins","inject","importMap","imports","assert","loaders","jsxFactory","jsxFragment"],"mappings":"AAAA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,kBAAkB,QAAQ,8BAA8B;AACjE,SAASC,KAAK,QAAQ,gBAAgB;AAEtC,MAAMC,UAAU;IACdC,aAAa;IACbC,eAAe;QACbC,UAAU;IACZ;AACF;AAEA,eAAe,SAASC,aAAaC,cAAc,CAAC,CAAC;IACnD,MAAMC,SAAS;QACbC,qBAAqB;QACrBC,mBAAmB;QACnBC,eAAe;QACfC,aAAa;QACbC,UAAU;YACRb,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;YACAF,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;YACAF,mBAAmB;gBACjBc,SAAS;gBACT,GAAGZ,OAAO;YACZ;SACD;QACDa,SAAS;YACPhB,iBAAiB;gBACfiB,QAAQ;oBACNC,WAAW;wBACTC,SAAS;4BACPC,QAAQ;wBACV;oBACF;gBACF;YACF;YACArB,cAAc;gBACZsB,SAAS;oBACP,OAAO;oBACP,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,QAAQ;gBACV;gBACAC,YAAY;gBACZC,aAAa;YACf;SACD;IACH;IACA,OAAOrB,MAAMM,aAAaC;AAC5B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,eAAe"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/index.ts"],"sourcesContent":["export { default } from './command.ts';\n"],"names":["default"],"mappings":"AAAA,SAASA,OAAO,QAAQ,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/typescript/ts-dev-stack/tsds-web-test-runner/src/wtr.config.ts"],"sourcesContent":["import createConfig from './exports/createConfig.ts';\n\nexport default createConfig();\n"],"names":["createConfig"],"mappings":"AAAA,OAAOA,kBAAkB,4BAA4B;AAErD,eAAeA,eAAe"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/open-source/typescript/ts-dev-stack/tsds-web-test-runner/src/wtr.config.ts"],"sourcesContent":["import createConfig from './exports/createConfig.ts';\n\nexport default createConfig();\n"],"names":["createConfig"],"mappings":"AAAA,OAAOA,kBAAkB,4BAA4B;AAErD,eAAeA,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsds-web-test-runner",
3
- "version": "1.20.10",
3
+ "version": "1.21.1",
4
4
  "description": "Development stack for TypeScript libraries",
5
5
  "keywords": [
6
6
  "c8",
@@ -52,21 +52,22 @@
52
52
  "install-optional": "^1.2.0",
53
53
  "link-unlink": "^1.1.0",
54
54
  "lodash.debounce": "^4.0.8",
55
- "node-version-call": "^3.1.0",
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": {
62
62
  "@types/lodash.debounce": "^4.0.9",
63
63
  "@types/mocha": "*",
64
64
  "@types/node": "*",
65
+ "@web/test-runner-commands": "^1.0.1",
66
+ "fs-remove-compat": "^1.1.0",
65
67
  "module-link-unlink": "^1.1.0",
66
68
  "node-version-use": "*",
67
69
  "queue-cb": "^1.6.3",
68
70
  "resolve": "^1.22.11",
69
- "short-hash": "^1.0.0",
70
71
  "ts-dev-stack": "*",
71
72
  "tsds-config": "*",
72
73
  "tsds-lib-test": "^1.20.0"