src/expectations/startsWith.ts

import { Answerable, Expectation } from '@serenity-js/core';

export function startsWith(expected: Answerable<string>): Expectation<string> {
    return Expectation.thatActualShould<string, string>('start with', expected)
        .soThat((actualValue, expectedValue) => actualValue.startsWith(expectedValue));
}