Skip to content

Commit d34d930

Browse files
committed
only run pipeline tests when pointing to the enterprise db
1 parent 3456581 commit d34d930

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/firestore/test/integration/api/pipeline.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ setLogLevel('debug');
154154

155155
const timestampDeltaMS = 1000;
156156

157-
apiDescribe.skip('Pipelines', persistence => {
157+
(process.env.FIRESTORE_TARGET_DB_ID === 'enterprise'
158+
? apiDescribe.only
159+
: apiDescribe.skip)('Pipelines', persistence => {
158160
addEqualityMatcher();
159161

160162
let firestore: Firestore;

packages/firestore/test/integration/api/query_to_pipeline.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ import {
4848
withTestCollection,
4949
itIf
5050
} from '../util/helpers';
51-
import {
52-
execute,
53-
PipelineSnapshot
54-
} from '../util/pipeline_export';
51+
import { execute, PipelineSnapshot } from '../util/pipeline_export';
5552

5653
use(chaiAsPromised);
5754

@@ -61,7 +58,9 @@ const testUnsupportedFeatures: boolean | 'only' = false;
6158

6259
// This is the Query integration tests from the lite API (no cache support)
6360
// with some additional test cases added for more complete coverage.
64-
apiDescribe.skip('Query to Pipeline', persistence => {
61+
(process.env.FIRESTORE_TARGET_DB_ID === 'enterprise'
62+
? apiDescribe.only
63+
: apiDescribe.skip)('Query to Pipeline', persistence => {
6564
addEqualityMatcher();
6665

6766
function verifyResults(

0 commit comments

Comments
 (0)