Skip to content

Commit

Permalink
Merge pull request #16 from dnotes/changeset-release/main
Browse files Browse the repository at this point in the history
chore: new release candidate
  • Loading branch information
dnotes authored Nov 11, 2024
2 parents ffa86bf + 32de6ce commit 59920d1
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 28 deletions.
21 changes: 0 additions & 21 deletions .changeset/lucky-beers-complain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-gorillas-attend.md

This file was deleted.

29 changes: 29 additions & 0 deletions packages/main/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# quickpickle

## 1.5.3

### Patch Changes

- ffa86bf: Added common variable should to BeforeAll and AfterAll hooks.
In your support files, you can get or set variables that should be
common (shared) across all the tests in the Feature file.

In general it is not good testing practice to use this for anything
other than setup and teardown; for example, you might start a server
and save the port in BeforeAll, then tear it down in AfterAll.

Here is a ridiculous example demonstrating the functionality:

```ts
import { BeforeAll, AfterAll, AfterStep } from "quickpickle";
BeforeAll(async (common) => {
common.totalSteps = 0;
});
AfterStep(async (world) => {
world.common.totalSteps++;
});
AfterAll(async (common) => {
expect(common.totalSteps).not.toBeFalsy();
});
```

- dee9d4b: Fixed errors in the hook implementations.

## 1.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quickpickle",
"version": "1.5.2",
"version": "1.5.3",
"description": "Plugin for Vitest to run tests written in Gherkin Syntax.",
"keywords": [
"BDD",
Expand Down
31 changes: 31 additions & 0 deletions packages/playwright/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @quickpickle/playwright

## 0.10.3

### Patch Changes

- ffa86bf: Added common variable should to BeforeAll and AfterAll hooks.
In your support files, you can get or set variables that should be
common (shared) across all the tests in the Feature file.

In general it is not good testing practice to use this for anything
other than setup and teardown; for example, you might start a server
and save the port in BeforeAll, then tear it down in AfterAll.

Here is a ridiculous example demonstrating the functionality:

```ts
import { BeforeAll, AfterAll, AfterStep } from "quickpickle";
BeforeAll(async (common) => {
common.totalSteps = 0;
});
AfterStep(async (world) => {
world.common.totalSteps++;
});
AfterAll(async (common) => {
expect(common.totalSteps).not.toBeFalsy();
});
```

- Updated dependencies [ffa86bf]
- Updated dependencies [dee9d4b]
- [email protected]

## 0.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quickpickle/playwright",
"version": "0.10.2",
"version": "0.10.3",
"description": "Support files for running tests with Playwright using QuickPickle (Gherkin in Vitest).",
"keywords": [
"BDD",
Expand Down

0 comments on commit 59920d1

Please sign in to comment.