From d7493b34d477e782f99ecf41cabc5e42590e4366 Mon Sep 17 00:00:00 2001 From: Jozef Harag Date: Mon, 13 Jan 2025 14:45:14 +0100 Subject: [PATCH] chore: SplunkZipkinExporter --- .../tests}/SplunkSpanAttributesProcessor.test.ts | 8 ++++---- packages/web/test/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename packages/web/{test => src/tests}/SplunkSpanAttributesProcessor.test.ts (83%) 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'