function getExpectedResult(jsCodeText, parserOptions, { rethrowSyntaxError = false } = {}) {
    try {
        return getRaw(espree.parse(jsCodeText, parserOptions));
    } catch (ex) {
        if (rethrowSyntaxError) {
            throw ex;
        }
        return { ...getRaw(ex), message: ex.message };
    }
}
Parse and normalzie a JavaScript code.
@param {string} jsCodeText The JavaScript code to parse.
@param {Object} parserOptions The parser options to parse.
@param {Object} [options] The options.
@param {boolean} [options.rethrowSyntaxError = false] The flag to rethrow syntax errors.
@throws {Error} If options.rethrowSyntaxError = true, rethrows syntax errors
@returns {Object} The normalized AST.