From 1434b28e3ef0aec049dcea8cc86c437f496f1e5d Mon Sep 17 00:00:00 2001 From: rishtigupta Date: Fri, 22 Nov 2024 14:32:02 -0800 Subject: [PATCH] fix: ignore http tests when running integ suite --- packages/client-sdk-nodejs/package.json | 4 ++-- packages/client-sdk-web/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client-sdk-nodejs/package.json b/packages/client-sdk-nodejs/package.json index 9432abf02..e5fbbf62e 100644 --- a/packages/client-sdk-nodejs/package.json +++ b/packages/client-sdk-nodejs/package.json @@ -14,7 +14,7 @@ }, "scripts": { "prebuild": "eslint . --ext .ts", - "test": "jest --testPathIgnorePatterns auth-client.test.ts --maxWorkers 1", + "test": "jest --testPathIgnorePatterns=\"auth-client\\.test\\.ts|http-apis\\.test\\.ts\" --maxWorkers 1", "integration-test-auth": "jest auth/ --maxWorkers 1 -- useConsistentReads", "integration-test-http": "jest http/ --maxWorkers 1 -- useConsistentReads", "integration-test-cache": "jest cache/ --maxWorkers 1 -- useConsistentReads", @@ -27,7 +27,7 @@ "integration-test": "jest integration --maxWorkers 1", "unit-test": "jest unit", "build-deps": "cd ../core && npm run build && cd - && cd ../common-integration-tests && npm run build && cd -", - "build-and-run-tests": "npm run build-deps && jest --testPathIgnorePatterns auth-client.test.ts --maxWorkers 1", + "build-and-run-tests": "npm run build-deps && jest --testPathIgnorePatterns=\"auth-client\\.test\\.ts|http-apis\\.test\\.ts\" --maxWorkers 1", "lint": "eslint . --ext .ts", "format": "eslint . --ext .ts --fix", "watch": "tsc -w", diff --git a/packages/client-sdk-web/package.json b/packages/client-sdk-web/package.json index 8ffd247c2..c2ae5375c 100644 --- a/packages/client-sdk-web/package.json +++ b/packages/client-sdk-web/package.json @@ -14,7 +14,7 @@ }, "scripts": { "prebuild": "eslint . --ext .ts", - "test": "jest --testPathIgnorePatterns auth-client.test.ts --maxWorkers 1", + "test": "jest --testPathIgnorePatterns=\"auth-client\\.test\\.ts|http-apis\\.test\\.ts\" --maxWorkers 1", "unit-test": "jest unit", "integration-test-auth": "jest --env=jsdom auth/ --maxWorkers 1 -- useConsistentReads", "integration-test-http": "jest --env=jsdom http/ --maxWorkers 1 -- useConsistentReads", @@ -31,7 +31,7 @@ "integration-test": "npm run integration-test-happy-dom && npm run integration-test-jsdom", "integration-test-consistent-reads": "npm run integration-test-happy-dom-consistent-reads && npm run integration-test-jsdom-consistent-reads", "build-deps": "cd ../core && npm run build && cd - && cd ../common-integration-tests && npm run build && cd -", - "build-and-run-tests": "npm run build-deps && jest --testPathIgnorePatterns auth-client.test.ts --maxWorkers 1", + "build-and-run-tests": "npm run build-deps && jest --testPathIgnorePatterns=\"auth-client\\.test\\.ts|http-apis\\.test\\.ts\" --maxWorkers 1", "lint": "eslint . --ext .ts", "format": "eslint . --ext .ts --fix", "watch": "tsc -w",