racejar 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.8](https://github.com/portabletext/editor/compare/racejar-v1.2.7...racejar-v1.2.8) (2025-06-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** update dependency @jest/globals to ^30.0.2 ([59c86d7](https://github.com/portabletext/editor/commit/59c86d77adff8b8090c84ab70073e106348f4fc3))
9
+
3
10
  ## [1.2.7](https://github.com/portabletext/editor/compare/racejar-v1.2.6...racejar-v1.2.7) (2025-06-19)
4
11
 
5
12
 
@@ -27,7 +27,7 @@ Feature({
27
27
  When(
28
28
  'greeting the person with:',
29
29
  (context: Context, greeting: string[][]) => {
30
- context.greeting = greet(context.person, greeting[0][0])
30
+ context.greeting = greet(context.person, greeting.at(0)?.at(0) ?? '')
31
31
  },
32
32
  ),
33
33
  Then('the greeting is {string}', (context: Context, greeting: string) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "racejar",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "A testing framework agnostic Gherkin driver",
5
5
  "keywords": [
6
6
  "cucumber",
@@ -43,16 +43,16 @@
43
43
  "@cucumber/cucumber-expressions": "^18.0.1",
44
44
  "@cucumber/gherkin": "^32.1.2",
45
45
  "@cucumber/messages": "^27.2.0",
46
- "@jest/globals": "^30.0.1",
46
+ "@jest/globals": "^30.0.2",
47
47
  "@playwright/test": "^1.53.1",
48
- "@sanity/pkg-utils": "^7.6.1",
48
+ "@sanity/pkg-utils": "^7.8.5",
49
49
  "typescript": "5.8.3",
50
- "vitest": "^3.2.3"
50
+ "vitest": "^3.2.4"
51
51
  },
52
52
  "peerDependencies": {
53
- "@jest/globals": "^30.0.1",
53
+ "@jest/globals": "^30.0.2",
54
54
  "@playwright/test": "^1.53.1",
55
- "vitest": "^3.2.3"
55
+ "vitest": "^3.2.4"
56
56
  },
57
57
  "scripts": {
58
58
  "check:lint": "biome lint .",
@@ -14,10 +14,10 @@ import type {StepDefinition} from './step-definitions'
14
14
  export type CompiledFeature<TStepContext extends Record<string, any> = object> =
15
15
  {
16
16
  name: string
17
- tag?: 'only' | 'skip'
17
+ tag: 'only' | 'skip' | undefined
18
18
  scenarios: Array<{
19
19
  name: string
20
- tag?: 'only' | 'skip'
20
+ tag: 'only' | 'skip' | undefined
21
21
  steps: Array<(stepContext?: TStepContext) => Promise<void> | void>
22
22
  }>
23
23
  beforeHooks: Array<(stepContext?: TStepContext) => Promise<void> | void>
@@ -20,9 +20,9 @@ export function Feature<TContext extends Record<string, any> = object>({
20
20
  }) {
21
21
  const feature = compileFeature({
22
22
  featureText,
23
- hooks,
23
+ hooks: hooks ?? [],
24
24
  stepDefinitions,
25
- parameterTypes,
25
+ parameterTypes: parameterTypes ?? [],
26
26
  })
27
27
 
28
28
  const describeFn =
@@ -40,9 +40,9 @@ export function Feature<
40
40
  }) {
41
41
  const feature = compileFeature({
42
42
  featureText,
43
- hooks,
43
+ hooks: hooks ?? [],
44
44
  stepDefinitions,
45
- parameterTypes,
45
+ parameterTypes: parameterTypes ?? [],
46
46
  })
47
47
 
48
48
  const describeFn =
@@ -20,9 +20,9 @@ export function Feature<TContext extends Record<string, any> = object>({
20
20
  }) {
21
21
  const feature = compileFeature({
22
22
  featureText,
23
- hooks,
23
+ hooks: hooks ?? [],
24
24
  stepDefinitions,
25
- parameterTypes,
25
+ parameterTypes: parameterTypes ?? [],
26
26
  })
27
27
 
28
28
  const describeFn =