mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
update wallabyjs with viewport settings on environment (#13520)
This commit is contained in:
16
wallabyjs/index.d.ts
vendored
16
wallabyjs/index.d.ts
vendored
@@ -11,7 +11,7 @@ declare module 'wallabyjs' {
|
||||
*
|
||||
* @property {IWallabyCompiler=} compilers - File patterns as keys and compiler functions as values.
|
||||
* @property {boolean=} debug - Flag if debug messages written to Wallaby console (default=false).
|
||||
* @prooperty {IWallabyEnvironment=} env - Specify a different test runner or change the runner settings.
|
||||
* @property {IWallabyEnvironment=} env - Specify a different test runner or change the runner settings.
|
||||
* @property {string[] | IWallabyFilePattern[]} files - Specifies an array of source files or file name patterns to copy
|
||||
* to the local cache.
|
||||
* @property {Function=} postprocessor - Function that runs for every batch of file changes after all compilers and preprocessors.
|
||||
@@ -155,6 +155,7 @@ declare module 'wallabyjs' {
|
||||
params?: IWallabyEnvironmentParameters;
|
||||
runner?: string;
|
||||
type?: string;
|
||||
viewportSize?: IWallabyEnvironmentViewportSize
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -172,6 +173,19 @@ declare module 'wallabyjs' {
|
||||
runner?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wallaby viewport settings for testing.
|
||||
*
|
||||
* @interface IWallabyEnvironmentViewportSize
|
||||
*
|
||||
* @property {number=} width - Width in pixels for the viewport size in PhantomJs/Electron.
|
||||
* @property {number=} height - height in pixels for the viewport size in PhantomJs/Electron.
|
||||
*/
|
||||
export interface IWallabyEnvironmentViewportSize {
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wallaby worker configuration.
|
||||
*
|
||||
|
||||
@@ -31,6 +31,9 @@ export class WallabyConfig implements wallabyjs.IWallabyConfig {
|
||||
params: {
|
||||
env: 'KEY1=value1;KEY2=value2',
|
||||
runner: '--arg1;--arg2;'
|
||||
},
|
||||
viewportSize: {
|
||||
width: 800
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user