简体   繁体   English

是否可以看到已经构建的项目中添加的“WDIO 配置”?

[英]Is possible see the "WDIO Configuration" added in a project already build?

Is possible to see the "WDIO Configuration" added to a project already built?是否可以看到已添加到已构建项目中的“WDIO 配置”?

I mean, as we can see in the picture added, I wanna see the list of configurations added but in a project that is already built... exist a specific command in WDIO to do that?我的意思是,正如我们在添加的图片中看到的那样,我想查看添加的配置列表,但在已经构建的项目中......是否存在 WDIO 中的特定命令来执行此操作?

More context: My main objective is to know the configuration of the following line Here the image link https://ibb.co/Jqn75N7更多上下文:我的主要目标是了解以下行的配置这里的图片链接https://ibb.co/Jqn75N7

Thanks in advance !提前致谢 !

The place where you can see all the different configurations selected at the begining is wdio.conf.js or wdio.conf.ts你可以看到一开始选择的所有不同配置的地方是wdio.conf.jswdio.conf.ts

Based on the wdio documentation, if you want to use TypeScript:根据wdio文档,如果要使用 TypeScript:

You will need typescript and ts-node installed as devDependencies.您将需要安装 typescript 和 ts-node 作为 devDependencies。 WebdriverIO will automatically detect if these dependencies are installed and will compile your config and tests for you. WebdriverIO 将自动检测这些依赖项是否已安装,并为您编译配置和测试。 If you need to configure how ts-node runs please use the environment variables for ts-node or use wdio config's autoCompileOpts section.如果您需要配置 ts-node 的运行方式,请使用 ts-node 的环境变量或使用 wdio config 的 autoCompileOpts 部分。

Basically, it means that wdio automatically detects if you are using javascript or typescript.基本上,这意味着 wdio 会自动检测您使用的是 javascript 还是 typescript。

But also it allows you to set specific configurations for typescript by setting an autoCompileOpts entry in your wdio.conf.ts file:但它还允许您通过在wdio.conf.ts文件中设置autoCompileOpts条目来为 typescript 设置特定配置:

export const config = {
// ...
autoCompileOpts: {
    autoCompile: true,
    // see https://github.com/TypeStrong/ts-node#cli-and-programmatic-options
    // for all available options
    tsNodeOpts: {
        transpileOnly: true,
        project: 'tsconfig.json'
    },
    // tsconfig-paths is only used if "tsConfigPathsOpts" are provided, if you
    // do please make sure "tsconfig-paths" is installed as dependency
    tsConfigPathsOpts: {
        baseUrl: './'
    }
}

} }

Hope it helps to clarify your doubt!希望它有助于澄清您的疑问!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM