Skip to content

Commit 3874597

Browse files
committed
test: loosen path assert on windows
1 parent 5a5550a commit 3874597

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [ubuntu-latest, windows-latest, macos-latest]
34-
node: [22.x, 24.x]
34+
node: [22.x, 24.x, 26.x]
3535
fail-fast: false
3636
steps:
3737
- uses: actions/checkout@v6

tests/cli-parity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ it('should fail when linting files under package with invalid nested config', as
186186

187187
expect(result.messages.length).toBeGreaterThan(0)
188188
expect(result.messages[0]?.message).toContain('Failed to format file:')
189-
expect(result.messages[0]?.message).toContain('packages/a/index.ts')
189+
expect(result.messages[0]?.message).toMatch(/packages[\\/]+a[\\/]+index\.ts/)
190190
})
191191

192192
it('should not read nested config when disableNestedConfig is true', async () => {

0 commit comments

Comments
 (0)