Skip to content

Commit 593cd20

Browse files
Making sure we don't export 'experimental' (#1023)
1 parent 3d26806 commit 593cd20

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

packages/firestore/test/unit/specs/describe_spec.ts

+19-16
Original file line numberDiff line numberDiff line change
@@ -139,26 +139,29 @@ export function specTest(
139139
return spec.runAsTest(fullName, usePersistence);
140140
});
141141
}
142-
return;
143-
}
144-
145-
const spec = builder();
142+
} else {
143+
assert(
144+
tags.indexOf(EXCLUSIVE_TAG) === -1,
145+
"The 'exclusive' tag is only supported for development and should not be exported to other platforms."
146+
);
147+
const spec = builder();
146148

147-
const specJSON = spec.toJSON();
149+
const specJSON = spec.toJSON();
148150

149-
const json = {
150-
describeName,
151-
itName: name,
152-
tags,
153-
comment,
154-
config: specJSON.config,
155-
steps: specJSON.steps
156-
};
151+
const json = {
152+
describeName,
153+
itName: name,
154+
tags,
155+
comment,
156+
config: specJSON.config,
157+
steps: specJSON.steps
158+
};
157159

158-
if (name in specsInThisTest) {
159-
throw new Error('duplicate spec test: "' + name + '"');
160+
if (name in specsInThisTest) {
161+
throw new Error('duplicate spec test: "' + name + '"');
162+
}
163+
specsInThisTest[name] = json;
160164
}
161-
specsInThisTest[name] = json;
162165
}
163166

164167
/**

0 commit comments

Comments
 (0)