function verifyBuild (tmpDir) {
    // Allow test project to find the `cordova-ios` module
    fs.mkdirSync(path.join(tmpDir, 'node_modules'), { recursive: true });
    fs.symlinkSync(
        path.join(__dirname, '..', '..'),
        path.join(tmpDir, 'node_modules', 'cordova-ios'),
        'junction'
    );

    const Api = require(path.join(tmpDir, 'cordova', 'Api.js'));

    return expectAsync(new Api('ios', tmpDir).build({ emulator: true, buildFlag: ['-quiet'] }))
        .toBeResolved();
}
Runs and expects for a successful build.

@param {String} tmpDir
@returns {Promise}