Skip to content

Commit

Permalink
move test files around
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Aug 30, 2024
1 parent e9a5a8f commit 65c6f26
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, test } from 'vitest';
import sentryDataCache from '~/integrations/sentry/data/sentryDataCache';
import { processEnvelope } from '~/integrations/sentry/index';
import { processEnvelope } from '../index';
import sentryDataCache from './sentryDataCache';

import fs from 'fs';
import fs from 'node:fs';

describe('SentryDataCache', () => {
// We need to refactor this to make it actually testable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, expect, test } from 'vitest';
import { processEnvelope } from '~/integrations/sentry/index';
import { processEnvelope } from './index';

import { Event } from '@sentry/types';
import fs from 'fs';
import sentryDataCache from '~/integrations/sentry/data/sentryDataCache';
import type { Event } from '@sentry/types';
import fs from 'node:fs';
import sentryDataCache from './data/sentryDataCache';

describe('Sentry Integration', () => {
test('Process Envelope Empty', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, test } from 'vitest';
import { Span } from '~/integrations/sentry/types';
import { groupSpans } from '~/integrations/sentry/utils/traces';
import { generate_uuidv4 } from '~/lib/uuid';
import { generate_uuidv4 } from '../../../lib/uuid';
import type { Span } from '../types';
import { groupSpans } from './traces';

function mockSpan({ duration, ...span }: Partial<Span> & { duration?: number } = {}): Span {
const defaultTimestamp = new Date().getTime();
Expand Down
2 changes: 1 addition & 1 deletion packages/overlay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"outDir": "dist",
"rootDir": "src"
},
"include": ["src", "test"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit 65c6f26

Please sign in to comment.