From 412bc1ef71859154eed938427e5ccf44bf0e6324 Mon Sep 17 00:00:00 2001 From: Kei Kamikawa Date: Thu, 28 Jul 2022 15:09:05 +0900 Subject: [PATCH] added test-with-emulator task --- .github/workflows/ci.yml | 3 +-- package.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccd2c7fa..07686f73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,5 +15,4 @@ jobs: node-version: 18.x - run: yarn install --frozen-lockfile - run: yarn build - - run: yarn start-firebase-emulator - - run: yarn test + - run: yarn test-with-emulator diff --git a/package.json b/package.json index a4dd6004..1d3a378f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ ], "scripts": { "start-firebase-emulator": "firebase emulators:start --project example-project12345", + "test-with-emulator": "firebase emulators:exec --project example-project12345 'jest'", "test": "jest", "build": "tsc", "prerelease": "yarn build",