@v4fire/client
Version:
V4Fire client core library
25 lines (20 loc) • 634 B
text/typescript
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
import type { Config } from '@playwright/test';
import { build } from '@config/config';
// Playwright doesn't export type for WebServerConfig.
// Get it from Config interface
type NotArray<T> = T extends any[] ? never : T;
type TestConfigServer = NonNullable<NotArray<Config['webServer']>>;
const webServerConfig: TestConfigServer = {
port: build.testPort,
reuseExistingServer: true,
command: 'yarn test:server',
cwd: process.cwd()
};
export default webServerConfig;