Skip to content

Commit

Permalink
feat: Support --esm
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Jul 16, 2024
1 parent 64ff7dd commit d350f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 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
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 d350f29

Please sign in to comment.