[0-0] RUNNING in chrome - file:///e2e/app.e2e-spec.ts[0-0] PASSED in chrome - file:///e2e/app.e2e-spec.ts[0-2] 2024-01-10T16:02:52.684Z WARN @wdio/jasmine-framework: Unable to load spec files quite likely because they rely on `browser` object that is not fully initialized.[0-2] `browser` object has only `capabilities` and some flags like `isMobile`.[0-2] Helper files that use other `browser` commands have to be moved to `before` hook.[0-2] Spec file(s): file:///workspaces/nghyd/e2e/bief-empty-fields.e2e-spec.ts[0-2] Error: TSError: ⨯ Unable to compile TypeScript:[0-2] e2e/list.po.ts(27,27): error TS2802: Type 'ElementArray' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.[0-2] [0-2] at createTSError (/workspaces/nghyd/node_modules/ts-node/src/index.ts:859:12)[0-2] at reportTSError (/workspaces/nghyd/node_modules/ts-node/src/index.ts:863:19)[0-2] at getOutput (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1077:36)[0-2] at Object.compile (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1433:41)[0-2] at Module.m._compile (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1617:30)[0-2] at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)[0-2] at Object.require.extensions.<computed> [as .ts] (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1621:12)[0-2] at Module.load (node:internal/modules/cjs/loader:1197:32)[0-2] at Function.Module._load (node:internal/modules/cjs/loader:1013:12)[0-2] at Module.require (node:internal/modules/cjs/loader:1225:19)[0-2] RUNNING in chrome - file:///e2e/bief-empty-fields.e2e-spec.ts[0-2] 2024-01-10T16:02:55.426Z ERROR @wdio/runner: TSError: ⨯ Unable to compile TypeScript:[0-2] e2e/list.po.ts(27,27): error TS2802: Type 'ElementArray' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.[0-2] [0-2] at createTSError (/workspaces/nghyd/node_modules/ts-node/src/index.ts:859:12)[0-2] at reportTSError (/workspaces/nghyd/node_modules/ts-node/src/index.ts:863:19)[0-2] at getOutput (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1077:36)[0-2] at Object.compile (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1433:41)[0-2] at Module.m._compile (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1617:30)[0-2] at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)[0-2] at Object.require.extensions.<computed> [as .ts] (/workspaces/nghyd/node_modules/ts-node/src/index.ts:1621:12)[0-2] at Module.load (node:internal/modules/cjs/loader:1197:32)[0-2] at Function.Module._load (node:internal/modules/cjs/loader:1013:12)[0-2] at Module.require (node:internal/modules/cjs/loader:1225:19)[0-2] Error: ⨯ Unable to compile TypeScript:e2e/list.po.ts(27,27): error TS2802: Type 'ElementArray' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.[0-2] FAILED in chrome - file:///e2e/bief-empty-fields.e2e-spec.ts
It seems that test compilation don't use es2015 target whereas wdio.conf.ts defines the tsNodeOpts/project option to "./e2e/tsconfig.e2e.json" which defines "target": "es2015" (via inheritance of tsconfig.base.json) and "downlevelIteration": true. So these compilation options don't seem to be taken into account anymore...