sentry/test/test.ts

22 lines
485 B
TypeScript
Raw Permalink Normal View History

2018-10-31 11:43:13 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
2022-08-02 15:05:30 +00:00
import * as sentry from '../ts/index.js';
2018-10-31 11:43:13 +00:00
import { Qenv } from '@pushrocks/qenv';
const testQenv = new Qenv('./', '.nogit/');
let testSentry: sentry.Sentry;
tap.test('first test', async () => {
testSentry = new sentry.Sentry({
appName: '@mojoio/sentry',
2021-08-14 15:47:55 +00:00
dsn: process.env.DSN,
2018-10-31 11:43:13 +00:00
});
});
tap.test('should send an Error', async () => {
testSentry.captureException(new Error('This is a test error!'));
});
tap.start();