Step 1: Create New Pipeline and Select Node.js project
Step 2: Update bitbucket-pipeline.yml like this
image: node:18.16
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- node
script:
- npm install
- npx wdio ./yourconfig.conf.ts
Make sure to update node version for image property. Also, replace config file value with your config value.