eslint / js

Monorepo for the JS language tools.
BSD 2-Clause "Simplified" License
2.29k stars 196 forks source link

9 Failing tests on project install #592

Closed martypdx closed 10 months ago

martypdx commented 10 months ago

After forking, cloning, npm i, npm test has 9 failures in tests/6/modules and tests/8/modules. They are all import/export related and fail with this error (though different locations):

      AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped

  {
    body: [
...
          15
        ],
+       type: 'Identifier',
-       type: 'Keyword',
        value: 'default'
...
    ],
    type: 'Program'
  }
      + expected - actual

             "range": [
               8
               15
             ]
      -      "type": "Identifier"
      +      "type": "Keyword"
             "value": "default"

Updating to latest acorn doesn't help.

mdjermanovic commented 10 months ago

We're working on this in https://github.com/eslint/espree/pull/590, looks like a problem in the latest acorn.