bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

254
active users

#jest

0 posts0 participants0 posts today

🌗 1993年的蒸汽火車搞垮了我的測試
➤ 一場由命名衝突引發的奇異測試崩潰事件
blog.cloudflare.com/yarn-test-
一位開發者在嘗試執行 React 專案的單元測試時,遭遇了一個奇怪的錯誤:測試會在精準的 27 秒後崩潰。經過長時間的排查,包括分析系統追蹤記錄,最終發現問題的根源並非程式碼錯誤,而是因為系統中安裝了一個名為 `sl` 的 1993 年的惡搞程式,與 Jest 嘗試呼叫的另一個 `sl` 命令(一個版本控制工具)產生了命名衝突。
+ 真是太有趣了!誰能想到一個 1993 年的程式會搞垮現代的 JavaScript 測試?這也提醒我們,開發環境的清潔度很重要。
+ 這個故事太精彩了,讓人印象深刻!看著他一步步排除錯誤,最後發現問題竟然出在一個惡搞程式上,真是讓人啼笑皆非。
#開發者疑難排查 #JavaScript #React #Jest #Yarn

The Cloudflare Blog · A steam locomotive from 1993 broke my yarn testYarn tests fail consistently at the 27-second mark. The usual suspects are swiftly eliminated to no avail. A deep dive is taken to comb through traces, only to be derailed into an unexpected crash investigation.