@sentry/wizard
Version:
Sentry wizard helping you to configure your project
30 lines (28 loc) • 1.15 kB
text/typescript
import { readEnvironment } from '../Helper/Env';
describe('read-env', () => {
test('transform', () => {
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_DEBUG = true;
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_UNINSTALL = false;
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_SKIP_CONNECT = true;
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_QUIET = true;
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_INTEGRATION = ['reactNative', 'electron'];
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_PLATFORM = ['ios', 'android'];
// @ts-ignore: true not assignable to string/undefined
process.env.SENTRY_WIZARD_URL = 'https://sentry.io';
expect(readEnvironment()).toEqual({
debug: true,
integration: 'reactNative,electron',
platform: 'ios,android',
quiet: true,
skipConnect: true,
uninstall: false,
url: 'https://sentry.io',
});
});
});