@@ -16,3 +16,5 @@ export const jarDesc = 'jar';
|
||||
export const jarCommand = 'java';
|
||||
export const nativeCommand = cliPath;
|
||||
export const jarOptions = ['-jar', jarPath];
|
||||
export const waitForExpectDefaultTimeout = 10000;
|
||||
export const waitForExpectDefaultInterval = 100;
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
import 'jest-extended';
|
||||
import waitForExpect from 'wait-for-expect';
|
||||
import { Cli } from 'spring-shell-e2e';
|
||||
import { nativeDesc, jarDesc, jarCommand, nativeCommand, jarOptions } from '../src/utils';
|
||||
import {
|
||||
nativeDesc,
|
||||
jarDesc,
|
||||
jarCommand,
|
||||
nativeCommand,
|
||||
jarOptions,
|
||||
waitForExpectDefaultTimeout,
|
||||
waitForExpectDefaultInterval
|
||||
} from '../src/utils';
|
||||
|
||||
// all buildin commands
|
||||
describe('builtin commands', () => {
|
||||
@@ -24,8 +32,8 @@ describe('builtin commands', () => {
|
||||
};
|
||||
|
||||
beforeEach(async () => {
|
||||
waitForExpect.defaults.timeout = 3000;
|
||||
waitForExpect.defaults.interval = 100;
|
||||
waitForExpect.defaults.timeout = waitForExpectDefaultTimeout;
|
||||
waitForExpect.defaults.interval = waitForExpectDefaultInterval;
|
||||
}, 300000);
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
import 'jest-extended';
|
||||
import waitForExpect from 'wait-for-expect';
|
||||
import { Cli } from 'spring-shell-e2e';
|
||||
import { nativeDesc, jarDesc, jarCommand, nativeCommand, jarOptions } from '../src/utils';
|
||||
import {
|
||||
nativeDesc,
|
||||
jarDesc,
|
||||
jarCommand,
|
||||
nativeCommand,
|
||||
jarOptions,
|
||||
waitForExpectDefaultTimeout,
|
||||
waitForExpectDefaultInterval
|
||||
} from '../src/utils';
|
||||
|
||||
// all flow commands
|
||||
describe('flow commands', () => {
|
||||
@@ -46,8 +54,8 @@ describe('flow commands', () => {
|
||||
};
|
||||
|
||||
beforeEach(async () => {
|
||||
waitForExpect.defaults.timeout = 3000;
|
||||
waitForExpect.defaults.interval = 100;
|
||||
waitForExpect.defaults.timeout = waitForExpectDefaultTimeout;
|
||||
waitForExpect.defaults.interval = waitForExpectDefaultInterval;
|
||||
}, 300000);
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user