fix(core): initial

This commit is contained in:
2018-10-31 12:43:13 +01:00
commit 09a41f46d9
12 changed files with 1381 additions and 0 deletions

21
test/test.ts Normal file
View File

@ -0,0 +1,21 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as sentry from '../ts/index';
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',
dsn: process.env.DSN
});
});
tap.test('should send an Error', async () => {
testSentry.captureException(new Error('This is a test error!'));
});
tap.start();