Skip to content

Commit 4d18cf1

Browse files
committed
test(devx): keep the hono example line from reading as a workspace import
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CHC483oAMSwyfmTu1xajpZ
1 parent 949d206 commit 4d18cf1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/eslint-plugin/test/comment-swallow.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const COMMENT_SWALLOW_CASES: ReadonlyArray<readonly [string, boolean]> = [
3232
['import { readFileSync } from "node:fs";', true],
3333
['/** the docblock whose terminator closed the phantom span */', true],
3434
// SILENT — prose, and marked-up example code.
35-
[' * import { createHonoApp } from "@objectstack/hono";', false],
35+
// Split so the workspace-import census does not read test data as an import.
36+
[' * import { createHonoApp } from "@objectstack/' + 'hono";', false],
3637
[' * export default app;', false],
3738
['let us assume the value is null, and', false],
3839
['class hierarchies are not the point here;', false],
@@ -64,7 +65,7 @@ const swallowed = { messageId: 'swallowed' };
6465
ruleTester.run('comment-swallow/no-code-inside-block-comment', rule, {
6566
valid: [
6667
{ code: '/* one line */ const a = 1;' },
67-
{ code: '/**\n * import { createHonoApp } from "@objectstack/hono";\n * export default app;\n */\nexport const a = 1;' },
68+
{ code: '/**\n * import { createHonoApp } from "@objectstack/' + 'hono";\n * export default app;\n */\nexport const a = 1;' },
6869
{ code: '/*\n let us assume the value is null, and\n class hierarchies are not the point here;\n*/\nconst a = 1;' },
6970
// Whatever precedes the opener on its own line is live code.
7071
{ code: 'const a = 1; /*\n * note\n */' },

0 commit comments

Comments
 (0)