Skip to content

Commit

Permalink
feat: Support --esm flag (#235)
Browse files Browse the repository at this point in the history
* feat: Support --esm

* update test cli path
  • Loading branch information
tianfeng92 authored Jul 16, 2024
1 parent 64ff7dd commit a7e612e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/testcafe-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export function buildCommandLine(
cli.push('--compiler-options', options);
}
}
if (suite.esm) {
cli.push('--esm');
}

// Screenshots
if (suite.screenshots) {
Expand Down Expand Up @@ -286,8 +289,8 @@ async function runTestCafe(
'..',
'node_modules',
'testcafe',
'lib',
'cli',
'bin',
'testcafe-with-v8-flag-filter.js',
);

const testcafeProc = spawn(
Expand Down
1 change: 1 addition & 0 deletions src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export type Suite = {
filter?: Filter;
preExec?: string[];
timeout?: number;
esm?: boolean;
};

export type TestCafeConfig = {
Expand Down

0 comments on commit a7e612e

Please sign in to comment.