tsds-web-test-runner 1.20.4 → 1.20.5
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/dist/cjs/command.js +1 -0
- package/dist/cjs/command.js.map +1 -1
- package/dist/cjs/exports/createConfig.js +1 -2
- package/dist/cjs/exports/createConfig.js.map +1 -1
- package/dist/esm/command.js +1 -0
- package/dist/esm/command.js.map +1 -1
- package/dist/esm/exports/createConfig.js +1 -2
- package/dist/esm/exports/createConfig.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/command.js
CHANGED
|
@@ -103,6 +103,7 @@ function run(args, options, callback) {
|
|
|
103
103
|
}
|
|
104
104
|
(0, _linkunlink.link)(cwd, (0, _tsdslib.installPath)(options), function(err, restore) {
|
|
105
105
|
if (err) return callback(err);
|
|
106
|
+
if (!restore) return callback(new Error('link did not return restore path'));
|
|
106
107
|
try {
|
|
107
108
|
installSyncRollup('rollup', "".concat(process.platform, "-").concat(process.arch), {
|
|
108
109
|
cwd: cwd
|
package/dist/cjs/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 __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\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
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 __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 = (major >= 20 ? run : bind('>=20', 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","__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":";;;;+BA2DA;;;eAAwBA;;;mEA3DN;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,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,IAAAA,uBAAQ,EAACC,4BAAW,EAA6C,KAAK;IAAEC,SAAS;IAAMC,UAAU;AAAM;AAEjI,SAASE,IAAIC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IAC7E,IAAMC,MAAc,AAACF,QAAQE,GAAG,IAAevB,QAAQuB,GAAG;IAC1D,IAAuBC,WAAAA,IAAAA,sBAAO,EAACJ,MAAM;QAAEK,WAAW;QAAMC,OAAO;YAAEd,QAAQ;YAAK,WAAW;QAAI;QAAGe,SAAS;YAAC;SAAU;IAAC,IAA7GC,IAAeJ,SAAfI,GAAMC,kCAASL;;;IACvB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AAE,OAAOA,KAAK;YACZf,SAASe,AAAG,YAAHA,KAAeE,SAAQF,MAAM,IAAIE,MAAMmB,OAAOrB;QACzD;IACF;AACF;AAIA,IAAMsB,SAAU5D,SAAS,KAAKoB,MAAMoC,IAAAA,qBAAI,EAAC,QAAQlD,aAAI,CAACM,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEkD,WAAW;AAAK;AAE1F,SAAS9D,YAAYsB,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpGqC,OAAOvC,MAAMC,SAASC;AACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 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","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,aAAa;QACbC,UAAU;YACRC,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNX;YAELU,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNX;YAELU,IAAAA,wCAAkB,EAAC;gBACjBC,SAAS;eACNX;SAEN;QACDY,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,EAAClB,aAAaC;AAC5B"}
|
package/dist/esm/command.js
CHANGED
|
@@ -40,6 +40,7 @@ function run(args, options, callback) {
|
|
|
40
40
|
}
|
|
41
41
|
link(cwd, installPath(options), (err, restore)=>{
|
|
42
42
|
if (err) return callback(err);
|
|
43
|
+
if (!restore) return callback(new Error('link did not return restore path'));
|
|
43
44
|
try {
|
|
44
45
|
installSyncRollup('rollup', `${process.platform}-${process.arch}`, {
|
|
45
46
|
cwd
|
package/dist/esm/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 __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\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
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 __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 = (major >= 20 ? run : bind('>=20', 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","__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,gBAAg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AE8B;YAAI;YACzCL,kBAAkB,WAAW,GAAGd,QAAQiC,QAAQ,CAAC,CAAC,EAAEjC,QAAQkC,IAAI,EAAE,EAAE;gBAAEf;YAAI;YAE1E,MAAMgB,MAAMvC,WAAW,oBAAoB;YAC3C,MAAMwC,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,IAAI/C,MAAM;YACxB+C,MAAMC,KAAK,CAACzD,MAAMO,IAAI,CAAC,MAAM0C,KAAKC,WAAWnB;YAC7CyB,MAAME,KAAK,CAAC,CAACd,MAAQvC,OAAOwC,SAASb,SAASzB,IAAI,CAAC,MAAMqC;QAC3D,EAAE,OAAOA,KAAK;YACZZ,SAASY,eAAeE,QAAQF,MAAM,IAAIE,MAAMa,OAAOf;QACzD;IACF;AACF;AAIA,MAAMgB,SAAU/C,SAAS,KAAKgB,MAAMtB,KAAK,QAAQC,KAAKe,IAAI,CAACD,MAAM,OAAO,eAAe;IAAEuC,WAAW;AAAK;AAEzG,eAAe,SAASC,YAAYhC,IAAc,EAAEC,OAAuB,EAAEC,QAAyB;IACpG4B,OAAO9B,MAAMC,SAASC;AACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/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 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","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,aAAa;QACbC,UAAU;YACRZ,mBAAmB;gBACjBa,SAAS;gBACT,GAAGX,OAAO;YACZ;YACAF,mBAAmB;gBACjBa,SAAS;gBACT,GAAGX,OAAO;YACZ;YACAF,mBAAmB;gBACjBa,SAAS;gBACT,GAAGX,OAAO;YACZ;SACD;QACDY,SAAS;YACPf,iBAAiB;gBACfgB,QAAQ;oBACNC,WAAW;wBACTC,SAAS;4BACPC,QAAQ;wBACV;oBACF;gBACF;YACF;YACApB,cAAc;gBACZqB,SAAS;oBACP,OAAO;oBACP,QAAQ;oBACR,QAAQ;oBACR,QAAQ;oBACR,QAAQ;gBACV;gBACAC,YAAY;gBACZC,aAAa;YACf;SACD;IACH;IACA,OAAOpB,MAAMM,aAAaC;AAC5B"}
|