2022-01-01から1年間の記事一覧

Puppeteerを使ってE2Eテストを始める

E2E テストとは End to End テストの略語で、システム全体を通して行うテストのことです。 例えば、Web アプリで E2E テストを行う場合、実際にサーバー、ブラウザを立ち上げた状態でブラウザの操作をしながらテストをします。 E2E テストのメリット 実際に…

FirestoreでReference型のデータを扱う

Firestore には参照型が使えます。 firebase.DocumentReference や firebase.CollectionReferenceを入れるといい感じになります。 const ref = await this.$firestore .collection('users') .doc("testUser") await this.$firestore .collection('notes') .a…