Given integer k and a k-graph F , let t k−1 (n, F ) be the minimum integer t such that every k-graph H on n vertices with codegree at least t contains an F -factor. For integers k ≥ 3 and 0 ≤ ℓ ≤ k − 1, let Y k,ℓ be a k-graph with two edges that shares exactly ℓ vertices. Han and Zhao (JCTA, 2015) asked the following question: For all k ≥ 3, 0 ≤ ℓ ≤ k − 1 and sufficiently large n divisible by 2k − ℓ, determine the exact value of t k−1 (n, Y k,ℓ ). In this paper, we show that t k−1 (n, Y k,ℓ ) = n 2k−ℓ for k ≥ 3 and 1 ≤ ℓ ≤ k − 2, combining with two previously known results of Rödl, Ruciński and Szemerédi (JCTA, 2009) and Gao, Han and Zhao (arXiv, 2016), the question of Han and Zhao is solved completely.