diff --git a/test/options.files.test.ts b/test/options.files.test.ts index 397b1124..0ee154e6 100644 --- a/test/options.files.test.ts +++ b/test/options.files.test.ts @@ -209,7 +209,9 @@ describe('options.files.test.ts', () => { it('should upload a file with args.data success', async () => { const stat = await fs.stat(__filename); const largeFormValue = await fs.readFile(__filename, 'utf-8'); - const txt = path.join(__dirname, 'fixtures', '😄foo😭.txt'); + // emoji not work on windows node.js >= 20 + // const txt = path.join(__dirname, 'fixtures', '😄foo😭.txt'); + const txt = path.join(__dirname, 'fixtures', 'foo.txt'); const txtValue = await fs.readFile(txt, 'utf-8'); const response = await urllib.request(`${_url}multipart`, { method: 'HEAD',