Skip to content

Commit d1185ee

Browse files
charlespwdclaude
andcommitted
Fix CI: shims.cjs path and using keyword
- Update vitest.config.mjs to reference shims.cjs instead of shims.js - Convert using declarations to const in grammar.spec.ts (Prettier 2.x doesn't support ES2024 explicit resource management syntax) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 08de38d commit d1185ee

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/liquid-html-parser/src/grammar.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('Unit: liquidHtmlGrammar', () => {
101101
expectMatchSucceeded('<6h>').to.be.false;
102102

103103
function expectMatchSucceeded(text: string) {
104-
using match = grammar.LiquidHTML.match(text, 'Node');
104+
const match = grammar.LiquidHTML.match(text, 'Node');
105105
return expect(match.succeeded(), text);
106106
}
107107
});
@@ -129,7 +129,7 @@ describe('Unit: liquidHtmlGrammar', () => {
129129
`).to.be.true;
130130

131131
function expectMatchSucceeded(text: string) {
132-
using match = grammar.LiquidStatement.match(text.trimStart(), 'Node');
132+
const match = grammar.LiquidStatement.match(text.trimStart(), 'Node');
133133
return expect(match.succeeded(), text);
134134
}
135135
});
@@ -156,7 +156,7 @@ describe('Unit: liquidHtmlGrammar', () => {
156156
});
157157

158158
function expectMatchSucceeded(text: string) {
159-
using match = placeholderGrammars.LiquidHTML.match(text.trimStart(), 'Node');
159+
const match = placeholderGrammars.LiquidHTML.match(text.trimStart(), 'Node');
160160
return expect(match.succeeded(), text);
161161
}
162162
});

packages/prettier-plugin-liquid/vitest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export default defineConfig({
1313
},
1414
},
1515
globalSetup: ['./src/test/test-setup.js'],
16-
setupFiles: ['../liquid-html-parser/build/shims.js'],
16+
setupFiles: ['../liquid-html-parser/build/shims.cjs'],
1717
},
1818
});

0 commit comments

Comments
 (0)