import { IocdBaseConfiguration, IocdService } from '@interopio/wdio-iocd-service';

export const config: WebdriverIO.Config = {
    ...IocdBaseConfiguration,

    // Services
    services: IocdService(),

    // Capabilities
    capabilities: [
        {
            browserName: 'iocd',
            'wdio:specs': ['./tests/**/*.spec.ts'],
            'iocd:options': {
                binary: '%BINARY_PATH%',
            },
        },
    ],

    // WDIO Options
    logLevel: 'info',
    framework: 'mocha',
    reporters: ['spec'],

    // TypeScript Autocompile
    autoCompileOpts: {
        autoCompile: true,
        tsNodeOpts: {
            transpileOnly: true,
            project: './tsconfig.json',
        },
    },
};