fix(core): initial
This commit is contained in:
21
test/test.ts
Normal file
21
test/test.ts
Normal 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();
|
Reference in New Issue
Block a user