Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: failing test for multi-byte char before template #220

Closed
wants to merge 1 commit into from

Conversation

Techn1x
Copy link

@Techn1x Techn1x commented Jan 3, 2024

Another failing test for #191

Can't actually update the snapshots since this crashes out

 FAIL  tests/unit-tests/format.test.ts > format > config > default > it formats ../cases/gts/issue-191-d.gts
 FAIL  tests/unit-tests/config/semi-false.test.ts > config > semi: false > it formats ../cases/gts/issue-191-d.gts
 FAIL  tests/unit-tests/config/template-export-default.test.ts > config > templateExportDefault: true > it formats ../cases/gts/issue-191-d.gts
Error: failed to process all templates, 1 remaining
 ❯ convertAst src/parse/index.ts:74:11
     72| 
     73|   if (unprocessedTemplates.length > 0) {
     74|     throw new Error(
       |           ^
     75|       `failed to process all templates, ${unprocessedTemplates.length} remaining`,
     76|     );
 ❯ Object.parse src/parse/index.ts:109:5
 ❯ parse node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:19362:11
 ❯ coreFormat node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:20683:7
 ❯ formatWithCursor node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:20885:14
 ❯ Module.format2 node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:24517:25
 ❯ Module.format tests/helpers/format.ts:23:10
 ❯ tests/helpers/make-suite.ts:58:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant