@systemfsoftware/oxlint-plugin-test-discipline 4.0.0 → 4.0.1

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,11 @@
1
1
  # @systemfsoftware/oxlint-plugin-test-discipline
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - `in-source-test-targets-private`'s message now names an exported operation in the `it.prop` `subject` slot as a legal target for an in-source block, beside a private helper.
8
+
3
9
  ## 4.0.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.mjs CHANGED
@@ -915,12 +915,12 @@ const NOT_MODULE_LEVEL_EXPECTED = "the in-source test block as a direct statemen
915
915
  const NOT_MODULE_LEVEL_ACTUAL = "an `import.meta.vitest` block nested inside another statement";
916
916
  const NOT_MODULE_LEVEL_FIX = "move the block to module level — a nested block does not run under vitest includeSource";
917
917
  const NO_PRIVATE_TARGET_NAME = "an `import.meta.vitest` block touching no module-level binding";
918
- const NO_PRIVATE_TARGET_EXPECTED = "an in-source test exercising this module's own code — a private helper, or a module-level function the lawful prop's `subject` names";
918
+ const NO_PRIVATE_TARGET_EXPECTED = "an in-source test exercising this module's own code — a private helper, or an exported operation named in the `it.prop` `subject` slot";
919
919
  const NO_PRIVATE_TARGET_ACTUAL = "an in-source block referencing only exported-call or imported names";
920
- const NO_PRIVATE_TARGET_FIX = "test the public surface from tests/ as *.integration.test.ts; in-source blocks exist for private helpers only — if the public behaviour you meant to cover is a pure function, delete the assertion: the type system already proves it";
920
+ const NO_PRIVATE_TARGET_FIX = "touch this module. A private helper is referenced directly; an exported operation is named in the `it.prop` `subject` slot beside its declaration — that is the one home for its laws and the file whose mutants they run. What the block cannot hold is a behaviour binding no module-level name: test the public surface from tests/ as *.integration.test.ts instead";
921
921
  const meta$20 = {
922
922
  type: "problem",
923
- docs: { description: "In-source `if (import.meta.vitest)` blocks under src/ must be at module level and exercise at least one non-exported binding; other tests belong in tests/." },
923
+ docs: { description: "In-source `if (import.meta.vitest)` blocks under src/ must be at module level and exercise this module's own code — a private helper, or an exported operation named in the `it.prop` `subject` slot; a public-surface test belongs in tests/ as an integration test." },
924
924
  schema: [],
925
925
  messages: {
926
926
  notModuleLevel: MESSAGE$8,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/oxlint-plugin-test-discipline",
3
3
  "license": "Apache-2.0",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -45,12 +45,12 @@
45
45
  "@microsoft/api-extractor": "^7.59.1",
46
46
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
47
47
  "@systemfsoftware/stryker-config": "^0.1.0",
48
- "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.1.1",
49
- "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.1",
50
- "@systemfsoftware/stryker-js": "^10.1.1",
51
- "@systemfsoftware/stryker-js-typescript-checker": "^7.0.5",
52
- "@systemfsoftware/stryker-js-vitest-runner": "^7.1.1",
53
- "@systemfsoftware/stryker-test-contribution": "^3.0.3",
48
+ "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
49
+ "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
50
+ "@systemfsoftware/stryker-js": "latest",
51
+ "@systemfsoftware/stryker-js-typescript-checker": "latest",
52
+ "@systemfsoftware/stryker-js-vitest-runner": "latest",
53
+ "@systemfsoftware/stryker-test-contribution": "latest",
54
54
  "@systemfsoftware/tsconfig": "^2.0.1",
55
55
  "@systemfsoftware/tsdown-config": "^0.1.0",
56
56
  "@systemfsoftware/vitest-config": "^0.1.0",
@@ -69,6 +69,7 @@
69
69
  "typescript": ">=5.0.0"
70
70
  },
71
71
  "publishConfig": {
72
+ "access": "public",
72
73
  "provenance": true
73
74
  },
74
75
  "scripts": {