feat: support banner with context for Oas #596
Annotations
10 errors and 1 warning
Test with Bun:
packages/core/src/BarrelManager.test.ts#L114
Expected:
[
{
"baseName": "index.ts",
"exports": [
{
"isTypeOnly": undefined,
"name": [
"test",
],
"path": "./test.ts",
},
{
"isTypeOnly": undefined,
"name": [
"hello",
],
"path": "./sub/hello.ts",
},
{
"isTypeOnly": undefined,
"name": [
"world",
],
"path": "./sub/world.ts",
},
{
"isTypeOnly": undefined,
"name": [
"world",
],
"path": "./sub/index.ts",
},
{
"isTypeOnly": undefined,
"name": [
"hello",
],
"path": "./sub/index.ts",
},
],
"path": "src/index.ts",
"sources": [
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "test",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "hello",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "world",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "world",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "hello",
"value": "",
},
],
},
{
"baseName": "index.ts",
"exports": [
{
"isTypeOnly": undefined,
"name": [
"hello",
],
"path": "./hello.ts",
},
{
"isTypeOnly": undefined,
"name": [
"world",
],
"path": "./world.ts",
},
],
"path": "src/sub/index.ts",
"sources": [
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "hello",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "world",
"value": "",
},
],
},
]
Received:
[
{
"baseName": "index.ts",
"exports": [
{
"isTypeOnly": undefined,
"name": [
"test",
],
"path": "./test.ts",
},
{
"isTypeOnly": undefined,
"name": [
"hello",
],
"path": "./sub/hello.ts",
},
{
"isTypeOnly": undefined,
"name": [
"world",
],
"path": "./sub/world.ts",
},
{
"isTypeOnly": undefined,
"name": [
"world",
],
"path": "./sub/index.ts",
},
{
"isTypeOnly": undefined,
"name": [
"hello",
],
"path": "./sub/index.ts",
},
],
"path": "src/index.ts",
"sources": [
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "test",
"value": "",
},
{
"isExportable": false,
"isIndexable": false,
"isTypeOnly": undefined,
"name": "hello",
"value": "",
},
{
"isExportable": false,
"isIndexable":
|
Test with Bun:
packages/core/src/FileManager.test.ts#L102
Expected:
[
{
"value": "const file1 ='file1';",
},
{
"value": "const file1Bis ='file1Bis';",
},
]
Received:
[
{
"value": "const file1 ='file1';",
},
{
"value": "const file1Bis ='file1Bis';",
},
]
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:102:26)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L232
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:232:49)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L311
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:311:61)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L353
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:353:49)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L540
Expected:
[
{
"isExportable": undefined,
"isIndexable": undefined,
"isTypeOnly": false,
"name": "test",
"value": "const test = 3",
},
{
"isTypeOnly": false,
"name": "Test",
"value": "type Test = 2",
},
]
Received:
[
{
"isExportable": undefined,
"isIndexable": undefined,
"isTypeOnly": false,
"name": "test",
"value": "const test = 3",
},
{
"isTypeOnly": false,
"name": "Test",
"value": "type Test = 2",
},
]
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:540:37)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L577
Expected:
[
{
"isTypeOnly": true,
"name": undefined,
"path": "./models",
},
{
"asAlias": true,
"isTypeOnly": false,
"name": "test",
"path": "./models",
},
]
Received:
[
{
"isTypeOnly": true,
"name": undefined,
"path": "./models",
},
{
"asAlias": true,
"isTypeOnly": false,
"name": "test",
"path": "./models",
},
]
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:577:37)
|
Test with Bun:
packages/core/src/FileManager.test.ts#L613
Expected:
[
{
"isTypeOnly": true,
"name": "models",
"path": "./models",
},
{
"isTypeOnly": true,
"name": [
"Config",
],
"path": "./models",
},
]
Received:
[
{
"isTypeOnly": true,
"name": "models",
"path": "./models",
},
{
"isTypeOnly": true,
"name": [
"Config",
],
"path": "./models",
},
]
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:613:85)
|
Test with Bun:
packages/core/src/utils/TreeNode.test.ts#L32
Expected:
TreeNode {
"children": [
TreeNode {
"children": [
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "test.ts",
"meta": {},
"path": "src/test.ts",
"sources": [],
},
"name": "test.ts",
"path": "src/test.ts",
"type": "single",
},
"parent": [Circular],
},
TreeNode {
"children": [
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "hello.ts",
"meta": {},
"path": "src/sub/hello.ts",
"sources": [],
},
"name": "hello.ts",
"path": "src/sub/hello.ts",
"type": "single",
},
"parent": [Circular],
},
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "world.ts",
"meta": {},
"path": "src/sub/world.ts",
"sources": [],
},
"name": "world.ts",
"path": "src/sub/world.ts",
"type": "single",
},
"parent": [Circular],
},
],
"data": {
"file": undefined,
"name": "sub",
"path": "src/sub",
"type": "split",
},
"parent": [Circular],
},
],
"data": {
"file": undefined,
"name": "src",
"path": "src",
"type": "split",
},
"parent": [Circular],
},
],
"data": {
"file": undefined,
"name": "",
"path": "",
"type": "split",
},
"parent": undefined,
}
Received:
TreeNode {
"children": [
TreeNode {
"children": [
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "test.ts",
"meta": {},
"path": "src/test.ts",
"sources": [],
},
"name": "test.ts",
"path": "src/test.ts",
"type": "single",
},
"parent": [Circular],
},
TreeNode {
"children": [
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "hello.ts",
"meta": {},
"path": "src/sub/hello.ts",
"sources": [],
},
"name": "hello.ts",
"path": "src/sub/hello.ts",
"type": "single",
},
"parent": [Circular],
},
TreeNode {
"children": [],
"data": {
"file": {
"baseName": "world.ts",
"meta": {},
"path": "src/sub/world.ts",
"sources": [],
},
"name": "world.ts",
"path": "src/sub/world.ts",
"type": "single",
},
"parent": [Circular],
},
],
"data": {
"file": undefined,
"name": "sub",
"path": "src/sub",
"type": "split",
},
"parent": [Circular],
},
],
"data": {
"file": undefined,
"name": "src",
"path": "src",
|
Test with Bun:
packages/core/src/utils/TreeNode.test.ts#L150
Expected:
[
"",
"src",
"test.ts",
"sub",
"hello.ts",
"world.ts",
]
Received:
[
"",
"src",
"test.ts",
"sub",
"hello.ts",
"world.ts",
]
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/utils/TreeNode.test.ts:150:19)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading