https://cypress.io logo
Component test- public/private TS keywords error
# i-need-help
r
When running Cypress component tests- I get the error below. I'm running cypress in a docker container (package.json and node_modules are mounted inside Cypress container). Cypress config file is copied from cypress docs. I put the foo field property in there to check and see if error was going to be thrown for anything TS related, but it seems to only be throwing an error for public/private keywords. The tests still run and succeed.
Copy code
✖ 「wdm」:    1032 modules

src/utilities/ReportUtilities.ts
  Line 59:10:  Parsing error: Unexpected token
  57 | export default class ReportUtilities {
  58 |   foo: number = 5;
> 59 |   public static WORST_PERCENTILE = 90;

ℹ 「wdm」: Failed to compile.
I tried putting eslint config inside Cypress docker container. Not really sure where to go from here.