Skip to content

Commit

Permalink
fix custom matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
hizir-bc committed May 9, 2022
1 parent 0faac40 commit b6d93a5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 104 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ module.exports = {
"^.+\\.(ts|tsx)$": "ts-jest",
},
testTimeout: 130000,
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
transformIgnorePatterns: ["/node_modules/(?!@broadcom/test4z)"],
};
10 changes: 0 additions & 10 deletions jest.setup.js

This file was deleted.

89 changes: 0 additions & 89 deletions test/Test4zMatchers.ts

This file was deleted.

6 changes: 3 additions & 3 deletions test/doggos/doggos.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ describe("Doggos Batch Application - Regression Test Suite", function () {
beforeAll(async () => { HLQ = await Test4zService.getProfileProp("hlq"); });
test("Test the number of records in the adoption report", async function () {
const job = await Test4zService.submitJobUsingDataset(HLQ+BATCH_APPLICATION);
expect(job).toBeSuccessful();
expect(String(job)).toMatch(/CC 0000|CC 0004/);

report = await Test4zService.search(HLQ+ADOPTION_REPORT, HLQ+REPORT_COPYBOOK, REPORT_FILTER);
expect(report).toBeSuccessfulResult();
expect(report).not.toBeNull();
expect(report.data).not.toBeNull();
const data = report.data;
expect(data).toBeHaveTestData();
expect(data.Record.length).toBe(10);
records = TestHelper.getReportRecords(data);
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["es6"],
"allowJs": true,
"outDir": "build",
"rootDir": "src",
"rootDir": "/",
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
Expand Down

0 comments on commit b6d93a5

Please sign in to comment.