Skip to content

Commit

Permalink
added jest stare
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Nov 25, 2024
1 parent 2646eda commit d707559
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module.exports = {
...projectConfig,
"reporters": [
"default",
"jest-stare",
["jest-junit", {
"outputDirectory": "__tests__/__results__",
"reportTestSuiteErrors": true
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

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

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"prepare": "husky install && npm run bundle:webHelp",
"package": "lerna run prepublishOnly && node scripts/bundleCliTgz.js"
},
"dependencies": {},
"devDependencies": {
"@lerna-lite/changed": "^3.3.0",
"@lerna-lite/cli": "^3.3.0",
Expand Down Expand Up @@ -69,7 +68,7 @@
"jest-html-reporter": "^3.6.0",
"jest-junit": "^12.0.0",
"jest-sonar-reporter": "^2.0.0",
"jest-stare": "^2.2.0",
"jest-stare": "^2.5.2",
"js-yaml": "^4.1.0",
"jsonfile": "^4.0.0",
"madge": "^4.0.1",
Expand All @@ -85,5 +84,13 @@
},
"jestSonar": {
"reportPath": "__tests__/__results__/jest-sonar"
},
"jest-stare": {
"additionalResultsProcessors": [
"jest-junit",
"jest-sonar-reporter"
],
"coverageLink": "../unit/coverage/lcov-report/index.html",
"resultDir": "__tests__/__results__/jest-stare"
}
}
5 changes: 3 additions & 2 deletions packages/zosjobs/__tests__/__system__/GetJobs.system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { join } from "path";
import { ITestEnvironment } from "@zowe/cli-test-utils";
import { TestEnvironment } from "../../../../__tests__/__src__/environment/TestEnvironment";
import { ITestPropertiesSchema } from "../../../../__tests__/__src__/properties/ITestPropertiesSchema";
import { delay } from "../../../../__tests__/__src__/TestUtils";

/**********************************************************************************/
let ACCOUNT: string;
Expand Down Expand Up @@ -722,8 +723,7 @@ describe("Get Status APIs", () => {

it("should be able to get a job that was submitted and get proper error when the job is deleted", async () => {
const job = await SubmitJobs.submitJcl(REAL_SESSION, JCL);
const jobStatus = await GetJobs.getStatusForJob(REAL_SESSION, job);

delay(3000);
await DeleteJobs.deleteJobForJob(REAL_SESSION, job);
await waitThreeSeconds(); // make sure jobs is deleted
let error;
Expand Down Expand Up @@ -978,6 +978,7 @@ describe("Get JCL APIs", () => {
describe("invalid request error handling", () => {
it("should detect and surface an error for getting JCL that doesnt exist", async () => {
const job = await SubmitJobs.submitJcl(REAL_SESSION, JCL);
delay(3000);
await DeleteJobs.deleteJobForJob(REAL_SESSION, job);
await waitThreeSeconds();
let error;
Expand Down

0 comments on commit d707559

Please sign in to comment.