diff --git a/packages/web/test/SplunkSpanAttributesProcessor.test.ts b/packages/web/src/tests/SplunkSpanAttributesProcessor.test.ts similarity index 83% rename from packages/web/test/SplunkSpanAttributesProcessor.test.ts rename to packages/web/src/tests/SplunkSpanAttributesProcessor.test.ts index 09e75df1..c3820181 100644 --- a/packages/web/test/SplunkSpanAttributesProcessor.test.ts +++ b/packages/web/src/tests/SplunkSpanAttributesProcessor.test.ts @@ -16,8 +16,8 @@ * */ -import { expect } from 'chai' -import { SplunkSpanAttributesProcessor } from '../src/SplunkSpanAttributesProcessor' +import { expect, describe, it } from 'vitest' +import { SplunkSpanAttributesProcessor } from '../SplunkSpanAttributesProcessor' describe('SplunkSpanAttributesProcessor', () => { describe('setting global attribute', () => { @@ -26,7 +26,7 @@ describe('SplunkSpanAttributesProcessor', () => { key1: 'value1', }) - expect(processor.getGlobalAttributes()).to.deep.eq({ + expect(processor.getGlobalAttributes()).toStrictEqual({ key1: 'value1', }) }) @@ -42,7 +42,7 @@ describe('SplunkSpanAttributesProcessor', () => { key3: 'value3', }) - expect(processor.getGlobalAttributes()).to.deep.eq({ + expect(processor.getGlobalAttributes()).toStrictEqual({ key1: 'value1', key2: 'value2-updaged', key3: 'value3', diff --git a/packages/web/test/index.ts b/packages/web/test/index.ts index 09d754a4..7bc2ddb2 100644 --- a/packages/web/test/index.ts +++ b/packages/web/test/index.ts @@ -25,7 +25,7 @@ import '../src/tests/websockets.test' import '../src/tests/SessionBasedSampler.test' import '../src/tests/SplunkExporter.test' import './SplunkContextManager.test' -import './SplunkSpanAttributesProcessor.test' +import '../src/tests/SplunkSpanAttributesProcessor.test' import './SplunkOtelWeb.test' import '../src/tests/synthetics.test' import './socketio.test'