From 27109e52204be5146b48c5828b979be833be541d Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Mon, 11 Nov 2024 13:15:40 +0200 Subject: [PATCH] fix(api): Always build SWC metadata before tet --- apps/api/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/package.json b/apps/api/package.json index f933fcdc655b..693c459bc2db 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -20,6 +20,7 @@ "lint": "eslint src", "lint:fix": "pnpm lint -- --fix", "lint:openapi": "spectral lint http://127.0.0.1:${PORT:-3000}/openapi.yaml", + "pretest": "pnpm build:metadata", "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test E2E_RUNNER=true mocha --require ts-node/register --exit 'src/**/*.spec.ts'", "test:e2e": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test E2E_RUNNER=true mocha --require ts-node/register --exit --file e2e/setup.ts src/**/*.e2e.ts ", "test:e2e:ee": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test E2E_RUNNER=true CI_EE_TEST=true CLERK_ENABLED=true mocha --grep @skip-in-ee --invert --require ts-node/register --exit --file e2e/setup.ts 'src/**/*.e2e{,-ee}.ts'",