function should_update_expected() {
	return process.env.SHOULD_UPDATE_EXPECTED === 'true';
}
@param {string} cwd
@param {'client' | 'server'} generate
@param {Partial<CompileOptions>} compileOptions
@param {boolean} [output_map]
@param {any} [preprocessor]