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

Debugging in vscode with Jest Runner #2

Open
groffcole opened this issue Jan 11, 2021 · 1 comment
Open

Debugging in vscode with Jest Runner #2

groffcole opened this issue Jan 11, 2021 · 1 comment

Comments

@groffcole
Copy link

groffcole commented Jan 11, 2021

I'm trying to debug this template using vscode and the vscode-jest-runner extension. I can run the initial test successfully but when I try to debug the test I receive the following error:

SyntaxError: /.../tests/handler.test.ts: Unexpected token, expected ";" (5:38)

      3 | 
      4 | test("hello", async () => {
    > 5 |   const event = { body: "Test Body" } as APIGatewayEvent;

To summarize:

Any idea why this might be happening or how I can resolve it? It seems like the run and debug are using different jests or something like that.

Thanks.

@groffcole
Copy link
Author

I'm realizing that this might be a re-issue of something I brought up a while ago: AnomalyInnovations/serverless-bundle#70. I can delete this issue if things are still in limbo.

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

1 participant