Skip to content

Commit

Permalink
🤖 Merge PR #68236 [wallabyjs] update types of files and tests propert…
Browse files Browse the repository at this point in the history
…ies in IWallabyConfig by @boneskull

Both of the array properties in question can be a _mix_ of `string` values and `IWallabyFilePattern` values.
  • Loading branch information
boneskull committed Jan 17, 2024
1 parent 77fde50 commit 942c50b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/wallabyjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ declare module "wallabyjs" {
compilers?: IWallabyCompilers | undefined;
debug?: boolean | undefined;
env?: IWallabyEnvironment | undefined;
files: string[] | IWallabyFilePattern[];
files: Array<string | IWallabyFilePattern>;
postprocessor?: IWallabyProcessor | undefined;
preprocessors?: IWallabyProcessor | undefined;
testFramework?: string | undefined;
tests: string[] | IWallabyFilePattern[];
tests: Array<string | IWallabyFilePattern>;
workers?: IWallabyWorkers | undefined;
}

Expand Down
6 changes: 4 additions & 2 deletions types/wallabyjs/wallabyjs-tests.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import * as wallabyjs from "wallabyjs";

export class WallabyConfig implements wallabyjs.IWallabyConfig {
public files: string[] = [
public files: Array<string | wallabyjs.IWallabyFilePattern> = [
"src/**/*.ts",
"!src/**/*.spec.ts",
{ pattern: "src/**/*.css", instrument: false },
];

public tests: string[] = [
public tests: Array<string | wallabyjs.IWallabyFilePattern> = [
"src/**/*.spec.ts",
{ pattern: "src/**/*.css", instrument: false },
];

public compilers: wallabyjs.IWallabyCompilers = <wallabyjs.IWallabyCompilers> {
Expand Down

0 comments on commit 942c50b

Please sign in to comment.