Skip to content

Commit

Permalink
test: skip test failing on Windows Node.js ~20.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Aug 12, 2023
1 parent aa65846 commit a7f8f29
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/integration/non-ascii.test.js
Expand Up @@ -24,8 +24,12 @@ describe('lint-staged', () => {
await writeFile('你好.js', fileFixtures.uglyJS)
await execGit(['add', '你好.js'])

await writeFile('👋.js', fileFixtures.uglyJS)
await execGit(['add', '👋.js'])
/**
* @todo broken on Windows Node.js 20.4.0
* @see https://github.com/nodejs/node/issues/48673
*/
// await writeFile('👋.js', fileFixtures.uglyJS)
// await execGit(['add', '👋.js'])

await gitCommit()

Expand All @@ -34,7 +38,12 @@ describe('lint-staged', () => {
expect(await execGit(['log', '-1', '--pretty=%B'])).toMatch('test')
expect(await readFile('привет.js')).toEqual(fileFixtures.prettyJS)
expect(await readFile('你好.js')).toEqual(fileFixtures.prettyJS)
expect(await readFile('👋.js')).toEqual(fileFixtures.prettyJS)

/**
* @todo broken on Windows Node.js 20.4.0
* @see https://github.com/nodejs/node/issues/48673
*/
// expect(await readFile('👋.js')).toEqual(fileFixtures.prettyJS)
})

test('handles files with non-ascii characters when core.quotepath is on', getQuotePathTest('on'))
Expand Down

0 comments on commit a7f8f29

Please sign in to comment.