eslint-plugin-executable-stories-playwright 2.1.6 → 2.1.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/README.md +6 -5
- package/binding.gyp +9 -0
- package/index.js +1 -0
- package/package.json +4 -8
- package/bin/intent.js +0 -3
package/README.md
CHANGED
|
@@ -37,12 +37,13 @@ export default [...playwrightExecutableStories.configs.recommended];
|
|
|
37
37
|
|
|
38
38
|
## Rules
|
|
39
39
|
|
|
40
|
-
| Rule
|
|
41
|
-
|
|
|
42
|
-
| `require-
|
|
43
|
-
| `require-
|
|
40
|
+
| Rule | Description | Config |
|
|
41
|
+
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
|
|
42
|
+
| `require-init-before-steps` | Step and doc calls must follow `story.init(testInfo)` in the same test. | recommended |
|
|
43
|
+
| `require-story-context-for-steps` | Legacy guard: top-level `given/when/then/and/but` must be inside an executable story context. | recommended |
|
|
44
|
+
| `require-test-context-for-doc-story` | Legacy guard: `doc.story(title)` must be called inside a `test()` callback. | recommended |
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
Prefer `test()` + `story.init(testInfo)` + `story.given`/`story.when`/`story.then`. Top-level step helpers remain exported for compatibility.
|
|
46
47
|
|
|
47
48
|
## Configs
|
|
48
49
|
|