Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Truffle tests "Unexpected token" #21

Open
mikedotexe opened this issue Sep 9, 2020 · 1 comment
Open

Running Truffle tests "Unexpected token" #21

mikedotexe opened this issue Sep 9, 2020 · 1 comment

Comments

@mikedotexe
Copy link

Trying to get Truffle to run tests and continue to get:

SyntaxError: /Users/mike/near/aave-protocol/test/actions/index.ts: Unexpected token (44:2)
  42 |
  43 | const almostEqualOrEqual = function(
> 44 |   this: any,
     |   ^
  45 |   expected: ReserveData | UserReserveData,
  46 |   actual: ReserveData | UserReserveData
  47 | ) {
    at Parser.pp$5.raise (/Users/mike/near/aave-protocol/node_modules/babylon/lib/index.js:4454:13)
    at Parser.pp.unexpected (/Users/mike/near/aave-protocol/node_modules/babylon/lib/index.js:1761:8)
    at Parser.pp$2.parseBindingAtom (/Users/mike/near/aave-protocol/node_modules/babylon/lib/index.js:3090:12)

Updated typescript to:
"typescript": "^4.0.2"

Would be great to get some help running the tests. Cheers
Tried node 12, 11
Truffle 5.1.43

@paulvi
Copy link

paulvi commented Jul 20, 2021

see also #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants