Skip to content

Commit 1197eb8

Browse files
committed
further attempts to make the tests robust
1 parent fef8524 commit 1197eb8

19 files changed

+274
-553
lines changed

__tests__/api/BundleContent/AutoBundler.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const DEFAULT_PARAMETERS: IHandlerParameters = {
1919
arguments: {
2020
$0: "bright",
2121
_: ["zowe-cli-cics-deploy-plugin", "generate", "bundle"],
22+
silent: true
2223
},
2324
profiles: {
2425
get: (type: string) => {
@@ -28,18 +29,18 @@ const DEFAULT_PARAMETERS: IHandlerParameters = {
2829
response: {
2930
data: {
3031
setMessage: jest.fn((setMsgArgs) => {
31-
expect("" + setMsgArgs).toMatchSnapshot();
32+
expect("" + setMsgArgs).toMatch("NO MESSAGE IS EXPECTED");
3233
}),
3334
setObj: jest.fn((setObjArgs) => {
34-
expect(setObjArgs).toMatchSnapshot();
35+
expect(setObjArgs).toMatch("NO OBJECT IS EXPECTED");
3536
})
3637
},
3738
console: {
3839
log: jest.fn((logs) => {
39-
expect("" + logs).toMatchSnapshot();
40+
expect("" + logs).toMatch("NO LOGS ARE EXPECTED");
4041
}),
4142
error: jest.fn((errors) => {
42-
expect("" + errors).toMatchSnapshot();
43+
expect("" + errors).toMatch("NO ERRORS ARE EXPECTED");
4344
}),
4445
errorHeader: jest.fn(() => undefined)
4546
},

0 commit comments

Comments
 (0)