anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.23k stars 50 forks source link

CI failing in Node 20 #186

Open edg2s opened 1 month ago

edg2s commented 1 month ago
 FAIL ​ test/postcss-plugin.js
 ✖ ENOENT, UV_ENOENT '/var/www/doiuse/package.json'

  node_modules/mock-fs/lib/binding.js                 
  460 |     }                                         
  461 |     if (!item) {                              
> 462 |       throw new FSError('ENOENT', filepath);  
      | ------------^                                 
  463 |     }                                         
  464 |     const stats = item.getStats();            
  465 |                                               

  test: info with browserslist file
  stack: |
    Binding.<anonymous> (node_modules/mock-fs/lib/binding.js:462:13)
    maybeCallback (node_modules/mock-fs/lib/binding.js:102:17)
    Binding.stat (node_modules/mock-fs/lib/binding.js:453:10)
    Object.<anonymous> (node_modules/mock-fs/lib/index.js:37:39)
    isFile (node_modules/browserslist/node.js:42:42)
    node_modules/browserslist/node.js:340:11
    eachParent (node_modules/browserslist/node.js:53:18)
    Object.findConfig (node_modules/browserslist/node.js:328:20)
    Function.loadConfig (node_modules/browserslist/node.js:237:37)
  code: ENOENT
  errno: -2
  path: /var/www/doiuse/package.json
  tapCaught: testFunctionThrow