We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1705e commit 855c088Copy full SHA for 855c088
src/feature-flags.test.ts
@@ -257,8 +257,11 @@ for (const feature of Object.keys(featureConfig)) {
257
const expectedFeatureEnablement = initializeFeatures(true);
258
mockFeatureFlagApiEndpoint(200, expectedFeatureEnablement);
259
260
+ // The type system should prevent this happening, but test that if we
261
+ // bypass it we get the expected error.
262
await t.throwsAsync(
- async () => features.getValue(feature as FeatureWithoutCLI),
263
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
264
+ async () => features.getValue(feature as any),
265
{
266
message: `Internal error: A ${
267
featureConfig[feature].minimumVersion !== undefined
0 commit comments