chore: add playground #22
Annotations
5 errors
test/run.test.ts > tests > namespace_export_type:
test/utils.ts#L20
AssertionError: should be{"type":"Program","start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},"body":[{"type":"TSModuleDeclaration","start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},"id":{"type":"Identifier","start":10,"end":23,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":23}},"name":"SomeNamespace"},"body":{"type":"TSModuleBlock","start":24,"end":55,"loc":{"start":{"line":1,"column":24},"end":{"line":3,"column":1}},"body":[{"type":"ExportNamedDeclaration","start":30,"end":53,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":27}},"exportKind":"type","declaration":{"type":"TSTypeAliasDeclaration","start":37,"end":53,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":27}},"id":{"type":"Identifier","start":42,"end":45,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":19}},"name":"Foo"},"typeAnnotation":{"type":"TSLiteralType","start":48,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":26}},"literal":{"type":"Literal","start":48,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":26}},"value":true,"raw":"true"}}},"specifiers":[],"source":null}]}}],"sourceType":"module"}: expected { type: 'Program', start: +0, …(4) } to deeply equal { type: 'Program', start: +0, …(4) }
- Expected
+ Received
{
"body": [
{
"body": {
"body": [
{
"declaration": {
- "end": 54,
+ "end": 53,
"id": {
- "end": 46,
+ "end": 45,
"loc": {
"end": {
"column": 19,
"line": 2,
},
"start": {
"column": 16,
"line": 2,
},
},
"name": "Foo",
- "start": 43,
+ "start": 42,
"type": "Identifier",
},
"loc": {
"end": {
"column": 27,
"line": 2,
},
"start": {
"column": 11,
"line": 2,
},
},
- "start": 38,
+ "start": 37,
"type": "TSTypeAliasDeclaration",
"typeAnnotation": {
- "end": 53,
+ "end": 52,
"literal": {
- "end": 53,
+ "end": 52,
"loc": {
"end": {
"column": 26,
"line": 2,
},
"start": {
"column": 22,
"line": 2,
},
},
"raw": "true",
- "start": 49,
+ "start": 48,
"type": "Literal",
"value": true,
},
"loc": {
"end": {
"column": 26,
"line": 2,
},
"start": {
"column": 22,
"line": 2,
},
},
- "start": 49,
+ "start": 48,
"type": "TSLiteralType",
},
},
- "end": 54,
+ "end": 53,
"exportKind": "type",
"loc": {
"end": {
"column": 27,
"line": 2,
},
"start": {
"column": 4,
"line": 2,
},
},
"source": null,
"specifiers": [],
- "start": 31,
+ "start": 30,
"type": "ExportNamedDeclaration",
},
|
test (20.x, ubuntu-latest)
Process completed with exit code 1.
|
test (22.x, ubuntu-latest)
The job was canceled because "_20_x_ubuntu-latest" failed.
|
test/run.test.ts > tests > namespace_export_type:
test/utils.ts#L20
AssertionError: should be{"type":"Program","start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},"body":[{"type":"TSModuleDeclaration","start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},"id":{"type":"Identifier","start":10,"end":23,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":23}},"name":"SomeNamespace"},"body":{"type":"TSModuleBlock","start":24,"end":55,"loc":{"start":{"line":1,"column":24},"end":{"line":3,"column":1}},"body":[{"type":"ExportNamedDeclaration","start":30,"end":53,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":27}},"exportKind":"type","declaration":{"type":"TSTypeAliasDeclaration","start":37,"end":53,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":27}},"id":{"type":"Identifier","start":42,"end":45,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":19}},"name":"Foo"},"typeAnnotation":{"type":"TSLiteralType","start":48,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":26}},"literal":{"type":"Literal","start":48,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":26}},"value":true,"raw":"true"}}},"specifiers":[],"source":null}]}}],"sourceType":"module"}: expected { type: 'Program', start: +0, …(4) } to deeply equal { type: 'Program', start: +0, …(4) }
- Expected
+ Received
{
"body": [
{
"body": {
"body": [
{
"declaration": {
- "end": 54,
+ "end": 53,
"id": {
- "end": 46,
+ "end": 45,
"loc": {
"end": {
"column": 19,
"line": 2,
},
"start": {
"column": 16,
"line": 2,
},
},
"name": "Foo",
- "start": 43,
+ "start": 42,
"type": "Identifier",
},
"loc": {
"end": {
"column": 27,
"line": 2,
},
"start": {
"column": 11,
"line": 2,
},
},
- "start": 38,
+ "start": 37,
"type": "TSTypeAliasDeclaration",
"typeAnnotation": {
- "end": 53,
+ "end": 52,
"literal": {
- "end": 53,
+ "end": 52,
"loc": {
"end": {
"column": 26,
"line": 2,
},
"start": {
"column": 22,
"line": 2,
},
},
"raw": "true",
- "start": 49,
+ "start": 48,
"type": "Literal",
"value": true,
},
"loc": {
"end": {
"column": 26,
"line": 2,
},
"start": {
"column": 22,
"line": 2,
},
},
- "start": 49,
+ "start": 48,
"type": "TSLiteralType",
},
},
- "end": 54,
+ "end": 53,
"exportKind": "type",
"loc": {
"end": {
"column": 27,
"line": 2,
},
"start": {
"column": 4,
"line": 2,
},
},
"source": null,
"specifiers": [],
- "start": 31,
+ "start": 30,
"type": "ExportNamedDeclaration",
},
|
test (22.x, ubuntu-latest)
Process completed with exit code 1.
|