サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
WWDC24
lusbuab.medium.com
I was looking for a convenient way to use the dotenv package in our Jest tests and it turns out there’s an easy way! The first and probably most obvious way is to just load dotenv in the jest setup file. However, most of our projects do not have a jest setup file and I wasn’t keen on adding a setup file just for loading dotenv. Here is how you would do it in the jest setup file: require('dotenv').
このページを最初にブックマークしてみませんか?
『lusbuab.medium.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く