Skip to content

feat: new extractor #207

feat: new extractor

feat: new extractor #207

Triggered via pull request June 12, 2024 20:53
Status Failure
Total duration 2m 5s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 4 warnings
src/test/unit/extractor/svelte.test.ts > getTranslate > extracts from the t call with signature t(string)): src/test/unit/extractor/svelte.test.ts#L17
AssertionError: expected [] to deeply equal [ { keyName: 'key1', line: 6 } ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 6, - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:17:28
src/test/unit/extractor/svelte.test.ts > getTranslate > extracts from the t call with signature t(string, string): src/test/unit/extractor/svelte.test.ts#L35
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) } ] - Expected + Received - Array [ - Object { - "defaultValue": "default value", - "keyName": "key1", - "line": 6, - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:35:28
src/test/unit/extractor/svelte.test.ts > getTranslate > extracts from the t call with signature t(string, string, opts): src/test/unit/extractor/svelte.test.ts#L58
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(3) } ] - Expected + Received - Array [ - Object { - "defaultValue": "default value", - "keyName": "key1", - "line": 6, - "namespace": "ns", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:58:28
src/test/unit/extractor/svelte.test.ts > getTranslate > extracts from the t call with signature t(string, opts): src/test/unit/extractor/svelte.test.ts#L81
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(3) } ] - Expected + Received - Array [ - Object { - "defaultValue": "default value", - "keyName": "key1", - "line": 6, - "namespace": "ns", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:81:28
src/test/unit/extractor/svelte.test.ts > getTranslate > extracts from the t call with signature t(opts): src/test/unit/extractor/svelte.test.ts#L104
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(3) } ] - Expected + Received - Array [ - Object { - "defaultValue": "default value", - "keyName": "key1", - "line": 6, - "namespace": "ns", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:104:28
src/test/unit/extractor/svelte.test.ts > getTranslate > keeps track of the namespace specified in getTranslate: src/test/unit/extractor/svelte.test.ts#L120
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) } ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 6, - "namespace": "namespace", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:120:28
src/test/unit/extractor/svelte.test.ts > getTranslate > keeps track of the namespace specified in getTranslate (array): src/test/unit/extractor/svelte.test.ts#L136
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) } ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 6, - "namespace": "namespace1", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:136:28
src/test/unit/extractor/svelte.test.ts > getTranslate > overrides the specified namespace if one is passed as parameter: src/test/unit/extractor/svelte.test.ts#L156
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) }, …(1) ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 6, - "namespace": "ns1", - }, - Object { - "keyName": "key2", - "line": 7, - "namespace": undefined, - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:156:28
src/test/unit/extractor/svelte.test.ts > getTranslate > handles multi-line use: src/test/unit/extractor/svelte.test.ts#L192
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) } ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 9, - "namespace": "namespace", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:192:28
src/test/unit/extractor/svelte.test.ts > getTranslate > handles weird spacings: src/test/unit/extractor/svelte.test.ts#L208
AssertionError: expected [] to deeply equal [ { keyName: 'key1', …(2) } ] - Expected + Received - Array [ - Object { - "keyName": "key1", - "line": 6, - "namespace": "namespace", - }, - ] + Array [] ❯ src/test/unit/extractor/svelte.test.ts:208:28
src/test/e2e/compare.test.ts > Project 1 > prints keys sorted in alphabetical order: src/test/e2e/compare.test.ts#L115
AssertionError: expected 5707 to be less than 4523 ❯ src/test/e2e/compare.test.ts:115:51
src/test/e2e/extract.test.ts > extracts from files with only magic comments: src/test/e2e/extract.test.ts#L92
AssertionError: expected 'Analyzing code..."//" …' to contain 'Total unique keys found: 1' - Expected + Received - Total unique keys found: 1 + Analyzing code..."//" punctuation.definition.comment.ts + ✓ Success + Total unique keys found: 0 + Total warnings: 0 + " @ts-nocheck" comment.line.double-slash.ts + "export" keyword.control.export.ts + "default" keyword.control.default.ts + "function" storage.type.function.ts + "App" entity.name.function.ts function.call + "(" punctuation.definition.parameters.begin.ts expression.begin + ")" punctuation.definition.parameters.end.ts expression.end + "{" punctuation.definition.block.ts block.begin + "//" punctuation.definition.comment.ts + " @tolgee-key uwu" comment.line.double-slash.ts + "return" keyword.control.flow.ts + "uwu" custom string + ";" punctuation.terminator.statement.ts + "}" punctuation.definition.block.ts block.end + 1 // @ts-nocheck + 2 + 3 export default function App() { + 4 // @tolgee-key uwu + 5 return 'uwu'; + 6 } + 7 + { + "tree": { + "type": "expr", + "values": [ + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [ + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [ + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "expr", + "values": [] + }, + { + "type": "primitive", + "value": "uwu" + }, + { + "type": "expr", + "values": [] + } + ] + }, + { + "type": "expr", + "values": [] + } + ] + } + ] + }, + "report": { + "keys": [], + "warnings": [] + } + } + ❯ src/test/e2e/extract.test.ts:92:22
E2E Tests
Process completed with exit code 1.
Unit Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Eslint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Package integrity
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
E2E Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.