Skip to content

Commit

Permalink
test: add verifyAst type (#5190)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Oct 11, 2023
1 parent f52a2eb commit d90f274
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/types.d.ts
Expand Up @@ -169,6 +169,11 @@ export interface TestConfigForm extends TestConfigBase {
* Rollup options for bundling.
*/
options?: RollupOptions;
/**
* Verify that the AST returned by SWC is the same as the one returned by Acorn.
* The default behavior is to verify.
*/
verifyAst?: boolean;
}

export interface TestConfigFunction extends TestConfigBase {
Expand Down Expand Up @@ -224,6 +229,11 @@ export interface TestConfigFunction extends TestConfigBase {
* Make assertions on the expected warnings.
*/
warnings?: RollupError[] | ((warnings: RollupError[]) => boolean | void);
/**
* Verify that the AST returned by SWC is the same as the one returned by Acorn.
* The default behavior is to verify.
*/
verifyAst?: boolean;
}

export interface TestConfigSourcemap extends TestConfigBase {
Expand Down

0 comments on commit d90f274

Please sign in to comment.