From a3e08c6636423a79df0b9de4b11a63598eb2c173 Mon Sep 17 00:00:00 2001 From: bcho892 Date: Tue, 26 Mar 2024 20:30:00 +1300 Subject: [PATCH] add command for testing firestore on server --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ae7bc4808..789a860fa 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,10 @@ "dev-client": "yarn workspace client start", "dev-server": "yarn workspace server start", "storybook": "yarn workspace client storybook", - "test-server": "firebase emulators:exec --only firestore \"node --experimental-vm-modules --dns-result-order=ipv4first ./node_modules/jest/bin/jest.js --setupFiles dotenv/config --passWithNoTests --detectOpenHandles --forceExit --testPathPattern=server/src\"", + "test-server": "yarn firestore-test \"node --experimental-vm-modules --dns-result-order=ipv4first ./node_modules/jest/bin/jest.js --setupFiles dotenv/config --passWithNoTests --detectOpenHandles --forceExit --testPathPattern=server/src\"", "test-client": "jest --setupFiles dotenv/config --passWithNoTests --detectOpenHandles --forceExit --testPathPattern=server/client", - "test": "yarn test-client && yarn test-server" + "test": "yarn test-client && yarn test-server", + "firestore-test": "firebase emulators:exec --only firestore" }, "eslintConfig": { "extends": [