Skip to content

Commit 62b2bad

Browse files
authored
Merge pull request #21 from estruyf/dev
Included declaration files in the package
2 parents f2080bc + c136b9f commit 62b2bad

File tree

6 files changed

+30
-11
lines changed

6 files changed

+30
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.9.1]
6+
7+
- [#20](https://github.com/estruyf/playwright-github-actions-reporter/issues/20): Add declaration file to the package
8+
59
## [1.9.0]
610

711
- [#17](https://github.com/estruyf/playwright-github-actions-reporter/issues/17): Added the ability to define which types of test results should be shown in the summary

package-lock.json

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@estruyf/github-actions-reporter",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "GitHub Actions reporter for Playwright",
55
"main": "dist/index.js",
66
"scripts": {

tests/fail.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@ test.describe("Failing test", () => {
2222

2323
expect((await logo.allInnerTexts()).join()).toBe("PYOD");
2424
});
25+
26+
test("Make screenshot fail", async () => {
27+
await page.goto(
28+
`https://www.eliostruyf.com?playwright=margin-left:10px;%20text-transform:%20lowercase;`
29+
);
30+
31+
await expect(page).toHaveScreenshot("layout-mask.png", {
32+
mask: [page.locator(`.sidebar__content`)],
33+
});
34+
});
2535
});
Loading

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"node_modules"
88
],
99
"compilerOptions": {
10-
"outDir": "dist"
10+
"outDir": "dist",
11+
"declaration": true
1112
}
1213
}

0 commit comments

Comments
 (0)