@barefootjs/test 0.9.2 → 0.9.3
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/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/ir-to-test-node.d.ts +1 -1
- package/dist/ir-to-test-node.d.ts.map +1 -1
- package/dist/render.d.ts +1 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/structure.d.ts +1 -1
- package/dist/structure.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +6 -6
- package/src/ir-to-test-node.ts +1 -1
- package/src/render.ts +4 -4
- package/src/structure.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @barefootjs/test — IR-based component testing without a browser.
|
|
3
3
|
*/
|
|
4
|
-
export { renderToTest } from './render';
|
|
5
|
-
export type { TestResult } from './render';
|
|
6
|
-
export { TestNode } from './test-node';
|
|
7
|
-
export type { TestNodeData, TestNodeQuery, EventHandler } from './test-node';
|
|
8
|
-
export { toStructure } from './structure';
|
|
9
|
-
export { resolveConstants } from './resolve-constants';
|
|
4
|
+
export { renderToTest } from './render.ts';
|
|
5
|
+
export type { TestResult } from './render.ts';
|
|
6
|
+
export { TestNode } from './test-node.ts';
|
|
7
|
+
export type { TestNodeData, TestNodeQuery, EventHandler } from './test-node.ts';
|
|
8
|
+
export { toStructure } from './structure.ts';
|
|
9
|
+
export { resolveConstants } from './resolve-constants.ts';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE/E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Recursively transforms each IRNode variant into a TestNode.
|
|
5
5
|
*/
|
|
6
6
|
import type { IRNode, IRMetadata } from '@barefootjs/jsx';
|
|
7
|
-
import { TestNode } from './test-node';
|
|
7
|
+
import { TestNode } from './test-node.ts';
|
|
8
8
|
export declare function irNodeToTestNode(node: IRNode, constantMap?: Map<string, string>, metadata?: IRMetadata): TestNode;
|
|
9
9
|
//# sourceMappingURL=ir-to-test-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-to-test-node.d.ts","sourceRoot":"","sources":["../src/ir-to-test-node.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,MAAM,EAYN,UAAU,EACX,MAAM,iBAAiB,CAAA;AAMxB,OAAO,EAAE,QAAQ,EAAqB,MAAM,
|
|
1
|
+
{"version":3,"file":"ir-to-test-node.d.ts","sourceRoot":"","sources":["../src/ir-to-test-node.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,MAAM,EAYN,UAAU,EACX,MAAM,iBAAiB,CAAA;AAMxB,OAAO,EAAE,QAAQ,EAAqB,MAAM,gBAAgB,CAAA;AAQ5D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,QAAQ,CAajH"}
|
package/dist/render.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pipeline: source → analyzeComponent → jsxToIR → buildMetadata → irNodeToTestNode
|
|
5
5
|
* Does NOT go through any adapter; operates on IR directly.
|
|
6
6
|
*/
|
|
7
|
-
import { TestNode, type TestNodeQuery } from './test-node';
|
|
7
|
+
import { TestNode, type TestNodeQuery } from './test-node.ts';
|
|
8
8
|
export interface TestResult {
|
|
9
9
|
root: TestNode;
|
|
10
10
|
componentName: string;
|
package/dist/render.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAK7D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAG9D,IAAI,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,QAAQ,GAAG,IAAI,CAAA;IAC/C,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,QAAQ,EAAE,CAAA;IAC7C,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAA;IAG7C,WAAW,IAAI,MAAM,CAAA;CACtB;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,UAAU,CAwCjG"}
|
package/dist/structure.d.ts
CHANGED
package/dist/structure.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../src/structure.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../src/structure.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAIlD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/test",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
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.9.
|
|
42
|
+
"@barefootjs/jsx": "0.9.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.0.0"
|
package/src/index.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @barefootjs/test — IR-based component testing without a browser.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { renderToTest } from './render'
|
|
6
|
-
export type { TestResult } from './render'
|
|
5
|
+
export { renderToTest } from './render.ts'
|
|
6
|
+
export type { TestResult } from './render.ts'
|
|
7
7
|
|
|
8
|
-
export { TestNode } from './test-node'
|
|
9
|
-
export type { TestNodeData, TestNodeQuery, EventHandler } from './test-node'
|
|
8
|
+
export { TestNode } from './test-node.ts'
|
|
9
|
+
export type { TestNodeData, TestNodeQuery, EventHandler } from './test-node.ts'
|
|
10
10
|
|
|
11
|
-
export { toStructure } from './structure'
|
|
11
|
+
export { toStructure } from './structure.ts'
|
|
12
12
|
|
|
13
|
-
export { resolveConstants } from './resolve-constants'
|
|
13
|
+
export { resolveConstants } from './resolve-constants.ts'
|
package/src/ir-to-test-node.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { resolveSetters, buildLocalFunctionSetterMap, type SetterRef, type FnSet
|
|
|
24
24
|
type IRAttribute = IRElement['attrs'][number]
|
|
25
25
|
type AttrValue = IRAttribute['value']
|
|
26
26
|
type TemplateAttr = Extract<AttrValue, { kind: 'template' }>
|
|
27
|
-
import { TestNode, type EventHandler } from './test-node'
|
|
27
|
+
import { TestNode, type EventHandler } from './test-node.ts'
|
|
28
28
|
|
|
29
29
|
interface ConvertContext {
|
|
30
30
|
cmap: Map<string, string>
|
package/src/render.ts
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import { analyzeComponent, jsxToIR } from '@barefootjs/jsx'
|
|
9
9
|
import type { IRMetadata, CompilerError } from '@barefootjs/jsx'
|
|
10
|
-
import { TestNode, type TestNodeQuery } from './test-node'
|
|
11
|
-
import { irNodeToTestNode } from './ir-to-test-node'
|
|
12
|
-
import { resolveConstants } from './resolve-constants'
|
|
13
|
-
import { toStructure } from './structure'
|
|
10
|
+
import { TestNode, type TestNodeQuery } from './test-node.ts'
|
|
11
|
+
import { irNodeToTestNode } from './ir-to-test-node.ts'
|
|
12
|
+
import { resolveConstants } from './resolve-constants.ts'
|
|
13
|
+
import { toStructure } from './structure.ts'
|
|
14
14
|
|
|
15
15
|
export interface TestResult {
|
|
16
16
|
root: TestNode
|