Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Mar 24, 2024
1 parent a2539b4 commit 6a4e4ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/tests/pnpmUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { GeneralInfo } from '../../main/types/generalInfo';
/**
* Test functionality of @class PnpmUtils.
*/
describe('Pnpm Utils Tests', async () => {
describe.only('Pnpm Utils Tests', async () => {
let logManager: LogManager = new LogManager().activate();
let workspaceFolders: vscode.WorkspaceFolder[];

Expand All @@ -38,7 +38,7 @@ describe('Pnpm Utils Tests', async () => {

describe('Pnpm commands', async () => {
it('Verify pnpm installed', async () => {
if (checkNodeVersionSupported()) {
if (!checkNodeVersionSupported()) {
test.skip('Skip pnpm tests for Node.js v14 or less');
}
assert.isTrue(PnpmUtils.verifyPnpmInstalled());
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('Pnpm Utils Tests', async () => {
let sortedDescriptorTrees: DependenciesTreeNode[] = [];

before(async () => {
if (checkNodeVersionSupported()) {
if (!checkNodeVersionSupported()) {
test.skip('Skip pnpm tests for Node.js v14 or less');
}
// Install projects
Expand All @@ -84,7 +84,7 @@ describe('Pnpm Utils Tests', async () => {
});

it('Check descriptors node general information', async () => {
if (checkNodeVersionSupported()) {
if (!checkNodeVersionSupported()) {
test.skip('Skip pnpm tests for Node.js v14 or less');
}
// Check number of descriptor trees
Expand All @@ -95,7 +95,7 @@ describe('Pnpm Utils Tests', async () => {
});

it('Check descriptor node with empty dependency tree', async () => {
if (checkNodeVersionSupported()) {
if (!checkNodeVersionSupported()) {
test.skip('Skip pnpm tests for Node.js v14 or less');
}
let tree: DependenciesTreeNode = sortedDescriptorTrees[0];
Expand All @@ -106,7 +106,7 @@ describe('Pnpm Utils Tests', async () => {
});

it('Check descriptor node with dependency tree', async () => {
if (checkNodeVersionSupported()) {
if (!checkNodeVersionSupported()) {
test.skip('Skip pnpm tests for Node.js v14 or less');
}
let tree: DependenciesTreeNode = sortedDescriptorTrees[1];
Expand Down

0 comments on commit 6a4e4ca

Please sign in to comment.