Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

feature-flags.js 457 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  1. require('../../lib/feature-flags')
  2. const ffs = require('../../feature-flags')
  3. describe('feature flags', () => {
  4. Object.keys(ffs).forEach(featureName => {
  5. expect(featureName.startsWith('FEATURE_')).toBe(true)
  6. })
  7. test('feature flag true test is true', async () => {
  8. expect(process.env.FEATURE_TEST_TRUE).toBeTruthy()
  9. })
  10. test('feature flag false test is false', async () => {
  11. expect(process.env.FEATURE_TEST_FALSE).toBeFalsy()
  12. })
  13. })
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...