Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Conversation

Xezed
Copy link
Contributor

@Xezed Xezed commented Mar 14, 2021

It will close this one: #611

@coveralls
Copy link

coveralls commented Mar 14, 2021

Pull Request Test Coverage Report for Build 657414691

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.652%

Totals Coverage Status
Change from base Build 636179827: 0.0%
Covered Lines: 101
Relevant Lines: 103

💛 - Coveralls

},
)
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md Outdated
)
```

## Create your own `globalSetup` and `globalTeardown`
Copy link
Member

@mmarkelov mmarkelov Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## Usage with custom [`globalSetup`](https://facebook.github.io/jest/docs/en/configuration.html#globalsetup-string) and [`globalTeardown`](https://facebook.github.io/jest/docs/en/configuration.html#globalteardown-string)

README.md Outdated
Comment on lines 370 to 371
It is possible to create your own [`globalSetup`](https://facebook.github.io/jest/docs/en/configuration.html#globalsetup-string) and [`globalTeardown`](https://facebook.github.io/jest/docs/en/configuration.html#globalteardown-string).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove it, because we have this info in header

README.md Outdated
### Getting authentication state once for all test cases [as per playwright reference](https://playwright.dev/docs/auth?_highlight=globals#reuse-authentication-state):
```js
// global-setup.js
import { globalSetup as superGlobalSetup } from 'jest-playwright-preset';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

superGlobalSetup -> playwrightGlobalSetup

README.md Outdated

```js
// global-teardown.js
import { globalTeardown as superGlobalTeardown } from 'jest-playwright-preset';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

superGlobalTeardown -> playwrightGlobalTeardown

@Xezed Xezed requested a review from mmarkelov March 16, 2021 11:39
@mmarkelov
Copy link
Member

@Xezed thanks a lot!

@mmarkelov mmarkelov merged commit 2e8f685 into playwright-community:master Mar 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants