Skip to content

Commit 75d785c

Browse files
committed
Added a skip for the test for windows as it may fail for insufficient permissions
1 parent 463979b commit 75d785c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/serve-static.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ describe('Serve Static Middleware', () => {
198198
expect(res.status).toBe(404)
199199
})
200200

201-
it('Should follow symlinks', async () => {
201+
// Skip on Windows as symlink behavior is different
202+
;(process.platform === 'win32' ? it.skip : it)('Should follow symlinks', async () => {
202203
const symlinkPath = path.join(__dirname, 'assets', 'static', 'symlink.html')
203204
const symlinkTarget = path.join(__dirname, 'assets', 'static', 'index.html')
204205
try {

0 commit comments

Comments
 (0)