Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RatulHasan committed Feb 9, 2023
1 parent 01058cd commit a8ecb30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Add these lines in `playwright.config.js` file within `config` section.
globalSetup: require.resolve( './swapEnvironment' ),
globalTeardown: require.resolve( './swapBackEnvironment' ),
```
### If you don't want to swap your environment and jus want to refresh your DB only-
This `swapEnvironment.js` file offers you some methods like-

- `dropDatabaseTables()` - This will reset your test database.
Expand Down

0 comments on commit a8ecb30

Please sign in to comment.