@barefootjs/test 0.30.3 → 0.30.5

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -192175,6 +192175,9 @@ function inferTypeFromValue(value) {
192175
192175
  if (/\.(indexOf|findIndex|findLastIndex|lastIndexOf)\s*\([\s\S]*\)\s*$/.test(trimmed)) {
192176
192176
  return { kind: "primitive", raw: "number", primitive: "number" };
192177
192177
  }
192178
+ if (/\.join\s*\([\s\S]*\)\s*$/.test(trimmed)) {
192179
+ return { kind: "primitive", raw: "string", primitive: "string" };
192180
+ }
192178
192181
  if (/^-?\d+(\.\d+)?$/.test(trimmed)) {
192179
192182
  return { kind: "primitive", raw: "number", primitive: "number" };
192180
192183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/test",
3
- "version": "0.30.3",
3
+ "version": "0.30.5",
4
4
  "description": "Test utilities for BarefootJS - IR-based component testing without a browser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "directory": "packages/test"
40
40
  },
41
41
  "dependencies": {
42
- "@barefootjs/jsx": "0.30.3"
42
+ "@barefootjs/jsx": "0.30.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "^5.0.0"