diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index d4f52f7bdcc5..dbaf94519f9d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -18,7 +18,7 @@ "generate:client": "autorest --typescript ./swagger/README.md", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy -- --timeout 1200000 \"test/internal/functional/**/*.test.ts\"", + "integration-test:node": "dev-tool run test:vitest --no-test-proxy -- -c vitest.integration.config.ts", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js b/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js index b06130ad297c..d26e90dcb5f9 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js +++ b/sdk/monitor/monitor-opentelemetry-exporter/test-opentelemetry-versions.js @@ -1,5 +1,5 @@ -const packageJson = require("./package.json"); -const { exec } = require("child_process"); +import packageJson from "./package.json" assert { type: "json" }; +import { exec } from "child_process"; const versions = ["latest"]; diff --git a/sdk/monitor/monitor-opentelemetry-exporter/vitest.integration.config.ts b/sdk/monitor/monitor-opentelemetry-exporter/vitest.integration.config.ts new file mode 100644 index 000000000000..67bfebdc75a5 --- /dev/null +++ b/sdk/monitor/monitor-opentelemetry-exporter/vitest.integration.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 600000, + include: ["test/internal/functional/**/*.test.ts"], + }, + }), +);