https://cypress.io logo
Desperately Trying to get component tests running-...
# i-need-help
r
component tests are running and passing, but I'm getting the following error:
Copy code
ℹ 「wdm」: Failed to compile.
✖ 「wdm」:    1031 modules

ERROR in 
src/components/Sparkline.tsx
  Line 46:11:  Parsing error: Unexpected token

  44 |
  45 | class Sparkline extends React.Component<Props, State> {
> 46 |   private static TREAT_NULLS_AS_ZERO = false;
`
Component config:
Copy code
component: {
    specPattern: ['src/**/*.spec.unit.ts','src/**/*.spec.component.tsx' ],
    devServer: {
      framework: 'create-react-app',
      bundler: 'webpack',
    },
  },
my docker volume mount needed to be updated (did not account for ESLint config being dot file- .estlintrc.json)... so it was an ESLint related problem. Hope this helps someone in the future!