🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! amd -> back to esm
  • Loading branch information
timmywil committed Mar 5, 2024
commit 2b6f86d65d4752ae6437f1011a12ad254c1a1297
6 changes: 3 additions & 3 deletions test/runner/lib/buildTestUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generateModuleId } from "./generateHash.js";

export function buildTestUrl( modules, { amd, browserstack, jsdom, port, reportId } ) {
export function buildTestUrl( modules, { browserstack, esm, jsdom, port, reportId } ) {
if ( !port ) {
throw new Error( "No port specified." );
}
Expand All @@ -10,8 +10,8 @@ export function buildTestUrl( modules, { amd, browserstack, jsdom, port, reportI
query.append( "moduleId", generateModuleId( module ) );
}

if ( amd ) {
query.append( "amd", "true" );
if ( esm ) {
query.append( "esmodules", "true" );
}

if ( jsdom ) {
Expand Down
4 changes: 2 additions & 2 deletions test/runner/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ const EXIT_HOOK_WAIT_TIMEOUT = 60 * 1000;
* Run modules in parallel in different browser instances.
*/
export async function run( {
amd,
browsers: browserNames,
browserstack,
concurrency,
debug,
esm,
headless,
isolate,
modules = [],
Expand Down Expand Up @@ -242,8 +242,8 @@ export async function run( {
reports[ reportId ] = { browser, headless, modules };

const url = buildTestUrl( modules, {
amd,
browserstack,
esm,
jsdom: browser.browser === "jsdom",
port,
reportId
Expand Down