Skip to content

Commit

Permalink
[Test] Fix monitor-opentelemetry-exporter live tests (#31675)
Browse files Browse the repository at this point in the history
Migrate the non-standard tests
  • Loading branch information
jeremymeng authored Nov 7, 2024
1 parent 130d6b8 commit 67e6fc0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/monitor/monitor-opentelemetry-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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"];

Expand Down
Original file line number Diff line number Diff line change
@@ -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"],
},
}),
);

0 comments on commit 67e6fc0

Please sign in to comment.