Skip to content

Commit

Permalink
add test-version-utils deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalideshpandemsft committed Nov 4, 2024
1 parent 081460f commit 448afc2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"@fluid-experimental/data-objects": "workspace:~",
"@fluid-internal/client-utils": "workspace:~",
"@fluid-internal/mocha-test-setup": "workspace:~",
"@fluid-private/test-version-utils": "workspace:~",
"@fluidframework/aqueduct": "workspace:~",
"@fluidframework/azure-client": "workspace:~",
"@fluidframework/azure-client-legacy": "npm:@fluidframework/azure-client@^1.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,4 @@
const packageDir = `${__dirname}/../..`;
const getFluidTestMochaConfig = require("@fluid-private/test-version-utils/mocharc-common");
const config = getFluidTestMochaConfig(packageDir);

// const getFluidTestMochaConfig = require("@fluid-internal/mocha-test-setup/mocharc-common");

// const args = process.argv.slice(2);

// function getFluidTestVariant() {
// const driverIndex = args.indexOf("--driver");
// const endpointIndex = args.indexOf("--r11sEndpointName");

// const testDriver = driverIndex !== -1 ? args[driverIndex + 1] : "";
// const endpointName = endpointIndex !== -1 ? args[endpointIndex + 1] : "";

// return `${testDriver}-${endpointName}`;
// }

// function getFluidTestMocha(packageDir, additionalRequiredModules = []) {
// const testVariant = getFluidTestVariant();
// process.env.FLUID_TEST_VARIANT = testVariant;

// return getFluidTestMochaConfig(packageDir, additionalRequiredModules, testVariant);
// }

// module.exports = getFluidTestMocha(packageDir);

module.exports = config;
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"dependencies": {
"@fluid-internal/mocha-test-setup": "workspace:~",
"@fluid-private/test-version-utils": "workspace:~",
"@fluidframework/aqueduct": "workspace:~",
"@fluidframework/container-definitions": "workspace:~",
"@fluidframework/container-loader": "workspace:~",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,5 @@
const packageDir = __dirname;
const getFluidTestMochaConfig = require("@fluid-private/test-version-utils/mocharc-common");
const config = getFluidTestMochaConfig(packageDir);

// const getFluidTestMochaConfig = require("@fluid-internal/mocha-test-setup/mocharc-common");

// const args = process.argv.slice(2);

// function getFluidTestVariant() {
// const driverIndex = args.indexOf("--driver");
// const endpointIndex = args.indexOf("--odspEndpointName");

// const testDriver = driverIndex !== -1 ? args[driverIndex + 1] : "";
// const endpointName = endpointIndex !== -1 ? args[endpointIndex + 1] : "";

// return `${testDriver}-${endpointName}`;
// }

// function getFluidTestMocha(packageDir, additionalRequiredModules = []) {
// const testVariant = getFluidTestVariant();
// process.env.FLUID_TEST_VARIANT = testVariant;

// return getFluidTestMochaConfig(packageDir, additionalRequiredModules, testVariant);
// }

// module.exports = getFluidTestMocha(packageDir);

module.exports = config;

3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 448afc2

Please sign in to comment.