Skip to content

Commit 3b6c70a

Browse files
NullVoxPopuliclaude
andcommitted
Patch eslint-plugin-ember test for GlimmerBlockParam type rename
ember-estree uses GlimmerBlockParam (not BlockParam) for consistency with all other Glimmer-prefixed node types. Patch the downstream assertion in the integration test until eslint-plugin-ember updates. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 791358c commit 3b6c70a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/eslint-plugin-ember-test.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@ await fse.ensureDir(FOLDERS.testRoot);
1515
await execaCommand(`git clone ${REPO}`, { cwd: FOLDERS.testRoot, stdio: 'inherit' });
1616
await execaCommand(`pnpm install`, { cwd: FOLDERS.repo, stdio: 'inherit' });
1717
await execaCommand(`pnpm add ${FOLDERS.here}`, { cwd: FOLDERS.repo, stdio: 'inherit' });
18+
19+
// ember-estree renames BlockParam → GlimmerBlockParam for consistency with
20+
// all other Glimmer-prefixed node types. Patch the downstream assertion.
21+
await execaCommand(
22+
`sed -i "s/nodeType: BlockParam/nodeType: GlimmerBlockParam/g" tests/lib/rules-preprocessor/gjs-gts-parser-test.js`,
23+
{ cwd: FOLDERS.repo, stdio: 'inherit' }
24+
);
25+
1826
await execaCommand(`pnpm run test`, { cwd: FOLDERS.repo, stdio: 'inherit' });

0 commit comments

Comments
 (0)