@@ -18,3 +18,4 @@ export const nativeCommand = cliPath;
|
||||
export const jarOptions = ['-jar', jarPath];
|
||||
export const waitForExpectDefaultTimeout = 10000;
|
||||
export const waitForExpectDefaultInterval = 100;
|
||||
export const testTimeout = 20000;
|
||||
|
||||
@@ -8,7 +8,8 @@ import {
|
||||
nativeCommand,
|
||||
jarOptions,
|
||||
waitForExpectDefaultTimeout,
|
||||
waitForExpectDefaultInterval
|
||||
waitForExpectDefaultInterval,
|
||||
testTimeout
|
||||
} from '../src/utils';
|
||||
|
||||
// all buildin commands
|
||||
@@ -34,11 +35,11 @@ describe('builtin commands', () => {
|
||||
beforeEach(async () => {
|
||||
waitForExpect.defaults.timeout = waitForExpectDefaultTimeout;
|
||||
waitForExpect.defaults.interval = waitForExpectDefaultInterval;
|
||||
}, 300000);
|
||||
}, testTimeout);
|
||||
|
||||
afterEach(async () => {
|
||||
cli?.dispose();
|
||||
}, 100000);
|
||||
}, testTimeout);
|
||||
|
||||
/**
|
||||
* native commands
|
||||
@@ -48,13 +49,17 @@ describe('builtin commands', () => {
|
||||
command = nativeCommand;
|
||||
});
|
||||
|
||||
it(versionReturnsInfoDesc, async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...versionCommand]
|
||||
});
|
||||
await versionReturnsInfo(cli);
|
||||
});
|
||||
it(
|
||||
versionReturnsInfoDesc,
|
||||
async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...versionCommand]
|
||||
});
|
||||
await versionReturnsInfo(cli);
|
||||
},
|
||||
testTimeout
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -66,12 +71,16 @@ describe('builtin commands', () => {
|
||||
options = jarOptions;
|
||||
});
|
||||
|
||||
it(versionReturnsInfoDesc, async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...versionCommand]
|
||||
});
|
||||
await versionReturnsInfo(cli);
|
||||
});
|
||||
it(
|
||||
versionReturnsInfoDesc,
|
||||
async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...versionCommand]
|
||||
});
|
||||
await versionReturnsInfo(cli);
|
||||
},
|
||||
testTimeout
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,7 +8,8 @@ import {
|
||||
nativeCommand,
|
||||
jarOptions,
|
||||
waitForExpectDefaultTimeout,
|
||||
waitForExpectDefaultInterval
|
||||
waitForExpectDefaultInterval,
|
||||
testTimeout
|
||||
} from '../src/utils';
|
||||
|
||||
// all flow commands
|
||||
@@ -56,11 +57,11 @@ describe('flow commands', () => {
|
||||
beforeEach(async () => {
|
||||
waitForExpect.defaults.timeout = waitForExpectDefaultTimeout;
|
||||
waitForExpect.defaults.interval = waitForExpectDefaultInterval;
|
||||
}, 300000);
|
||||
}, testTimeout);
|
||||
|
||||
afterEach(async () => {
|
||||
cli?.dispose();
|
||||
}, 100000);
|
||||
}, testTimeout);
|
||||
|
||||
/**
|
||||
* native commands
|
||||
@@ -70,13 +71,17 @@ describe('flow commands', () => {
|
||||
command = nativeCommand;
|
||||
});
|
||||
|
||||
it(flowConditionalField2SkipsFields1Desc, async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...flowConditionalCommand]
|
||||
});
|
||||
await flowConditionalField2SkipsFields1(cli);
|
||||
});
|
||||
it(
|
||||
flowConditionalField2SkipsFields1Desc,
|
||||
async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...flowConditionalCommand]
|
||||
});
|
||||
await flowConditionalField2SkipsFields1(cli);
|
||||
},
|
||||
testTimeout
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -88,12 +93,16 @@ describe('flow commands', () => {
|
||||
options = jarOptions;
|
||||
});
|
||||
|
||||
it(flowConditionalField2SkipsFields1Desc, async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...flowConditionalCommand]
|
||||
});
|
||||
await flowConditionalField2SkipsFields1(cli);
|
||||
});
|
||||
it(
|
||||
flowConditionalField2SkipsFields1Desc,
|
||||
async () => {
|
||||
cli = new Cli({
|
||||
command: command,
|
||||
options: [...options, ...flowConditionalCommand]
|
||||
});
|
||||
await flowConditionalField2SkipsFields1(cli);
|
||||
},
|
||||
testTimeout
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user